Ignore:
Timestamp:
Mar 19, 2008, 11:36:26 PM (17 years ago)
Author:
[email protected]
Message:

Avoid heap allocating the root scope chain node for eval and closure free functions

Reviewed by Maciej

Maciej suggested using an inline ScopeChainNode for functions that don't use eval
or closures as they are unable to ever capture the scope chain. This gives us a 2.4%
win in sunspider, a 15% win in controlflow-recursive, and big (>5%) wins in a number
of other tests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/ExecState.h

    r31167 r31172  
    189189
    190190        ScopeChain m_scopeChain;
     191        ScopeChainNode m_inlineScopeChainNode;
    191192        JSVariableObject* m_variableObject;
    192193        JSObject* m_thisValue;
Note: See TracChangeset for help on using the changeset viewer.