Ignore:
Timestamp:
Apr 15, 2009, 12:13:25 AM (16 years ago)
Author:
[email protected]
Message:

Bug 25202: Improve performance of repeated callbacks into the VM

Reviewed by Cameron Zwarich

Add the concept of a CachedCall to native code for use in Array
prototype and similar functions where a single callback function
is called repeatedly with the same number of arguments.

Used Array.prototype.filter as the test function and got a 50% win
over a naive non-caching specialised version. This makes the native
implementation of Array.prototype.filter faster than the JS one once
more.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/interpreter/CallFrame.h

    r41126 r42537  
    9999        friend class Interpreter;
    100100        friend class JITStubs;
     101        friend struct CallFrameClosure;
    101102
    102103        static CallFrame* create(Register* callFrameBase) { return static_cast<CallFrame*>(callFrameBase); }
Note: See TracChangeset for help on using the changeset viewer.