⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 175938 in webkit


Ignore:
Timestamp:
Nov 11, 2014, 9:09:01 AM (12 years ago)
Author:
Carlos Garcia Campos
Message:

Merge r175462 - Reduce the cost of argumentCount checks in the JS bindings
https://bugs.webkit.org/show_bug.cgi?id=138289

Reviewed by Sam Weinig.

Slightly reduce the cost of argumentCount checks in the JS bindings by
hinting to the compiler that it is UNLIKELY that those methods are
called with too few arguments.

I see a 3% progression on PerformanceTests/DOM/DOMDivWalk.html
performance test.

No new tests, no behavior change.

  • bindings/scripts/CodeGeneratorJS.pm:

(GenerateArgumentsCountCheck):

Location:
releases/WebKitGTK/webkit-2.6/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • releases/WebKitGTK/webkit-2.6/Source/WebCore/ChangeLog

    r175936 r175938  
     12014-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
    1202014-10-31  Benjamin Poulain  <bpoulain@apple.com>
    221
  • releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm

    r173176 r175938  
    31703170    if ($numMandatoryParams >= 1)
    31713171    {
    3172         push(@$outputArray, "    if (exec->argumentCount() < $numMandatoryParams)\n");
     3172        push(@$outputArray, "    if (UNLIKELY(exec->argumentCount() < $numMandatoryParams))\n");
    31733173        push(@$outputArray, "        return throwVMError(exec, createNotEnoughArgumentsError(exec));\n");
    31743174    }
Note: See TracChangeset for help on using the changeset viewer.