Changeset 36036 in webkit for trunk/JavaScriptCore/kjs/JSObject.h


Ignore:
Timestamp:
Sep 2, 2008, 7:58:14 PM (17 years ago)
Author:
[email protected]
Message:

2008-09-02 Geoffrey Garen <[email protected]>

Reviewed by Anders Carlsson.


Added optimized paths for comparing to null.


SunSpider says 0.5% faster.

File:
1 edited

Legend:

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

    r36032 r36036  
    115115        virtual bool getPropertyAttributes(ExecState*, const Identifier& propertyName, unsigned& attributes) const;
    116116
    117         // WebCore uses this to make document.all and style.filter undetectable
    118         virtual bool masqueradeAsUndefined() const { return false; }
    119 
    120117        // This get function only looks at the property map.
    121118        JSValue* getDirect(const Identifier& propertyName) const { return m_propertyMap.get(propertyName); }
Note: See TracChangeset for help on using the changeset viewer.