Ignore:
Timestamp:
Feb 9, 2014, 1:33:17 PM (12 years ago)
Author:
[email protected]
Message:

Pass VM instead of ExecState to JSCell::fastGetOwnProperty().
<https://webkit.org/b/128497>

Knocks off a couple of instructions.

Reviewed by Anders Carlsson.

  • dfg/DFGOperations.cpp:
  • jit/JITOperations.cpp:

(JSC::getByVal):

  • llint/LLIntSlowPaths.cpp:

(JSC::LLInt::getByVal):

  • runtime/JSCell.h:
  • runtime/JSCellInlines.h:

(JSC::JSCell::fastGetOwnProperty):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/runtime/JSCellInlines.h

    r163225 r163755  
    172172// performing the property map lookup without forming an identifier. We detect this
    173173// case by checking whether the hash has yet been set for this string.
    174 ALWAYS_INLINE JSValue JSCell::fastGetOwnProperty(ExecState* exec, const String& name)
     174ALWAYS_INLINE JSValue JSCell::fastGetOwnProperty(VM& vm, const String& name)
    175175{
    176176    if (!structure()->typeInfo().overridesGetOwnPropertySlot() && !structure()->hasGetterSetterProperties()) {
    177177        PropertyOffset offset = name.impl()->hasHash()
    178             ? structure()->get(exec->vm(), Identifier(exec, name))
    179             : structure()->get(exec->vm(), name);
     178            ? structure()->get(vm, Identifier(&vm, name))
     179            : structure()->get(vm, name);
    180180        if (offset != invalidOffset)
    181181            return asObject(this)->locationForOffset(offset)->get();
Note: See TracChangeset for help on using the changeset viewer.