Ignore:
Timestamp:
Oct 6, 2013, 11:16:48 AM (12 years ago)
Author:
[email protected]
Message:

Pass VM instead of ExecState to StringObject constructor.
<https://webkit.org/b/122395>

Reviewed by Sam Weinig.

StringObject() only uses the ExecState to find the VM.

File:
1 edited

Legend:

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

    r156964 r156998  
    156156}
    157157
    158 StringObject* constructString(ExecState* exec, JSGlobalObject* globalObject, JSValue string)
     158StringObject* constructString(VM& vm, JSGlobalObject* globalObject, JSValue string)
    159159{
    160     StringObject* object = StringObject::create(exec, globalObject->stringObjectStructure());
    161     object->setInternalValue(exec->vm(), string);
     160    StringObject* object = StringObject::create(vm, globalObject->stringObjectStructure());
     161    object->setInternalValue(vm, string);
    162162    return object;
    163163}
Note: See TracChangeset for help on using the changeset viewer.