Changeset 229186 in webkit


Ignore:
Timestamp:
Mar 2, 2018 12:19:17 PM (6 years ago)
Author:
mark.lam@apple.com
Message:

Make the LLInt probe work for ARM64.
https://bugs.webkit.org/show_bug.cgi?id=183298
<rdar://problem/38077413>

Reviewed by Filip Pizlo.

  • llint/LowLevelInterpreter.asm:
Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r229180 r229186  
     12018-03-02  Mark Lam  <mark.lam@apple.com>
     2
     3        Make the LLInt probe work for ARM64.
     4        https://bugs.webkit.org/show_bug.cgi?id=183298
     5        <rdar://problem/38077413>
     6
     7        Reviewed by Filip Pizlo.
     8
     9        * llint/LowLevelInterpreter.asm:
     10
    1112018-03-02  Yusuke Suzuki  <utatane.tea@gmail.com>
    212
  • trunk/Source/JavaScriptCore/llint/LowLevelInterpreter.asm

    r228420 r229186  
    493493#     )
    494494#
    495 if X86_64
     495if X86_64 or ARM64
    496496    macro probe(action)
    497497        # save all the registers that the LLInt may use.
     498        if ARM64
     499            push cfr, lr
     500        end
    498501        push a0, a1
    499502        push a2, a3
     
    501504        push t2, t3
    502505        push t4, t5
     506        if ARM64
     507            push csr0, csr1
     508            push csr2, csr3
     509            push csr4, csr5
     510            push csr6, csr7
     511            push csr8, csr9
     512        end
    503513
    504514        action()
    505515
    506516        # restore all the registers we saved previously.
     517        if ARM64
     518            pop csr9, csr8
     519            pop csr7, csr6
     520            pop csr5, csr4
     521            pop csr3, csr2
     522            pop csr1, csr0
     523        end
    507524        pop t5, t4
    508525        pop t3, t2
     
    510527        pop a3, a2
    511528        pop a1, a0
     529        if ARM64
     530            pop lr, cfr
     531        end
     532    end
     533else
     534    macro probe(action)
    512535    end
    513536end
Note: See TracChangeset for help on using the changeset viewer.