-
ggaren@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=85128 Reviewed by Anders Carlsson. ../JavaScriptCore: This is a step toward faster finalization. WeakSet::allocate() now deduces which WeakSet to allocate from based on its JSCell* argument. (Currently, there's only one WeakSet, but soon there will be many.) This was a global replace of "globalData.heap.weakSet()->allocate" with "WeakSet::allocate", plus by-hand removal of the JSGlobalData argument. * heap/WeakSetInlines.h: Copied from Source/JavaScriptCore/heap/WeakSet.h. I had to split out WeakSet::allocate() in to a separate header to avoid a cycle. (JSC::WeakSet::allocate): We can mask the pointer we're passed to figure out where to allocate our WeakImpl. (Soon, we'll use this to associate the WeakImpl with the GC block it references.) ../WebCore: Mechanically removed JSGlobalData arguments from PassWeak<T> and Weak<T> allocation. * bindings/js/JSDOMBinding.cpp: (WebCore::jsStringSlowCase): * bindings/js/JSEventListener.h: (WebCore::JSEventListener::setWrapper): * bindings/js/JSNodeFilterCondition.cpp: (WebCore::JSNodeFilterCondition::JSNodeFilterCondition): * bindings/js/ScriptWrappable.h: (WebCore::ScriptWrappable::setWrapper): * bridge/jsc/BridgeJSC.cpp: (JSC::Bindings::Instance::createRuntimeObject): * bridge/qt/qt_runtime.cpp: (JSC::Bindings::QtRuntimeMethod::finishCreation): * bridge/runtime_root.cpp: (JSC::Bindings::RootObject::addRuntimeObject): ../WebKit2: Mechanically removed JSGlobalData arguments from PassWeak<T> and Weak<T> allocation. * WebProcess/Plugins/Netscape/NPRuntimeObjectMap.cpp: (WebKit::NPRuntimeObjectMap::getOrCreateJSObject): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@115545 268f45cc-cd09-0410-ab3c-d52691b4dbfc
ab71e979