Skip to content
  • weinig@apple.com's avatar
    JavaScriptCore: · cbf3ca98
    weinig@apple.com authored
    2008-09-22  Sam Weinig  <sam@webkit.org>
    
            Reviewed by Darin Adler.
    
            Patch for https://bugs.webkit.org/show_bug.cgi?id=20982
            Speed up the apply method of functions by special-casing array and 'arguments' objects
    
            1% speedup on v8-raytrace.
    
            Test: fast/js/function-apply.html
    
            * kjs/Arguments.cpp:
            (JSC::Arguments::fillArgList):
            * kjs/Arguments.h:
            * kjs/FunctionPrototype.cpp:
            (JSC::functionProtoFuncApply):
            * kjs/JSArray.cpp:
            (JSC::JSArray::fillArgList):
            * kjs/JSArray.h:
    
    LayoutTests:
    
    2008-09-22  Sam Weinig  <sam@webkit.org>
    
            Reviewed by Darin Adler.
    
            Test for https://bugs.webkit.org/show_bug.cgi?id=20982
    
            * fast/js/function-apply-expected.txt: Added.
            * fast/js/function-apply.html: Added.
            * fast/js/resources/function-apply.js: Added.
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@36779 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    cbf3ca98