diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2015-05-20 09:56:07 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2015-05-20 09:56:07 +0000 |
commit | 41386e9cb918eed93b3f13648cbef387e371e451 (patch) | |
tree | a97f9d7bd1d9d091833286085f72da9d83fd0606 /Source/JavaScriptCore/runtime/JSSetIterator.cpp | |
parent | e15dd966d523731101f70ccf768bba12435a0208 (diff) | |
download | WebKitGtk-tarball-41386e9cb918eed93b3f13648cbef387e371e451.tar.gz |
webkitgtk-2.4.9webkitgtk-2.4.9
Diffstat (limited to 'Source/JavaScriptCore/runtime/JSSetIterator.cpp')
-rw-r--r-- | Source/JavaScriptCore/runtime/JSSetIterator.cpp | 24 |
1 files changed, 6 insertions, 18 deletions
diff --git a/Source/JavaScriptCore/runtime/JSSetIterator.cpp b/Source/JavaScriptCore/runtime/JSSetIterator.cpp index 3a0ddbeab..b1d8a6512 100644 --- a/Source/JavaScriptCore/runtime/JSSetIterator.cpp +++ b/Source/JavaScriptCore/runtime/JSSetIterator.cpp @@ -29,32 +29,27 @@ #include "JSCJSValueInlines.h" #include "JSCellInlines.h" #include "JSSet.h" -#include "MapDataInlines.h" #include "SlotVisitorInlines.h" -#include "StructureInlines.h" namespace JSC { -const ClassInfo JSSetIterator::s_info = { "Set Iterator", &Base::s_info, 0, CREATE_METHOD_TABLE(JSSetIterator) }; +const ClassInfo JSSetIterator::s_info = { "Set Iterator", &Base::s_info, 0, 0, CREATE_METHOD_TABLE(JSSetIterator) }; void JSSetIterator::finishCreation(VM& vm, JSSet* iteratedObject) { Base::finishCreation(vm); - m_set.set(vm, this, iteratedObject); + m_iteratedObjectData.set(vm, this, iteratedObject->mapData()); } void JSSetIterator::visitChildren(JSCell* cell, SlotVisitor& visitor) { JSSetIterator* thisObject = jsCast<JSSetIterator*>(cell); ASSERT_GC_OBJECT_INHERITS(thisObject, info()); + COMPILE_ASSERT(StructureFlags & OverridesVisitChildren, OverridesVisitChildrenWithoutSettingFlag); + ASSERT(thisObject->structure()->typeInfo().overridesVisitChildren()); + Base::visitChildren(thisObject, visitor); - visitor.append(&thisObject->m_set); -} - -void JSSetIterator::destroy(JSCell* cell) -{ - JSSetIterator* thisObject = jsCast<JSSetIterator*>(cell); - thisObject->JSSetIterator::~JSSetIterator(); + visitor.append(&thisObject->m_iteratedObjectData); } JSValue JSSetIterator::createPair(CallFrame* callFrame, JSValue key, JSValue value) @@ -66,11 +61,4 @@ JSValue JSSetIterator::createPair(CallFrame* callFrame, JSValue key, JSValue val return constructArray(callFrame, 0, globalObject, args); } -JSSetIterator* JSSetIterator::clone(ExecState* exec) -{ - auto clone = JSSetIterator::create(exec->vm(), exec->callee()->globalObject()->setIteratorStructure(), m_set.get(), m_kind); - clone->m_iterator = m_iterator; - return clone; -} - } |