Remove JSObjectWithGlobalObject
https://bugs.webkit.org/show_bug.cgi?id=67689
Reviewed by Geoff Garen.
../../../../Volumes/Data/git/WebKit/OpenSource/Source/JavaScriptCore:
Remove JSObjectWithGlobalObject, and update code to stop using anonymous
storage to access the global object that a JSObject comes from. Largely
mechanical change to remove the use of anonymous storage and JSObjectWithGlobalObject.
- API/JSCallbackConstructor.cpp:
(JSC::JSCallbackConstructor::JSCallbackConstructor):
(JSC::JSCallbackConstructor::finishCreation):
- API/JSCallbackConstructor.h:
- API/JSCallbackObject.cpp:
- API/JSCallbackObject.h:
(JSC::JSCallbackObject::create):
- API/JSCallbackObjectFunctions.h:
(JSC::::JSCallbackObject):
(JSC::::finishCreation):
(JSC::::staticFunctionGetter):
(OpaqueJSClass::prototype):
(JSObjectMake):
(JSObjectGetPrivate):
(JSObjectSetPrivate):
(JSObjectGetPrivateProperty):
(JSObjectSetPrivateProperty):
(JSObjectDeletePrivateProperty):
(JSValueIsObjectOfClass):
(JSC::DFG::dfgRepatchGetMethodFast):
(JSC::DFG::tryCacheGetMethod):
- jit/JIT.h:
- jit/JITInlineMethods.h:
(JSC::JIT::emitAllocateJSFunction):
- jit/JITPropertyAccess.cpp:
(JSC::JIT::patchMethodCallProto):
(JSC::DEFINE_STUB_FUNCTION):
- runtime/DatePrototype.cpp:
- runtime/InternalFunction.cpp:
(JSC::InternalFunction::InternalFunction):
(JSC::InternalFunction::finishCreation):
- runtime/InternalFunction.h:
- runtime/JSFunction.cpp:
(JSC::JSFunction::JSFunction):
(JSC::JSFunction::finishCreation):
(JSC::JSFunction::create):
(JSC::JSFunction::createStructure):
- runtime/JSGlobalObject.cpp:
(JSC::JSGlobalObject::reset):
(JSC::JSONObject::JSONObject):
(JSC::JSONObject::finishCreation):
- runtime/JSONObject.h:
- runtime/JSObject.h:
(JSC::JSObject::globalObject):
- runtime/JSObjectWithGlobalObject.cpp: Removed.
- runtime/JSObjectWithGlobalObject.h: Removed.
- runtime/JSValue.cpp:
(JSC::JSValue::isValidCallee):
(JSC::setUpStaticFunctionSlot):
- runtime/Lookup.h:
- runtime/MathObject.cpp:
(JSC::MathObject::MathObject):
(JSC::MathObject::finishCreation):
- runtime/MathObject.h:
- runtime/NumberPrototype.cpp:
- runtime/RegExpObject.cpp:
(JSC::RegExpObject::RegExpObject):
(JSC::RegExpObject::finishCreation):
- runtime/RegExpObject.h:
- runtime/Structure.cpp:
(JSC::Structure::Structure):
(JSC::Structure::create):
(JSC::Structure::globalObject):
../../../../Volumes/Data/git/WebKit/OpenSource/Source/WebCore:
Remove use of anonymous storage and JSObjectWithGlobalObject for
accessing a JSObject's global object now that they're available
on the object's structure.
- bindings/js/JSDOMWindowShell.cpp:
(WebCore::JSDOMWindowShell::setWindow):
- bindings/js/JSDOMWrapper.h:
(WebCore::JSDOMWrapper::globalObject):
(WebCore::JSDOMWrapper::JSDOMWrapper):
- bindings/js/WorkerScriptController.cpp:
(WebCore::WorkerScriptController::initScript):
- bindings/scripts/CodeGeneratorJS.pm:
(GenerateHeader):
(GenerateImplementation):
- bridge/objc/objc_runtime.h:
- bridge/objc/objc_runtime.mm:
(JSC::Bindings::ObjcFallbackObjectImp::ObjcFallbackObjectImp):
(JSC::Bindings::ObjcFallbackObjectImp::finishCreation):
- bridge/runtime_object.cpp:
(JSC::Bindings::RuntimeObject::RuntimeObject):
(JSC::Bindings::RuntimeObject::finishCreation):
../../../../Volumes/Data/git/WebKit/OpenSource/Source/WebKit2:
Remove JSObjectWithGlobalObject usage.
- WebProcess/Plugins/Netscape/JSNPObject.cpp:
(WebKit::JSNPObject::JSNPObject):
(WebKit::JSNPObject::finishCreation):
- WebProcess/Plugins/Netscape/JSNPObject.h: