Changeset 175938 in webkit
- Timestamp:
- Nov 11, 2014, 9:09:01 AM (12 years ago)
- Location:
- releases/WebKitGTK/webkit-2.6/Source/WebCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
bindings/scripts/CodeGeneratorJS.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
releases/WebKitGTK/webkit-2.6/Source/WebCore/ChangeLog
r175936 r175938 1 2014-11-02 Chris Dumez <cdumez@apple.com> 2 3 Reduce the cost of argumentCount checks in the JS bindings 4 https://bugs.webkit.org/show_bug.cgi?id=138289 5 6 Reviewed by Sam Weinig. 7 8 Slightly reduce the cost of argumentCount checks in the JS bindings by 9 hinting to the compiler that it is UNLIKELY that those methods are 10 called with too few arguments. 11 12 I see a 3% progression on PerformanceTests/DOM/DOMDivWalk.html 13 performance test. 14 15 No new tests, no behavior change. 16 17 * bindings/scripts/CodeGeneratorJS.pm: 18 (GenerateArgumentsCountCheck): 19 1 20 2014-10-31 Benjamin Poulain <bpoulain@apple.com> 2 21 -
releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm
r173176 r175938 3170 3170 if ($numMandatoryParams >= 1) 3171 3171 { 3172 push(@$outputArray, " if ( exec->argumentCount() < $numMandatoryParams)\n");3172 push(@$outputArray, " if (UNLIKELY(exec->argumentCount() < $numMandatoryParams))\n"); 3173 3173 push(@$outputArray, " return throwVMError(exec, createNotEnoughArgumentsError(exec));\n"); 3174 3174 }
Note:
See TracChangeset
for help on using the changeset viewer.