Skip to content
  • commit-queue@webkit.org's avatar
    Remove operator new from JSCell · ccbd2ba3
    commit-queue@webkit.org authored
    https://bugs.webkit.org/show_bug.cgi?id=64999
    
    Patch by Mark Hahnenberg <mhahnenberg@apple.com> on 2011-07-27
    Reviewed by Oliver Hunt.
    
    Source/JavaScriptCore:
    
    Removed the implementation of operator new in JSCell, so any further uses
    will not successfully link.  Also removed any remaining uses of operator new.
    
    * API/JSContextRef.cpp:
    * debugger/DebuggerActivation.h:
    (JSC::DebuggerActivation::create):
    * interpreter/Interpreter.cpp:
    (JSC::Interpreter::execute):
    (JSC::Interpreter::createExceptionScope):
    (JSC::Interpreter::privateExecute):
    * jit/JITStubs.cpp:
    (JSC::DEFINE_STUB_FUNCTION):
    * runtime/JSCell.h:
    * runtime/JSGlobalObject.h:
    (JSC::JSGlobalObject::create):
    * runtime/JSStaticScopeObject.h:
    (JSC::JSStaticScopeObject::create):
    (JSC::JSStaticScopeObject::JSStaticScopeObject):
    * runtime/StrictEvalActivation.h:
    (JSC::StrictEvalActivation::create):
    
    Source/JavaScriptGlue:
    
    Removed the implementation of operator new in JSCell, so any further uses
    will not successfully link.  Also removed any remaining uses of operator new.
    
    * JSRun.cpp:
    (JSRun::JSRun):
    * JSRun.h:
    (JSGlueGlobalObject::create):
    * JSUtils.cpp:
    (JSObjectKJSValue):
    (getThreadGlobalObject):
    * UserObjectImp.h:
    (UserObjectImp::create):
    
    Source/WebCore:
    
    No new tests.
    
    Removed the implementation of operator new in JSCell, so any further uses
    will not successfully link.  Also removed any remaining uses of operator new.
    
    * bridge/c/CRuntimeObject.h:
    (JSC::Bindings::CRuntimeObject::create):
    * bridge/c/c_instance.cpp:
    (JSC::Bindings::CInstance::newRuntimeObject):
    (JSC::Bindings::CRuntimeMethod::create):
    (JSC::Bindings::CRuntimeMethod::CRuntimeMethod):
    (JSC::Bindings::CInstance::getMethod):
    * bridge/jni/jsc/JavaInstanceJSC.cpp:
    (JavaInstance::newRuntimeObject):
    (JavaRuntimeMethod::create):
    (JavaRuntimeMethod::JavaRuntimeMethod):
    (JavaInstance::getMethod):
    * bridge/jni/jsc/JavaRuntimeObject.h:
    (JSC::Bindings::JavaRuntimeObject::create):
    * bridge/objc/ObjCRuntimeObject.h:
    (JSC::Bindings::ObjCRuntimeObject::create):
    * bridge/objc/objc_class.mm:
    (JSC::Bindings::ObjcClass::fallbackObject):
    * bridge/objc/objc_instance.mm:
    (ObjcInstance::newRuntimeObject):
    (ObjCRuntimeMethod::create):
    (ObjCRuntimeMethod::ObjCRuntimeMethod):
    (ObjcInstance::getMethod):
    * bridge/objc/objc_runtime.h:
    (JSC::Bindings::ObjcFallbackObjectImp::create):
    
    Source/WebKit/mac:
    
    Removed the implementation of operator new in JSCell, so any further uses
    will not successfully link.  Also removed any remaining uses of operator new.
    
    * Plugins/Hosted/ProxyInstance.mm:
    (WebKit::ProxyInstance::newRuntimeObject):
    (WebKit::ProxyRuntimeMethod::create):
    (WebKit::ProxyRuntimeMethod::ProxyRuntimeMethod):
    (WebKit::ProxyInstance::getMethod):
    * Plugins/Hosted/ProxyRuntimeObject.h:
    (WebKit::ProxyRuntimeObject::create):
    * WebView/WebScriptDebugDelegate.mm:
    (-[WebScriptCallFrame scopeChain]):
    
    Source/WebKit2:
    
    Removed the implementation of operator new in JSCell, so any further uses
    will not successfully link.  Also removed any remaining uses of operator new.
    
    * WebProcess/Plugins/Netscape/JSNPMethod.h:
    (WebKit::JSNPMethod::create):
    * WebProcess/Plugins/Netscape/JSNPObject.cpp:
    (WebKit::JSNPObject::methodGetter):
    * WebProcess/Plugins/Netscape/JSNPObject.h:
    (WebKit::JSNPObject::create):
    * WebProcess/Plugins/Netscape/NPRuntimeObjectMap.cpp:
    (WebKit::NPRuntimeObjectMap::getOrCreateJSObject):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@91903 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    ccbd2ba3