Ignore:
Timestamp:
May 12, 2009, 1:58:56 AM (16 years ago)
Author:
[email protected]
Message:

Improve function call forwarding performance

Reviewed by Gavin Barraclough

Make creation of the Arguments object occur lazily, so it
is not necessarily created for every function that references
it. Then add logic to Function.apply to allow it to avoid
allocating the Arguments object at all. Helps a lot with
the function forwarding/binding logic in jQuery, Prototype,
and numerous other JS libraries.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/bytecode/Opcode.h

    r43401 r43559  
    4141        macro(op_enter, 1) \
    4242        macro(op_enter_with_activation, 2) \
     43        macro(op_init_arguments, 1) \
    4344        macro(op_create_arguments, 1) \
    4445        macro(op_convert_this, 2) \
Note: See TracChangeset for help on using the changeset viewer.