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/dfg/DFGOperations.cpp

    r163517 r163755  
    279279EncodedJSValue JIT_OPERATION operationGetByVal(ExecState* exec, EncodedJSValue encodedBase, EncodedJSValue encodedProperty)
    280280{
    281     VM* vm = &exec->vm();
    282     NativeCallFrameTracer tracer(vm, exec);
     281    VM& vm = exec->vm();
     282    NativeCallFrameTracer tracer(&vm, exec);
    283283   
    284284    JSValue baseValue = JSValue::decode(encodedBase);
     
    296296                return getByVal(exec, base, propertyAsUInt32);
    297297        } else if (property.isString()) {
    298             if (JSValue result = base->fastGetOwnProperty(exec, asString(property)->value(exec)))
     298            if (JSValue result = base->fastGetOwnProperty(vm, asString(property)->value(exec)))
    299299                return JSValue::encode(result);
    300300        }
     
    310310EncodedJSValue JIT_OPERATION operationGetByValCell(ExecState* exec, JSCell* base, EncodedJSValue encodedProperty)
    311311{
    312     VM* vm = &exec->vm();
    313     NativeCallFrameTracer tracer(vm, exec);
     312    VM& vm = exec->vm();
     313    NativeCallFrameTracer tracer(&vm, exec);
    314314   
    315315    JSValue property = JSValue::decode(encodedProperty);
     
    323323            return getByVal(exec, base, propertyAsUInt32);
    324324    } else if (property.isString()) {
    325         if (JSValue result = base->fastGetOwnProperty(exec, asString(property)->value(exec)))
     325        if (JSValue result = base->fastGetOwnProperty(vm, asString(property)->value(exec)))
    326326            return JSValue::encode(result);
    327327    }
Note: See TracChangeset for help on using the changeset viewer.