Skip to content
  • weinig@apple.com's avatar
    Pass a JSC::VM& to JS bindings object creation functions, rather than a JSC::ExecState* · d721a972
    weinig@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=121934
    
    Reviewed by Geoffrey Garen.
    
    ../WebCore: 
    
    Reduce unnecessary loads by passing the JSC::VM to object creation/access functions
    that don't need the ExecState.
    
    * WebCore.exp.in:
    * bindings/js/JSDOMBinding.h:
    (WebCore::getDOMStructure):
    (WebCore::deprecatedGetDOMStructure):
    (WebCore::getDOMPrototype):
    (WebCore::setInlineCachedWrapper):
    (WebCore::createWrapper):
    * bindings/js/JSDOMGlobalObject.h:
    (WebCore::getDOMConstructor):
    * bindings/js/JSDOMWindowCustom.cpp:
    (WebCore::JSDOMWindow::image):
    * bindings/js/JSDocumentCustom.cpp:
    (WebCore::JSDocument::location):
    * bindings/js/JSImageConstructor.cpp:
    (WebCore::JSImageConstructor::finishCreation):
    * bindings/js/JSImageConstructor.h:
    (WebCore::JSImageConstructor::create):
    * bindings/js/ScriptWrappable.h:
    * bindings/js/ScriptWrappableInlines.h:
    (WebCore::ScriptWrappable::setWrapper):
    * bindings/scripts/CodeGeneratorJS.pm:
    (GenerateHeader):
    (GenerateImplementation):
    (GenerateConstructorDeclaration):
    (GenerateConstructorHelperMethods):
    * bridge/c/CRuntimeObject.cpp:
    (JSC::Bindings::CRuntimeObject::CRuntimeObject):
    (JSC::Bindings::CRuntimeObject::finishCreation):
    * bridge/c/CRuntimeObject.h:
    (JSC::Bindings::CRuntimeObject::create):
    * bridge/c/c_instance.cpp:
    (JSC::Bindings::CInstance::newRuntimeObject):
    * bridge/jsc/BridgeJSC.cpp:
    (JSC::Bindings::Instance::newRuntimeObject):
    * bridge/objc/ObjCRuntimeObject.h:
    (JSC::Bindings::ObjCRuntimeObject::create):
    * bridge/objc/ObjCRuntimeObject.mm:
    (JSC::Bindings::ObjCRuntimeObject::ObjCRuntimeObject):
    (JSC::Bindings::ObjCRuntimeObject::finishCreation):
    * bridge/objc/objc_instance.mm:
    (ObjcInstance::newRuntimeObject):
    * bridge/objc/objc_runtime.h:
    (JSC::Bindings::ObjcFallbackObjectImp::createPrototype):
    * bridge/runtime_array.h:
    (JSC::RuntimeArray::createPrototype):
    * bridge/runtime_method.h:
    (JSC::RuntimeMethod::createPrototype):
    * bridge/runtime_object.cpp:
    (JSC::Bindings::RuntimeObject::RuntimeObject):
    (JSC::Bindings::RuntimeObject::finishCreation):
    * bridge/runtime_object.h:
    (JSC::Bindings::RuntimeObject::create):
    (JSC::Bindings::RuntimeObject::createPrototype):
    
    ../WebKit/mac: 
    
    * Plugins/Hosted/ProxyInstance.mm:
    (WebKit::ProxyInstance::newRuntimeObject):
    * Plugins/Hosted/ProxyRuntimeObject.h:
    (WebKit::ProxyRuntimeObject::create):
    * Plugins/Hosted/ProxyRuntimeObject.mm:
    (WebKit::ProxyRuntimeObject::ProxyRuntimeObject):
    (WebKit::ProxyRuntimeObject::finishCreation):
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156485 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    d721a972