inline StringObject* StringObject::create(VM& vm, JSGlobalObject* globalObject, JSString* string) { StringObject* object = new (NotNull, allocateCell<StringObject>(vm.heap)) StringObject(vm, globalObject->stringObjectStructure()); object->finishCreation(vm, string); return object; }
inline StringObject* StringObject::create(ExecState* exec, JSGlobalObject* globalObject, JSString* string) { StringObject* object = new (NotNull, allocateCell<StringObject>(*exec->heap())) StringObject(exec->globalData(), globalObject->stringObjectStructure()); object->finishCreation(exec->globalData(), string); return object; }