Ignore:
Timestamp:
Oct 16, 2009, 6:06:40 PM (16 years ago)
Author:
[email protected]
Message:

structure typeinfo flags should be inherited.
https://bugs.webkit.org/show_bug.cgi?id=30468

Reviewed by Gavin Barraclough.

Add StructureFlag constant to the various JSC classes and use
it for the TypeInfo construction. This allows us to simply
accumulate flags by basing each classes StructureInfo on its parents.

File:
1 edited

Legend:

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

    r49694 r49721  
    208208        static PassRefPtr<Structure> createStructure(JSValue prototype)
    209209        {
    210             return Structure::create(prototype, TypeInfo(ObjectType));
     210            return Structure::create(prototype, TypeInfo(ObjectType, StructureFlags));
    211211        }
    212212
    213213    protected:
     214        static const unsigned StructureFlags = 0;
     215
    214216        void addAnonymousSlots(unsigned count);
    215217        void putAnonymousValue(unsigned index, JSValue value)
Note: See TracChangeset for help on using the changeset viewer.