Changeset 46621 in webkit for trunk/JavaScriptCore/jit/JIT.h


Ignore:
Timestamp:
Jul 30, 2009, 10:38:26 PM (16 years ago)
Author:
[email protected]
Message:

2009-07-30 John McCall <[email protected]>

Reviewed by Gavin Barraclough.

Optimize the X86_64 trampolines: avoid the need for filler arguments
and move the stub-args area closer to the stack pointer.

  • jit/JIT.h: adjust patch offsets because of slight code-size change
  • jit/JITCode.h: (JSC::JITCode::execute): don't pass filler args
  • jit/JITStubs.cpp: (ctiTrampoline): (X86_64): push args onto stack, use args directly (ctiVMThrowTrampoline): (X86_64): adjust %rsp by correct displacement (ctiOpThrowNotCaught): (X86_64): adjust %rsp by correct displacement
  • jit/JITStubs.h: (JITStackFrame): (X86_64): move args area earlier (ctiTrampoline): remove filler args from prototype
File:
1 edited

Legend:

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

    r46620 r46621  
    512512        static const int patchOffsetGetByIdPutResult = 31;
    513513#if ENABLE(OPCODE_SAMPLING)
    514         static const int patchOffsetGetByIdSlowCaseCall = 66;
    515 #else
    516         static const int patchOffsetGetByIdSlowCaseCall = 44;
     514        static const int patchOffsetGetByIdSlowCaseCall = 63;
     515#else
     516        static const int patchOffsetGetByIdSlowCaseCall = 41;
    517517#endif
    518518        static const int patchOffsetOpCallCompareToJump = 9;
Note: See TracChangeset for help on using the changeset viewer.