De-virtualize JSObject::className
https://bugs.webkit.org/show_bug.cgi?id=71428
Reviewed by Sam Weinig.
Source/JavaScriptCore:
Added className to the MethodTable, changed all the virtual
implementations of className to static ones, and replaced
all call sites with corresponding lookups in the MethodTable.
- API/JSCallbackObject.h:
- API/JSCallbackObjectFunctions.h:
(JSC::::className):
(JSC::DebuggerActivation::className):
- debugger/DebuggerActivation.h:
- jsc.cpp:
(GlobalObject::createStructure):
(JSC::Profiler::createCallIdentifier):
- runtime/ClassInfo.h:
- runtime/JSCell.cpp:
(JSC::JSCell::className):
- runtime/JSCell.h:
- runtime/JSObject.cpp:
(JSC::JSObject::className):
- runtime/JSObject.h:
- runtime/ObjectPrototype.cpp:
(JSC::objectProtoFuncToString):
(GlobalObject::createStructure):
Source/JavaScriptGlue:
Added className to the MethodTable, changed all the virtual
implementations of className to static ones, and replaced
all call sites with corresponding lookups in the MethodTable.
(KJSValueToCFTypeInternal):
Source/WebCore:
No new tests.
Added className to the MethodTable, changed all the virtual
implementations of className to static ones, and replaced
all call sites with corresponding lookups in the MethodTable.
- bindings/js/JSDOMWindowShell.cpp:
(WebCore::JSDOMWindowShell::className):
- bindings/js/JSDOMWindowShell.h:
- bindings/js/JSInjectedScriptHostCustom.cpp:
(WebCore::JSInjectedScriptHost::internalConstructorName):
- bridge/testqtbindings.cpp:
(Global::className):
Source/WebKit/efl:
Added className to the MethodTable, changed all the virtual
implementations of className to static ones, and replaced
all call sites with corresponding lookups in the MethodTable.
(ewk_js_npobject_to_object):