Skip to content
  • mhahnenberg@apple.com's avatar
    De-virtualize JSObject::defineSetter · 84223e7c
    mhahnenberg@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=71303
    
    Reviewed by Darin Adler.
    
    Source/JavaScriptCore:
    
    Added defineSetter to the MethodTable, changed all the virtual
    implementations of defineSetter to static ones, and replaced
    all call sites with corresponding lookups in the MethodTable.
    
    * JavaScriptCore.exp:
    * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def:
    * debugger/DebuggerActivation.cpp:
    (JSC::DebuggerActivation::defineSetter):
    * debugger/DebuggerActivation.h:
    * interpreter/Interpreter.cpp:
    (JSC::Interpreter::privateExecute):
    * jit/JITStubs.cpp:
    (JSC::DEFINE_STUB_FUNCTION):
    * runtime/ClassInfo.h:
    * runtime/JSCell.cpp:
    (JSC::JSCell::defineSetter):
    * runtime/JSCell.h:
    * runtime/JSGlobalObject.cpp:
    (JSC::JSGlobalObject::defineSetter):
    * runtime/JSGlobalObject.h:
    * runtime/JSObject.cpp:
    (JSC::JSObject::defineSetter):
    (JSC::putDescriptor):
    * runtime/JSObject.h:
    * runtime/ObjectPrototype.cpp:
    (JSC::objectProtoFuncDefineSetter):
    
    Source/WebCore:
    
    No new tests.
    
    Added defineSetter to the MethodTable, changed all the virtual
    implementations of defineSetter to static ones, and replaced
    all call sites with corresponding lookups in the MethodTable.
    
    * bindings/js/JSDOMWindowCustom.cpp:
    (WebCore::JSDOMWindow::defineSetter):
    * bindings/js/JSDOMWindowShell.cpp:
    (WebCore::JSDOMWindowShell::defineSetter):
    * bindings/js/JSDOMWindowShell.h:
    * bindings/scripts/CodeGeneratorJS.pm:
    (GenerateHeader):
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99018 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    84223e7c