Changeset 49694 in webkit


Ignore:
Timestamp:
Oct 16, 2009 1:39:46 PM (15 years ago)
Author:
oliver@apple.com
Message:

Make typeinfo flags default to false
https://bugs.webkit.org/show_bug.cgi?id=30372

Reviewed by Gavin Barraclough.

Last part -- replace HasDefaultGetPropertyNames with OverridesGetPropertyNames
flag.

Location:
trunk
Files:
40 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/API/JSCallbackConstructor.h

    r49649 r49694  
    4242    static PassRefPtr<Structure> createStructure(JSValue proto)
    4343    {
    44         return Structure::create(proto, TypeInfo(ObjectType, ImplementsHasInstance | HasDefaultGetPropertyNames));
     44        return Structure::create(proto, TypeInfo(ObjectType, ImplementsHasInstance));
    4545    }
    4646
  • trunk/JavaScriptCore/API/JSCallbackObject.h

    r49649 r49694  
    5151    static PassRefPtr<Structure> createStructure(JSValue proto)
    5252    {
    53         return Structure::create(proto, TypeInfo(ObjectType, OverridesGetOwnPropertySlot | ImplementsHasInstance | OverridesHasInstance | OverridesMarkChildren));
     53        return Structure::create(proto, TypeInfo(ObjectType, OverridesGetOwnPropertySlot | ImplementsHasInstance | OverridesHasInstance | OverridesMarkChildren | OverridesGetPropertyNames));
    5454    }
    5555
  • trunk/JavaScriptCore/ChangeLog

    r49688 r49694  
     12009-10-16  Oliver Hunt  <oliver@apple.com>
     2
     3        Reviewed by Gavin Barraclough.
     4
     5        Make typeinfo flags default to false
     6        https://bugs.webkit.org/show_bug.cgi?id=30372
     7
     8        Last part -- replace HasDefaultGetPropertyNames with OverridesGetPropertyNames
     9        flag.
     10
     11        * API/JSCallbackConstructor.h:
     12        (JSC::JSCallbackConstructor::createStructure):
     13        * API/JSCallbackObject.h:
     14        (JSC::JSCallbackObject::createStructure):
     15        * debugger/DebuggerActivation.h:
     16        (JSC::DebuggerActivation::createStructure):
     17        * runtime/Arguments.h:
     18        (JSC::Arguments::createStructure):
     19        * runtime/BooleanObject.h:
     20        (JSC::BooleanObject::createStructure):
     21        * runtime/DatePrototype.h:
     22        (JSC::DatePrototype::createStructure):
     23        * runtime/FunctionPrototype.h:
     24        (JSC::FunctionPrototype::createStructure):
     25        * runtime/GlobalEvalFunction.h:
     26        (JSC::GlobalEvalFunction::createStructure):
     27        * runtime/JSAPIValueWrapper.h:
     28        (JSC::JSAPIValueWrapper::createStructure):
     29        * runtime/JSActivation.h:
     30        (JSC::JSActivation::createStructure):
     31        * runtime/JSArray.h:
     32        (JSC::JSArray::createStructure):
     33        * runtime/JSByteArray.cpp:
     34        (JSC::JSByteArray::createStructure):
     35        * runtime/JSFunction.h:
     36        (JSC::JSFunction::createStructure):
     37        * runtime/JSGlobalObject.h:
     38        (JSC::JSGlobalObject::createStructure):
     39        * runtime/JSNotAnObject.h:
     40        (JSC::JSNotAnObject::createStructure):
     41        * runtime/JSONObject.h:
     42        (JSC::JSONObject::createStructure):
     43        * runtime/JSObject.cpp:
     44        (JSC::JSObject::getPropertyNames):
     45        * runtime/JSObject.h:
     46        (JSC::JSObject::createStructure):
     47        * runtime/JSStaticScopeObject.h:
     48        (JSC::JSStaticScopeObject::createStructure):
     49        * runtime/JSTypeInfo.h:
     50        (JSC::TypeInfo::overridesGetPropertyNames):
     51        * runtime/JSVariableObject.h:
     52        (JSC::JSVariableObject::createStructure):
     53        * runtime/JSWrapperObject.h:
     54        (JSC::JSWrapperObject::createStructure):
     55        * runtime/MathObject.h:
     56        (JSC::MathObject::createStructure):
     57        * runtime/NumberConstructor.h:
     58        (JSC::NumberConstructor::createStructure):
     59        * runtime/NumberObject.h:
     60        (JSC::NumberObject::createStructure):
     61        * runtime/RegExpConstructor.h:
     62        (JSC::RegExpConstructor::createStructure):
     63        * runtime/RegExpObject.h:
     64        (JSC::RegExpObject::createStructure):
     65        * runtime/StringObject.h:
     66        (JSC::StringObject::createStructure):
     67        * runtime/StringObjectThatMasqueradesAsUndefined.h:
     68        (JSC::StringObjectThatMasqueradesAsUndefined::createStructure):
     69        * runtime/StructureChain.cpp:
     70        (JSC::StructureChain::isCacheable):
     71
    1722009-10-16  Kevin Ollivier  <kevino@theolliviers.com>
    273
  • trunk/JavaScriptCore/debugger/DebuggerActivation.h

    r49649 r49694  
    5252        static PassRefPtr<Structure> createStructure(JSValue prototype)
    5353        {
    54             return Structure::create(prototype, TypeInfo(ObjectType, OverridesGetOwnPropertySlot | HasDefaultGetPropertyNames | OverridesMarkChildren));
     54            return Structure::create(prototype, TypeInfo(ObjectType, OverridesGetOwnPropertySlot | OverridesMarkChildren));
    5555        }
    5656
  • trunk/JavaScriptCore/runtime/Arguments.h

    r49649 r49694  
    8686        static PassRefPtr<Structure> createStructure(JSValue prototype)
    8787        {
    88             return Structure::create(prototype, TypeInfo(ObjectType, OverridesGetOwnPropertySlot | OverridesMarkChildren));
     88            return Structure::create(prototype, TypeInfo(ObjectType, OverridesGetOwnPropertySlot | OverridesMarkChildren | OverridesGetPropertyNames));
    8989        }
    9090
  • trunk/JavaScriptCore/runtime/BooleanObject.h

    r49649 r49694  
    3535        static PassRefPtr<Structure> createStructure(JSValue prototype)
    3636        {
    37             return Structure::create(prototype, TypeInfo(ObjectType, HasDefaultGetPropertyNames));
     37            return Structure::create(prototype, TypeInfo(ObjectType));
    3838        }
    3939    };
  • trunk/JavaScriptCore/runtime/DatePrototype.h

    r49649 r49694  
    4040        static PassRefPtr<Structure> createStructure(JSValue prototype)
    4141        {
    42             return Structure::create(prototype, TypeInfo(ObjectType, OverridesGetOwnPropertySlot | HasDefaultGetPropertyNames | OverridesMarkChildren));
     42            return Structure::create(prototype, TypeInfo(ObjectType, OverridesGetOwnPropertySlot | OverridesMarkChildren));
    4343        }
    4444    };
  • trunk/JavaScriptCore/runtime/FunctionPrototype.h

    r49649 r49694  
    3535        static PassRefPtr<Structure> createStructure(JSValue proto)
    3636        {
    37             return Structure::create(proto, TypeInfo(ObjectType, HasDefaultGetPropertyNames));
     37            return Structure::create(proto, TypeInfo(ObjectType));
    3838        }
    3939
  • trunk/JavaScriptCore/runtime/GlobalEvalFunction.h

    r49649 r49694  
    3838        static PassRefPtr<Structure> createStructure(JSValue prototype)
    3939        {
    40             return Structure::create(prototype, TypeInfo(ObjectType, ImplementsHasInstance | OverridesMarkChildren));
     40            return Structure::create(prototype, TypeInfo(ObjectType, ImplementsHasInstance | OverridesMarkChildren | OverridesGetPropertyNames));
    4141        }
    4242
  • trunk/JavaScriptCore/runtime/JSAPIValueWrapper.h

    r49649 r49694  
    4040        static PassRefPtr<Structure> createStructure(JSValue prototype)
    4141        {
    42             return Structure::create(prototype, TypeInfo(CompoundType, OverridesMarkChildren));
     42            return Structure::create(prototype, TypeInfo(CompoundType, OverridesMarkChildren | OverridesGetPropertyNames));
    4343        }
    4444
  • trunk/JavaScriptCore/runtime/JSActivation.h

    r49649 r49694  
    6767        static const ClassInfo info;
    6868
    69         static PassRefPtr<Structure> createStructure(JSValue proto) { return Structure::create(proto, TypeInfo(ObjectType, OverridesGetOwnPropertySlot | NeedsThisConversion | OverridesMarkChildren)); }
     69        static PassRefPtr<Structure> createStructure(JSValue proto) { return Structure::create(proto, TypeInfo(ObjectType, OverridesGetOwnPropertySlot | NeedsThisConversion | OverridesMarkChildren | OverridesGetPropertyNames)); }
    7070
    7171    private:
  • trunk/JavaScriptCore/runtime/JSArray.h

    r49649 r49694  
    8888        static PassRefPtr<Structure> createStructure(JSValue prototype)
    8989        {
    90             return Structure::create(prototype, TypeInfo(ObjectType, OverridesGetOwnPropertySlot | OverridesMarkChildren));
     90            return Structure::create(prototype, TypeInfo(ObjectType, OverridesGetOwnPropertySlot | OverridesMarkChildren | OverridesGetPropertyNames));
    9191        }
    9292       
  • trunk/JavaScriptCore/runtime/JSByteArray.cpp

    r49649 r49694  
    4646PassRefPtr<Structure> JSByteArray::createStructure(JSValue prototype)
    4747{
    48     PassRefPtr<Structure> result = Structure::create(prototype, TypeInfo(ObjectType, OverridesGetOwnPropertySlot));
     48    PassRefPtr<Structure> result = Structure::create(prototype, TypeInfo(ObjectType, OverridesGetOwnPropertySlot | OverridesGetPropertyNames));
    4949    return result;
    5050}
  • trunk/JavaScriptCore/runtime/JSFunction.h

    r49649 r49694  
    6262        static PassRefPtr<Structure> createStructure(JSValue prototype)
    6363        {
    64             return Structure::create(prototype, TypeInfo(ObjectType, OverridesGetOwnPropertySlot | ImplementsHasInstance | OverridesMarkChildren));
     64            return Structure::create(prototype, TypeInfo(ObjectType, OverridesGetOwnPropertySlot | ImplementsHasInstance | OverridesMarkChildren | OverridesGetPropertyNames));
    6565        }
    6666
  • trunk/JavaScriptCore/runtime/JSGlobalObject.h

    r49649 r49694  
    268268        static PassRefPtr<Structure> createStructure(JSValue prototype)
    269269        {
    270             return Structure::create(prototype, TypeInfo(ObjectType, OverridesGetOwnPropertySlot | OverridesMarkChildren));
     270            return Structure::create(prototype, TypeInfo(ObjectType, OverridesGetOwnPropertySlot | OverridesMarkChildren | OverridesGetPropertyNames));
    271271        }
    272272
  • trunk/JavaScriptCore/runtime/JSNotAnObject.h

    r49649 r49694  
    6363        static PassRefPtr<Structure> createStructure(JSValue prototype)
    6464        {
    65             return Structure::create(prototype, TypeInfo(ObjectType, OverridesGetOwnPropertySlot | OverridesMarkChildren));
     65            return Structure::create(prototype, TypeInfo(ObjectType, OverridesGetOwnPropertySlot | OverridesMarkChildren | OverridesGetPropertyNames));
    6666        }
    6767
  • trunk/JavaScriptCore/runtime/JSONObject.h

    r49649 r49694  
    4242        static PassRefPtr<Structure> createStructure(JSValue prototype)
    4343        {
    44             return Structure::create(prototype, TypeInfo(ObjectType, OverridesGetOwnPropertySlot | HasDefaultGetPropertyNames));
     44            return Structure::create(prototype, TypeInfo(ObjectType, OverridesGetOwnPropertySlot));
    4545        }
    4646
  • trunk/JavaScriptCore/runtime/JSObject.cpp

    r49398 r49694  
    463463        JSObject* prototype = asObject(this->prototype());
    464464        while(1) {
    465             if (!prototype->structure()->typeInfo().hasDefaultGetPropertyNames()) {
     465            if (prototype->structure()->typeInfo().overridesGetPropertyNames()) {
    466466                prototype->getPropertyNames(exec, propertyNames);
    467467                break;
  • trunk/JavaScriptCore/runtime/JSObject.h

    r49649 r49694  
    208208        static PassRefPtr<Structure> createStructure(JSValue prototype)
    209209        {
    210             return Structure::create(prototype, TypeInfo(ObjectType, HasDefaultGetPropertyNames));
     210            return Structure::create(prototype, TypeInfo(ObjectType));
    211211        }
    212212
  • trunk/JavaScriptCore/runtime/JSStaticScopeObject.h

    r49649 r49694  
    5858        void putWithAttributes(ExecState*, const Identifier&, JSValue, unsigned attributes);
    5959
    60         static PassRefPtr<Structure> createStructure(JSValue proto) { return Structure::create(proto, TypeInfo(ObjectType, OverridesGetOwnPropertySlot | NeedsThisConversion | OverridesMarkChildren)); }
     60        static PassRefPtr<Structure> createStructure(JSValue proto) { return Structure::create(proto, TypeInfo(ObjectType, OverridesGetOwnPropertySlot | NeedsThisConversion | OverridesMarkChildren | OverridesGetPropertyNames)); }
    6161
    6262    private:
  • trunk/JavaScriptCore/runtime/JSTypeInfo.h

    r49649 r49694  
    4343    static const unsigned OverridesGetOwnPropertySlot = 1 << 5;
    4444    static const unsigned OverridesMarkChildren = 1 << 6;
    45     static const unsigned HasDefaultGetPropertyNames = 1 << 7;
     45    static const unsigned OverridesGetPropertyNames = 1 << 7;
    4646
    4747    class TypeInfo {
     
    6666        bool overridesGetOwnPropertySlot() const { return m_flags & OverridesGetOwnPropertySlot; }
    6767        bool overridesMarkChildren() const { return m_flags & OverridesMarkChildren; }
    68         bool hasDefaultGetPropertyNames() const { return m_flags & HasDefaultGetPropertyNames; }
     68        bool overridesGetPropertyNames() const { return m_flags & OverridesGetPropertyNames; }
    6969        unsigned flags() const { return m_flags; }
    7070
  • trunk/JavaScriptCore/runtime/JSVariableObject.h

    r49649 r49694  
    6161        static PassRefPtr<Structure> createStructure(JSValue prototype)
    6262        {
    63             return Structure::create(prototype, TypeInfo(ObjectType));
     63            return Structure::create(prototype, TypeInfo(ObjectType, OverridesGetPropertyNames));
    6464        }
    6565       
  • trunk/JavaScriptCore/runtime/JSWrapperObject.h

    r49649 r49694  
    3939        static PassRefPtr<Structure> createStructure(JSValue prototype)
    4040        {
    41             return Structure::create(prototype, TypeInfo(ObjectType, HasDefaultGetPropertyNames));
     41            return Structure::create(prototype, TypeInfo(ObjectType));
    4242        }
    4343
  • trunk/JavaScriptCore/runtime/MathObject.h

    r49649 r49694  
    3838        static PassRefPtr<Structure> createStructure(JSValue prototype)
    3939        {
    40             return Structure::create(prototype, TypeInfo(ObjectType, OverridesGetOwnPropertySlot | HasDefaultGetPropertyNames));
     40            return Structure::create(prototype, TypeInfo(ObjectType, OverridesGetOwnPropertySlot));
    4141        }
    4242    };
  • trunk/JavaScriptCore/runtime/NumberConstructor.h

    r49649 r49694  
    4040        static PassRefPtr<Structure> createStructure(JSValue proto)
    4141        {
    42             return Structure::create(proto, TypeInfo(ObjectType, OverridesGetOwnPropertySlot | ImplementsHasInstance | HasDefaultGetPropertyNames));
     42            return Structure::create(proto, TypeInfo(ObjectType, OverridesGetOwnPropertySlot | ImplementsHasInstance));
    4343        }
    4444
  • trunk/JavaScriptCore/runtime/NumberObject.h

    r49649 r49694  
    3434        static PassRefPtr<Structure> createStructure(JSValue prototype)
    3535        {
    36             return Structure::create(prototype, TypeInfo(ObjectType, HasDefaultGetPropertyNames | OverridesMarkChildren));
     36            return Structure::create(prototype, TypeInfo(ObjectType, OverridesMarkChildren));
    3737        }
    3838#else
    3939        static PassRefPtr<Structure> createStructure(JSValue prototype)
    4040        {
    41             return Structure::create(prototype, TypeInfo(ObjectType, HasDefaultGetPropertyNames));
     41            return Structure::create(prototype, TypeInfo(ObjectType));
    4242        }
    4343#endif
  • trunk/JavaScriptCore/runtime/RegExpConstructor.h

    r49649 r49694  
    6060        static PassRefPtr<Structure> createStructure(JSValue prototype)
    6161        {
    62             return Structure::create(prototype, TypeInfo(ObjectType, OverridesGetOwnPropertySlot | ImplementsHasInstance | HasDefaultGetPropertyNames));
     62            return Structure::create(prototype, TypeInfo(ObjectType, OverridesGetOwnPropertySlot | ImplementsHasInstance));
    6363        }
    6464
  • trunk/JavaScriptCore/runtime/RegExpObject.h

    r49649 r49694  
    5050        static PassRefPtr<Structure> createStructure(JSValue prototype)
    5151        {
    52             return Structure::create(prototype, TypeInfo(ObjectType, OverridesGetOwnPropertySlot | HasDefaultGetPropertyNames));
     52            return Structure::create(prototype, TypeInfo(ObjectType, OverridesGetOwnPropertySlot));
    5353        }
    5454
  • trunk/JavaScriptCore/runtime/StringObject.h

    r49649 r49694  
    4949        static PassRefPtr<Structure> createStructure(JSValue prototype)
    5050        {
    51             return Structure::create(prototype, TypeInfo(ObjectType, OverridesGetOwnPropertySlot | OverridesMarkChildren));
     51            return Structure::create(prototype, TypeInfo(ObjectType, OverridesGetOwnPropertySlot | OverridesMarkChildren | OverridesGetPropertyNames));
    5252        }
    5353
  • trunk/JavaScriptCore/runtime/StringObjectThatMasqueradesAsUndefined.h

    r49649 r49694  
    4545        static PassRefPtr<Structure> createStructure(JSValue proto)
    4646        {
    47             return Structure::create(proto, TypeInfo(ObjectType, OverridesGetOwnPropertySlot | MasqueradesAsUndefined));
     47            return Structure::create(proto, TypeInfo(ObjectType, OverridesGetOwnPropertySlot | MasqueradesAsUndefined | OverridesGetPropertyNames));
    4848        }
    4949
  • trunk/JavaScriptCore/runtime/StructureChain.cpp

    r48582 r49694  
    5555        if (m_vector[i]->isDictionary())
    5656            return false;
    57         if (!m_vector[i++]->typeInfo().hasDefaultGetPropertyNames())
     57        if (m_vector[i++]->typeInfo().overridesGetPropertyNames())
    5858            return false;
    5959    }
  • trunk/JavaScriptGlue/ChangeLog

    r49649 r49694  
     12009-10-16  Oliver Hunt  <oliver@apple.com>
     2
     3        Reviewed by Gavin Barraclough.
     4
     5        Make typeinfo flags default to false
     6        https://bugs.webkit.org/show_bug.cgi?id=30372
     7
     8        Last part -- replace HasDefaultGetPropertyNames with OverridesGetPropertyNames
     9        flag.
     10
     11        * UserObjectImp.h:
     12        (UserObjectImp::createStructure):
     13
    1142009-10-15  Oliver Hunt  <oliver@apple.com>
    215
  • trunk/JavaScriptGlue/UserObjectImp.h

    r49649 r49694  
    6262    static PassRefPtr<Structure> createStructure(JSValue prototype)
    6363    {
    64         return Structure::create(prototype, TypeInfo(ObjectType, OverridesGetOwnPropertySlot | OverridesMarkChildren));
     64        return Structure::create(prototype, TypeInfo(ObjectType, OverridesGetOwnPropertySlot | OverridesMarkChildren | OverridesGetPropertyNames));
    6565    }
    6666
  • trunk/WebCore/ChangeLog

    r49693 r49694  
     12009-10-16  Oliver Hunt  <oliver@apple.com>
     2
     3        Reviewed by Gavin Barraclough.
     4
     5        Make typeinfo flags default to false
     6        https://bugs.webkit.org/show_bug.cgi?id=30372
     7
     8        Last part -- replace HasDefaultGetPropertyNames with OverridesGetPropertyNames
     9        flag.
     10
     11        * bindings/js/JSDOMWindowShell.h:
     12        (WebCore::JSDOMWindowShell::createStructure):
     13        * bindings/js/JSHTMLAllCollection.h:
     14        (WebCore::JSHTMLAllCollection::createStructure):
     15        * bindings/js/JSQuarantinedObjectWrapper.h:
     16        (WebCore::JSQuarantinedObjectWrapper::createStructure):
     17        * bindings/scripts/CodeGeneratorJS.pm:
     18        * bridge/runtime_array.h:
     19        (JSC::RuntimeArray::createStructure):
     20        * bridge/runtime_object.h:
     21        (JSC::RuntimeObjectImp::createStructure):
     22
    1232009-10-16  Steven Knight  <sgk@chromium.org>
    224
  • trunk/WebCore/bindings/js/JSDOMWindowShell.h

    r49649 r49694  
    6161        static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype)
    6262        {
    63             return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, JSC::OverridesGetOwnPropertySlot | JSC::OverridesMarkChildren));
     63            return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, JSC::OverridesGetOwnPropertySlot | JSC::OverridesMarkChildren | JSC::OverridesGetPropertyNames));
    6464        }
    6565
  • trunk/WebCore/bindings/js/JSHTMLAllCollection.h

    r49649 r49694  
    4343        static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue proto)
    4444        {
    45             return JSC::Structure::create(proto, JSC::TypeInfo(JSC::ObjectType, JSC::OverridesGetOwnPropertySlot | JSC::MasqueradesAsUndefined | JSC::OverridesMarkChildren));
     45            return JSC::Structure::create(proto, JSC::TypeInfo(JSC::ObjectType, JSC::OverridesGetOwnPropertySlot | JSC::MasqueradesAsUndefined | JSC::OverridesMarkChildren | JSC::OverridesGetPropertyNames));
    4646        }
    4747
  • trunk/WebCore/bindings/js/JSQuarantinedObjectWrapper.h

    r49649 r49694  
    4848        static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue proto)
    4949        {
    50             return JSC::Structure::create(proto, JSC::TypeInfo(JSC::ObjectType, JSC::OverridesGetOwnPropertySlot | JSC::ImplementsHasInstance | JSC::OverridesHasInstance | JSC::OverridesMarkChildren));
     50            return JSC::Structure::create(proto, JSC::TypeInfo(JSC::ObjectType, JSC::OverridesGetOwnPropertySlot | JSC::ImplementsHasInstance | JSC::OverridesHasInstance | JSC::OverridesMarkChildren | JSC::OverridesGetPropertyNames));
    5151        }
    5252
  • trunk/WebCore/bindings/scripts/CodeGeneratorJS.pm

    r49649 r49694  
    606606            "    static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype)\n" .
    607607            "    {\n" .
    608             "        return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, JSC::OverridesGetOwnPropertySlot | JSC::ImplementsHasInstance | JSC::NeedsThisConversion | JSC::OverridesMarkChildren));\n" .
     608            "        return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, JSC::OverridesGetOwnPropertySlot | JSC::ImplementsHasInstance | JSC::NeedsThisConversion | JSC::OverridesMarkChildren | JSC::OverridesGetPropertyNames));\n" .
    609609            "    }\n\n");
    610610    } elsif ($hasGetter) {
     
    612612            "    static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype)\n" .
    613613            "    {\n" .
    614             "        return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, JSC::OverridesGetOwnPropertySlot | JSC::OverridesMarkChildren));\n" .
     614            "        return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, JSC::OverridesGetOwnPropertySlot | JSC::OverridesMarkChildren | JSC::OverridesGetPropertyNames));\n" .
    615615            "    }\n\n");
    616616    }
     
    792792            "    static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype)\n" .
    793793            "    {\n" .
    794             "        return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, JSC::OverridesGetOwnPropertySlot" . ($needsMarkChildren ? " | JSC::OverridesMarkChildren" : "") . "));\n" .
     794            "        return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, JSC::OverridesGetOwnPropertySlot" . ($needsMarkChildren ? " | JSC::OverridesMarkChildren" : "") . " | JSC::OverridesGetPropertyNames));\n" .
    795795            "    }\n");
    796796    } elsif ($dataNode->extendedAttributes->{"CustomMarkFunction"}) {
     
    798798            "    static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype)\n" .
    799799            "    {\n" .
    800             "        return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, JSC::OverridesGetOwnPropertySlot | JSC::OverridesMarkChildren));\n" .
     800            "        return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, JSC::OverridesGetOwnPropertySlot | JSC::OverridesMarkChildren | JSC::OverridesGetPropertyNames));\n" .
    801801            "    }\n");
    802802    }
     
    22542254    static PassRefPtr<Structure> createStructure(JSValue proto)
    22552255    {
    2256         return Structure::create(proto, TypeInfo(ObjectType, OverridesGetOwnPropertySlot | ImplementsHasInstance | OverridesMarkChildren));
     2256        return Structure::create(proto, TypeInfo(ObjectType, OverridesGetOwnPropertySlot | ImplementsHasInstance | OverridesMarkChildren | OverridesGetPropertyNames));
    22572257    }
    22582258EOF
  • trunk/WebCore/bridge/runtime_array.h

    r49607 r49694  
    6060    static PassRefPtr<Structure> createStructure(JSValue prototype)
    6161    {
    62         return Structure::create(prototype, TypeInfo(ObjectType, OverridesGetOwnPropertySlot));
     62        return Structure::create(prototype, TypeInfo(ObjectType, OverridesGetOwnPropertySlot | OverridesGetPropertyNames));
    6363    }
    6464
  • trunk/WebCore/bridge/runtime_object.h

    r49607 r49694  
    6363    static PassRefPtr<Structure> createStructure(JSValue prototype)
    6464    {
    65         return Structure::create(prototype, TypeInfo(ObjectType, OverridesGetOwnPropertySlot));
     65        return Structure::create(prototype, TypeInfo(ObjectType, OverridesGetOwnPropertySlot | OverridesGetPropertyNames));
    6666    }
    6767
Note: See TracChangeset for help on using the changeset viewer.