Ignore:
Timestamp:
Oct 17, 2013, 4:35:47 PM (12 years ago)
Author:
[email protected]
Message:

Pass VM instead of JSGlobalObject to JSONObject constructor.
<https://webkit.org/b/122999>

JSONObject was only use the JSGlobalObject to grab at the VM.
Dodge a few loads by passing the VM directly instead.

Reviewed by Geoffrey Garen.

  • runtime/JSONObject.cpp:

(JSC::JSONObject::JSONObject):
(JSC::JSONObject::finishCreation):

  • runtime/JSONObject.h:

(JSC::JSONObject::create):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/runtime/JSONObject.cpp

    r156785 r157614  
    5555namespace JSC {
    5656
    57 JSONObject::JSONObject(JSGlobalObject* globalObject, Structure* structure)
    58     : JSNonFinalObject(globalObject->vm(), structure)
    59 {
    60 }
    61 
    62 void JSONObject::finishCreation(JSGlobalObject* globalObject)
    63 {
    64     Base::finishCreation(globalObject->vm());
     57JSONObject::JSONObject(VM& vm, Structure* structure)
     58    : JSNonFinalObject(vm, structure)
     59{
     60}
     61
     62void JSONObject::finishCreation(VM& vm)
     63{
     64    Base::finishCreation(vm);
    6565    ASSERT(inherits(info()));
    6666}
Note: See TracChangeset for help on using the changeset viewer.