Skip to content
  • mhahnenberg@apple.com's avatar
    De-virtualize JSObject::hasInstance · c583a808
    mhahnenberg@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=71430
    
    Reviewed by Darin Adler.
    
    Added hasInstance to the MethodTable, changed all the virtual
    implementations of hasInstance to static ones, and replaced
    all call sites with corresponding lookups in the MethodTable.
    
    * API/JSCallbackObject.h:
    * API/JSCallbackObjectFunctions.h:
    (JSC::::hasInstance):
    * API/JSValueRef.cpp:
    (JSValueIsInstanceOfConstructor):
    * JavaScriptCore.exp:
    * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def:
    * interpreter/Interpreter.cpp:
    (JSC::Interpreter::privateExecute):
    * jit/JITStubs.cpp:
    (JSC::DEFINE_STUB_FUNCTION):
    * runtime/ClassInfo.h:
    * runtime/JSBoundFunction.cpp:
    (JSC::JSBoundFunction::hasInstance):
    * runtime/JSBoundFunction.h:
    * runtime/JSCell.cpp:
    (JSC::JSCell::hasInstance):
    * runtime/JSCell.h:
    * runtime/JSObject.cpp:
    (JSC::JSObject::hasInstance):
    * runtime/JSObject.h:
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99238 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    c583a808