Ignore:
Timestamp:
Sep 30, 2013, 2:41:04 PM (12 years ago)
Author:
[email protected]
Message:

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

Reviewed by Geoffrey Garen.

The MathObject constructor was only using the global object to get
to the VM. finishCreation() still uses it to set up functions.

File:
1 edited

Legend:

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

    r156620 r156679  
    22112211}
    22122212
    2213 void JSObject::putDirectNativeFunctionWithoutTransition(ExecState* exec, JSGlobalObject* globalObject, const PropertyName& propertyName, unsigned functionLength, NativeFunction nativeFunction, Intrinsic intrinsic, unsigned attributes)
     2213void JSObject::putDirectNativeFunctionWithoutTransition(VM& vm, JSGlobalObject* globalObject, const PropertyName& propertyName, unsigned functionLength, NativeFunction nativeFunction, Intrinsic intrinsic, unsigned attributes)
    22142214{
    22152215    StringImpl* name = propertyName.publicName();
    22162216    ASSERT(name);
    22172217
    2218     VM& vm = exec->vm();
    22192218    JSFunction* function = JSFunction::create(vm, globalObject, functionLength, name, nativeFunction, intrinsic);
    22202219    putDirectWithoutTransition(vm, propertyName, function, attributes);
Note: See TracChangeset for help on using the changeset viewer.