Changeset 35806 in webkit for trunk/JavaScriptCore/kjs/JSArray.h


Ignore:
Timestamp:
Aug 17, 2008, 12:57:39 AM (17 years ago)
Author:
[email protected]
Message:

2007-08-16 Geoffrey Garen <[email protected]>

Reviewed by Oliver Hunt.


Sped up property access for array.length and string.length by adding a
mechanism for returning a temporary value directly instead of returning
a pointer to a function that retrieves the value.


Also removed some unused cruft from PropertySlot.


SunSpider says 0.5% - 1.2% faster.

NOTE: This optimization is not a good idea in general, because it's
actually a pessimization in the case of resolve for assignment,
and it may get in the way of other optimizations in the future.

File:
1 edited

Legend:

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

    r35291 r35806  
    8282        virtual const ClassInfo* classInfo() const { return &info; }
    8383
    84         static JSValue* lengthGetter(ExecState*, const Identifier&, const PropertySlot&);
    85 
    8684        bool getOwnPropertySlotSlowCase(ExecState*, unsigned propertyName, PropertySlot&);
    8785        void putSlowCase(ExecState*, unsigned propertyName, JSValue*);
Note: See TracChangeset for help on using the changeset viewer.