Changeset 31114 in webkit for trunk/JavaScriptCore/kjs/object.h


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/object.h

    r30534 r31114  
    433433    virtual bool isActivationObject() const { return false; }
    434434    virtual bool isGlobalObject() const { return false; }
     435    virtual bool isVariableObject() const { return false; }
    435436
    436437  protected:
Note: See TracChangeset for help on using the changeset viewer.