Changeset 34964 in webkit for trunk/JavaScriptCore/kjs/JSValue.h


Ignore:
Timestamp:
Jul 2, 2008, 5:47:00 PM (17 years ago)
Author:
[email protected]
Message:

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

Reviewed by Oliver Hunt.

Optimized a[n] get for cases where a is an array or a string, and a[n]
put for cases where a is an array.


SunSpider says 9.0% faster.

File:
1 edited

Legend:

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

    r34921 r34964  
    5353    friend class JSCell; // so it can derive from this class
    5454    friend class Heap; // so it can call asCell()
     55    friend class Machine; // so it can call asCell()
    5556private:
    5657    JSValue();
Note: See TracChangeset for help on using the changeset viewer.