Ignore:
Timestamp:
Nov 9, 2009, 6:19:04 PM (16 years ago)
Author:
[email protected]
Message:

Can cache prototype lookups on uncacheable dictionaries.
https://bugs.webkit.org/show_bug.cgi?id=31198

Reviewed by Gavin Barraclough.

Replace fromDictionaryTransition with flattenDictionaryObject and
flattenDictionaryStructure. This change is necessary as we need to
guarantee that our attempt to convert away from a dictionary structure
will definitely succeed, and in some cases this requires mutating the
object storage itself.

File:
1 edited

Legend:

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

    r50254 r50704  
    7575        static PassRefPtr<Structure> toCacheableDictionaryTransition(Structure*);
    7676        static PassRefPtr<Structure> toUncacheableDictionaryTransition(Structure*);
    77         static PassRefPtr<Structure> fromDictionaryTransition(Structure*);
     77
     78        PassRefPtr<Structure> flattenDictionaryStructure(JSObject*);
    7879
    7980        ~Structure();
Note: See TracChangeset for help on using the changeset viewer.