Ignore:
Timestamp:
Mar 17, 2008, 4:33:40 PM (17 years ago)
Author:
[email protected]
Message:

Add fast multi-level scope lookup

Reviewed by Geoff, Darin and Weinig

Add logic and AST nodes to provide rapid variable resolution across
static scope boundaries. This also adds logic that allows us to skip
any static scopes that do not contain the variable to be resolved.

This results in a ~2.5% speedup in SunSpider, and gives a 25-30% speedup
in some simple and ad hoc closure and global variable access tests.

File:
1 edited

Legend:

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

    r30534 r31114  
    7474        bool needsPop() const { return d()->isOnStack || d()->leftRelic; }
    7575
     76        virtual bool isDynamicScope() const;
    7677    private:
    7778        static PropertySlot::GetValueFunc getArgumentsGetter();
Note: See TracChangeset for help on using the changeset viewer.