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/JSFunction.h

    r49694 r49721  
    6262        static PassRefPtr<Structure> createStructure(JSValue prototype)
    6363        {
    64             return Structure::create(prototype, TypeInfo(ObjectType, OverridesGetOwnPropertySlot | ImplementsHasInstance | OverridesMarkChildren | OverridesGetPropertyNames));
     64            return Structure::create(prototype, TypeInfo(ObjectType, StructureFlags));
    6565        }
    6666
     
    7272        virtual ConstructType getConstructData(ConstructData&);
    7373        virtual CallType getCallData(CallData&);
     74
     75    protected:
     76        const static unsigned StructureFlags = OverridesGetOwnPropertySlot | ImplementsHasInstance | OverridesMarkChildren | OverridesGetPropertyNames | InternalFunction::StructureFlags;
    7477
    7578    private:
Note: See TracChangeset for help on using the changeset viewer.