Ignore:
Timestamp:
Sep 21, 2009, 12:37:13 AM (16 years ago)
Author:
[email protected]
Message:

Fix stack alignment with ARM THUMB2 JIT.
https://bugs.webkit.org/show_bug.cgi?id=29526

Patch by Gavin Barraclough <[email protected]> on 2009-09-19
Reviewed by Sam 'Cabin Boy' Weinig.

Stack is currently being decremented by 0x3c, bump this to 0x40 to make this a
multiple of 16 bytes.

  • jit/JITStubs.cpp:

(JSC::JITThunks::JITThunks):

  • jit/JITStubs.h:
File:
1 edited

Legend:

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

    r48573 r48574  
    472472".thumb_func " THUMB_FUNC_PARAM(ctiTrampoline) "\n"
    473473SYMBOL_STRING(ctiTrampoline) ":" "\n"
    474     "sub sp, sp, #0x3c" "\n"
     474    "sub sp, sp, #0x40" "\n"
    475475    "str lr, [sp, #0x20]" "\n"
    476476    "str r4, [sp, #0x24]" "\n"
     
    487487    "ldr r4, [sp, #0x24]" "\n"
    488488    "ldr lr, [sp, #0x20]" "\n"
    489     "add sp, sp, #0x3c" "\n"
     489    "add sp, sp, #0x40" "\n"
    490490    "bx lr" "\n"
    491491);
     
    504504    "ldr r4, [sp, #0x24]" "\n"
    505505    "ldr lr, [sp, #0x20]" "\n"
    506     "add sp, sp, #0x3c" "\n"
     506    "add sp, sp, #0x40" "\n"
    507507    "bx lr" "\n"
    508508);
     
    656656    ASSERT(OBJECT_OFFSETOF(struct JITStackFrame, exception) == 0x38);
    657657    // The fifth argument is the first item already on the stack.
    658     ASSERT(OBJECT_OFFSETOF(struct JITStackFrame, enabledProfilerReference) == 0x3c);
     658    ASSERT(OBJECT_OFFSETOF(struct JITStackFrame, enabledProfilerReference) == 0x40);
    659659
    660660    ASSERT(OBJECT_OFFSETOF(struct JITStackFrame, thunkReturnAddress) == 0x1C);
Note: See TracChangeset for help on using the changeset viewer.