diff options
Diffstat (limited to 'src/script/bridge/qscriptglobalobject.cpp')
-rw-r--r-- | src/script/bridge/qscriptglobalobject.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/script/bridge/qscriptglobalobject.cpp b/src/script/bridge/qscriptglobalobject.cpp index 17a96c3..c624a31 100644 --- a/src/script/bridge/qscriptglobalobject.cpp +++ b/src/script/bridge/qscriptglobalobject.cpp @@ -68,12 +68,11 @@ GlobalObject::~GlobalObject() { } -void GlobalObject::mark() +void GlobalObject::markChildren(JSC::MarkStack& markStack) { - Q_ASSERT(!marked()); - JSC::JSGlobalObject::mark(); - if (customGlobalObject && !customGlobalObject->marked()) - customGlobalObject->mark(); + JSC::JSGlobalObject::markChildren(markStack); + if (customGlobalObject) + markStack.append(customGlobalObject); } bool GlobalObject::getOwnPropertySlot(JSC::ExecState* exec, @@ -125,28 +124,29 @@ bool GlobalObject::getPropertyAttributes(JSC::ExecState* exec, const JSC::Identi return JSC::JSGlobalObject::getPropertyAttributes(exec, propertyName, attributes); } -void GlobalObject::getPropertyNames(JSC::ExecState* exec, JSC::PropertyNameArray& propertyNames, unsigned listedAttributes) +void GlobalObject::getOwnPropertyNames(JSC::ExecState* exec, JSC::PropertyNameArray& propertyNames, + bool includeNonEnumerable) { if (customGlobalObject) - customGlobalObject->getPropertyNames(exec, propertyNames, listedAttributes); + customGlobalObject->getOwnPropertyNames(exec, propertyNames, includeNonEnumerable); else - JSC::JSGlobalObject::getPropertyNames(exec, propertyNames, listedAttributes); + JSC::JSGlobalObject::getOwnPropertyNames(exec, propertyNames, includeNonEnumerable); } -void GlobalObject::defineGetter(JSC::ExecState* exec, const JSC::Identifier& propertyName, JSC::JSObject* getterFunction) +void GlobalObject::defineGetter(JSC::ExecState* exec, const JSC::Identifier& propertyName, JSC::JSObject* getterFunction, unsigned attributes) { if (customGlobalObject) - customGlobalObject->defineGetter(exec, propertyName, getterFunction); + customGlobalObject->defineGetter(exec, propertyName, getterFunction, attributes); else - JSC::JSGlobalObject::defineGetter(exec, propertyName, getterFunction); + JSC::JSGlobalObject::defineGetter(exec, propertyName, getterFunction, attributes); } -void GlobalObject::defineSetter(JSC::ExecState* exec, const JSC::Identifier& propertyName, JSC::JSObject* setterFunction) +void GlobalObject::defineSetter(JSC::ExecState* exec, const JSC::Identifier& propertyName, JSC::JSObject* setterFunction, unsigned attributes) { if (customGlobalObject) - customGlobalObject->defineSetter(exec, propertyName, setterFunction); + customGlobalObject->defineSetter(exec, propertyName, setterFunction, attributes); else - JSC::JSGlobalObject::defineSetter(exec, propertyName, setterFunction); + JSC::JSGlobalObject::defineSetter(exec, propertyName, setterFunction, attributes); } JSC::JSValue GlobalObject::lookupGetter(JSC::ExecState* exec, const JSC::Identifier& propertyName) |