Changeset 43352 in webkit for trunk/JavaScriptCore/jit/JIT.cpp


Ignore:
Timestamp:
May 7, 2009, 11:45:34 AM (16 years ago)
Author:
[email protected]
Message:

2009-05-07 Geoffrey Garen <[email protected]>

Reviewed by Gavin Barraclough.

Removed a few more special constants, and replaced them with uses of
the JITStackFrame struct.

Removed one of the two possible definitions of VoidPtrPair. The Mac
definition was more elegant, but SunSpider doesn't think it's any
faster, and it's net less elegant to have two ways of doing things.

  • jit/JIT.cpp: (JSC::JIT::privateCompileMainPass): (JSC::JIT::privateCompile):
  • jit/JITStubs.h: (JSC::):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/jit/JIT.cpp

    r43331 r43352  
    11031103        }
    11041104        case op_profile_will_call: {
    1105             emitGetCTIParam(STUB_ARGS_profilerReference, regT0);
     1105            emitGetCTIParam(FIELD_OFFSET(JITStackFrame, enabledProfilerReference) / sizeof (void*), regT0);
    11061106            Jump noProfiler = branchTestPtr(Zero, Address(regT0));
    11071107            emitPutJITStubArgFromVirtualRegister(currentInstruction[1].u.operand, 1, regT0);
     
    11121112        }
    11131113        case op_profile_did_call: {
    1114             emitGetCTIParam(STUB_ARGS_profilerReference, regT0);
     1114            emitGetCTIParam(FIELD_OFFSET(JITStackFrame, enabledProfilerReference) / sizeof (void*), regT0);
    11151115            Jump noProfiler = branchTestPtr(Zero, Address(regT0));
    11161116            emitPutJITStubArgFromVirtualRegister(currentInstruction[1].u.operand, 1, regT0);
     
    15241524        emitPutImmediateToCallFrameHeader(m_codeBlock, RegisterFile::CodeBlock);
    15251525
    1526         emitGetCTIParam(STUB_ARGS_registerFile, regT0);
     1526        emitGetCTIParam(FIELD_OFFSET(JITStackFrame, registerFile) / sizeof (void*), regT0);
    15271527        addPtr(Imm32(m_codeBlock->m_numCalleeRegisters * sizeof(Register)), callFrameRegister, regT1);
    15281528       
Note: See TracChangeset for help on using the changeset viewer.