Changeset 225788 in webkit


Ignore:
Timestamp:
Dec 12, 2017 10:40:29 AM (6 years ago)
Author:
guijemont@igalia.com
Message:

LLInt: reserve 16 bytes of stack on MIPS for native calls
https://bugs.webkit.org/show_bug.cgi?id=180653

Reviewed by Carlos Alberto Lopez Perez.

  • llint/LowLevelInterpreter32_64.asm:

On MIPS, substract 24 from the stack pointer (16 for calling
convention + 8 to be 16-aligned) instead of the 8 on other platforms
(for alignment).

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r225778 r225788  
     12017-12-12  Guillaume Emont  <guijemont@igalia.com>
     2
     3        LLInt: reserve 16 bytes of stack on MIPS for native calls
     4        https://bugs.webkit.org/show_bug.cgi?id=180653
     5
     6        Reviewed by Carlos Alberto Lopez Perez.
     7
     8        * llint/LowLevelInterpreter32_64.asm:
     9        On MIPS, substract 24 from the stack pointer (16 for calling
     10        convention + 8 to be 16-aligned) instead of the 8 on other platforms
     11        (for alignment).
     12
    1132017-12-12  Yusuke Suzuki  <utatane.tea@gmail.com>
    214
  • trunk/Source/JavaScriptCore/llint/LowLevelInterpreter32_64.asm

    r224487 r225788  
    20832083        addp 8, sp
    20842084    elsif ARM or ARMv7 or ARMv7_TRADITIONAL or C_LOOP or MIPS
    2085         subp 8, sp # align stack pointer
     2085        if MIPS
     2086        # calling convention says to save stack space for 4 first registers in
     2087        # all cases. To match our 16-byte alignment, that means we need to
     2088        # take 24 bytes
     2089            subp 24, sp
     2090        else
     2091            subp 8, sp # align stack pointer
     2092        end
    20862093        # t1 already contains the Callee.
    20872094        andp MarkedBlockMask, t1
     
    21002107        andp MarkedBlockMask, t3
    21012108        loadp MarkedBlock::m_vm[t3], t3
    2102         addp 8, sp
     2109        if MIPS
     2110            addp 24, sp
     2111        else
     2112            addp 8, sp
     2113        end
    21032114    else
    21042115        error
Note: See TracChangeset for help on using the changeset viewer.