Add static version of JSCell::getConstructData
https://bugs.webkit.org/show_bug.cgi?id=69673
Reviewed by Geoffrey Garen.
Source/JavaScriptCore:
Added static version of getConstructData to all classes that
override it and changed the virtual versions to call the static
versions. This is the first step in de-virtualizing JSCell::getConstructData.
- API/JSCallbackConstructor.cpp:
(JSC::JSCallbackConstructor::getConstructData):
- API/JSCallbackConstructor.h:
- API/JSCallbackObject.h:
- API/JSCallbackObjectFunctions.h:
(JSC::::getConstructData):
- runtime/ArrayConstructor.cpp:
(JSC::ArrayConstructor::getConstructData):
- runtime/ArrayConstructor.h:
- runtime/BooleanConstructor.cpp:
(JSC::BooleanConstructor::getConstructData):
- runtime/BooleanConstructor.h:
- runtime/DateConstructor.cpp:
(JSC::DateConstructor::getConstructData):
- runtime/DateConstructor.h:
- runtime/ErrorConstructor.cpp:
(JSC::ErrorConstructor::getConstructData):
- runtime/ErrorConstructor.h:
- runtime/FunctionConstructor.cpp:
(JSC::FunctionConstructor::getConstructData):
- runtime/FunctionConstructor.h:
- runtime/JSCell.cpp:
(JSC::JSCell::getConstructData):
- runtime/JSCell.h:
- runtime/JSFunction.cpp:
(JSC::JSFunction::getConstructData):
- runtime/JSFunction.h:
- runtime/NativeErrorConstructor.cpp:
(JSC::NativeErrorConstructor::getConstructData):
- runtime/NativeErrorConstructor.h:
- runtime/NumberConstructor.cpp:
(JSC::NumberConstructor::getConstructData):
- runtime/NumberConstructor.h:
- runtime/ObjectConstructor.cpp:
(JSC::ObjectConstructor::getConstructData):
- runtime/ObjectConstructor.h:
- runtime/RegExpConstructor.cpp:
(JSC::RegExpConstructor::getConstructData):
- runtime/RegExpConstructor.h:
- runtime/StringConstructor.cpp:
(JSC::StringConstructor::getConstructData):
- runtime/StringConstructor.h:
Source/WebCore:
No new tests.
Added static version of getConstructData to all classes that
override it and changed the virtual versions to call the static
versions. This is the first step in de-virtualizing JSCell::getConstructData.
- bindings/js/JSAudioConstructor.cpp:
(WebCore::JSAudioConstructor::getConstructData):
- bindings/js/JSAudioConstructor.h:
- bindings/js/JSImageConstructor.cpp:
(WebCore::JSImageConstructor::getConstructData):
- bindings/js/JSImageConstructor.h:
- bindings/js/JSOptionConstructor.cpp:
(WebCore::JSOptionConstructor::getConstructData):
- bindings/js/JSOptionConstructor.h:
- bindings/scripts/CodeGeneratorJS.pm:
(GenerateConstructorDeclaration):
(GenerateConstructorDefinition):
- bindings/scripts/test/JS/JSTestInterface.cpp:
(WebCore::JSTestInterfaceConstructor::getConstructData):
- bridge/runtime_object.cpp:
(JSC::Bindings::RuntimeObject::getConstructData):
Source/WebKit2:
Added static version of getConstructData to all classes that
override it and changed the virtual versions to call the static
versions. This is the first step in de-virtualizing JSCell::getConstructData.
- WebProcess/Plugins/Netscape/JSNPObject.cpp:
(WebKit::JSNPObject::getConstructData):
- WebProcess/Plugins/Netscape/JSNPObject.h: