Ignore:
Timestamp:
Sep 29, 2013, 3:20:26 PM (12 years ago)
Author:
[email protected]
Message:

Pass VM instead of ExecState to simple builtin constructors.
<https://webkit.org/b/122077>

Reviewed by Sam Weinig.

None of the simple builtins need the ExecState for anything during
their construction, so reduce the amount of loads by just passing
the VM around instead.

File:
1 edited

Legend:

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

    r156602 r156620  
    22022202}
    22032203
    2204 void JSObject::putDirectNativeFunction(ExecState* exec, JSGlobalObject* globalObject, const PropertyName& propertyName, unsigned functionLength, NativeFunction nativeFunction, Intrinsic intrinsic, unsigned attributes)
     2204void JSObject::putDirectNativeFunction(VM& vm, JSGlobalObject* globalObject, const PropertyName& propertyName, unsigned functionLength, NativeFunction nativeFunction, Intrinsic intrinsic, unsigned attributes)
    22052205{
    22062206    StringImpl* name = propertyName.publicName();
    22072207    ASSERT(name);
    22082208
    2209     VM& vm = exec->vm();
    22102209    JSFunction* function = JSFunction::create(vm, globalObject, functionLength, name, nativeFunction, intrinsic);
    22112210    putDirect(vm, propertyName, function, attributes);
Note: See TracChangeset for help on using the changeset viewer.