Ignore:
Timestamp:
Feb 9, 2011, 9:21:33 PM (14 years ago)
Author:
[email protected]
Message:

Bug 54164 - Optimize global_var accesses on JSVALUE64

Reviewed by Sam Weinig.

Directly embed the pointer to d->registers, optimize out the load
from the variable object, as we do already in JSVALUE32_64.

This is a ~1.5% win on sunspidey.

  • jit/JIT.cpp:
  • jit/JIT.h:
  • jit/JITOpcodes.cpp:

(JSC::JIT::emit_op_get_global_var):
(JSC::JIT::emit_op_put_global_var):
(JSC::JIT::emit_op_get_scoped_var):
(JSC::JIT::emit_op_put_scoped_var):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/jit/JIT.h

    r75408 r78174  
    506506        int32_t getConstantOperandImmediateInt(unsigned src);
    507507
    508         void emitGetVariableObjectRegister(RegisterID variableObject, int index, RegisterID dst);
    509         void emitPutVariableObjectRegister(RegisterID src, RegisterID variableObject, int index);
    510        
    511508        void killLastResultRegister();
    512509
Note: See TracChangeset for help on using the changeset viewer.