Skip to content
  • mhahnenberg@apple.com's avatar
    De-virtualize JSObject::putWithAttributes · 14468028
    mhahnenberg@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=71716
    
    Reviewed by Darin Adler.
    
    Source/JavaScriptCore:
    
    Added putWithAttributes to the MethodTable, changed all the virtual
    implementations of putWithAttributes to static ones, and replaced
    all call sites with corresponding lookups in the MethodTable.
    
    * API/JSObjectRef.cpp:
    (JSObjectSetProperty):
    * JavaScriptCore.exp:
    * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def:
    * debugger/DebuggerActivation.cpp:
    (JSC::DebuggerActivation::putWithAttributes):
    * debugger/DebuggerActivation.h:
    * interpreter/Interpreter.cpp:
    (JSC::Interpreter::execute):
    * runtime/ClassInfo.h:
    * runtime/JSActivation.cpp:
    (JSC::JSActivation::putWithAttributes):
    * runtime/JSActivation.h:
    * runtime/JSCell.cpp:
    (JSC::JSCell::putWithAttributes):
    * runtime/JSCell.h:
    * runtime/JSGlobalObject.cpp:
    (JSC::JSGlobalObject::putWithAttributes):
    * runtime/JSGlobalObject.h:
    * runtime/JSObject.cpp:
    (JSC::JSObject::putWithAttributes):
    (JSC::putDescriptor):
    * runtime/JSObject.h:
    * runtime/JSStaticScopeObject.cpp:
    (JSC::JSStaticScopeObject::putWithAttributes):
    * runtime/JSStaticScopeObject.h:
    * runtime/JSVariableObject.cpp:
    (JSC::JSVariableObject::putWithAttributes):
    * runtime/JSVariableObject.h:
    
    Source/WebCore:
    
    No new tests.
    
    Added putWithAttributes to the MethodTable, changed all the virtual
    implementations of putWithAttributes to static ones, and replaced
    all call sites with corresponding lookups in the MethodTable.
    
    * bindings/js/JSDOMWindowShell.cpp:
    (WebCore::JSDOMWindowShell::putWithAttributes):
    * bindings/js/JSDOMWindowShell.h:
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99497 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    14468028