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/DateInstance.cpp

    r156540 r156620  
    3535const ClassInfo DateInstance::s_info = {"Date", &JSWrapperObject::s_info, 0, 0, CREATE_METHOD_TABLE(DateInstance)};
    3636
    37 DateInstance::DateInstance(ExecState* exec, Structure* structure)
    38     : JSWrapperObject(exec->vm(), structure)
     37DateInstance::DateInstance(VM& vm, Structure* structure)
     38    : JSWrapperObject(vm, structure)
    3939{
    4040}
Note: See TracChangeset for help on using the changeset viewer.