Skip to content
  • ggaren@apple.com's avatar
    Removed virtual destructor from JSGlobalObjectData to eliminate pointer · d4abf9cb
    ggaren@apple.com authored
    fix-ups when accessing JSGlobalObject::d.
            
    Patch by Geoffrey Garen <ggaren@apple.com> on 2009-09-28
    Reviewed by Sam Weinig.
    
    JavaScriptCore: 
    
    Replaced with an explicit destructor function pointer.
            
    6% speedup on bench-alloc-nonretained.js.
    
    * JavaScriptCore.exp:
    * runtime/JSGlobalObject.cpp:
    (JSC::JSGlobalObject::~JSGlobalObject):
    (JSC::JSGlobalObject::destroyJSGlobalObjectData):
    * runtime/JSGlobalObject.h:
    (JSC::JSGlobalObject::JSGlobalObjectData::JSGlobalObjectData):
    (JSC::JSGlobalObject::JSGlobalObject):
    
    JavaScriptGlue: 
    
    Replaced with an explicit destructor function pointer.
    
    * JSRun.cpp:
    (JSGlueGlobalObject::destroyData):
    * JSRun.h:
    (JSGlueGlobalObject::Data::Data):
    
    WebCore: 
    
    Replaced with an explicit destructor function pointer.
    
    * bindings/js/JSDOMGlobalObject.cpp:
    (WebCore::JSDOMGlobalObject::destroyJSDOMGlobalObjectData):
    * bindings/js/JSDOMGlobalObject.h:
    (WebCore::JSDOMGlobalObject::JSDOMGlobalObjectData::JSDOMGlobalObjectData):
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48883 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    d4abf9cb