Ignore:
Timestamp:
Oct 28, 2009, 6:25:02 PM (16 years ago)
Author:
[email protected]
Message:

Improve for..in enumeration performance
https://bugs.webkit.org/show_bug.cgi?id=30887

Reviewed by Geoff Garen.

Improve indexing of an object with a for..in iterator by
identifying cases where get_by_val is being used with a iterator
as the subscript and replace it with a new get_by_pname
bytecode. get_by_pname then optimizes lookups that directly access
the base object.

File:
1 edited

Legend:

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

    r49721 r50254  
    203203        bool isUsingInlineStorage() const { return m_structure->isUsingInlineStorage(); }
    204204
    205         static const size_t inlineStorageCapacity = sizeof(EncodedJSValue) == 2 * sizeof(void*) ? 4 : 3;
    206         static const size_t nonInlineBaseStorageCapacity = 16;
     205        static const unsigned inlineStorageCapacity = sizeof(EncodedJSValue) == 2 * sizeof(void*) ? 4 : 3;
     206        static const unsigned nonInlineBaseStorageCapacity = 16;
    207207
    208208        static PassRefPtr<Structure> createStructure(JSValue prototype)
Note: See TracChangeset for help on using the changeset viewer.