xpcom/reflect/xptcall/src/md/unix/xptcstubs_asm_aarch64.s

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/xpcom/reflect/xptcall/src/md/unix/xptcstubs_asm_aarch64.s	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,39 @@
     1.4 +# This Source Code Form is subject to the terms of the Mozilla Public
     1.5 +# License, v. 2.0. If a copy of the MPL was not distributed with this
     1.6 +# file, You can obtain one at http://mozilla.org/MPL/2.0/.
     1.7 +
     1.8 +            .set NGPREGS,8
     1.9 +            .set NFPREGS,8
    1.10 +
    1.11 +            .section ".text"
    1.12 +            .globl SharedStub
    1.13 +            .hidden SharedStub
    1.14 +            .type  SharedStub,@function
    1.15 +SharedStub:
    1.16 +            stp         x29, x30, [sp,#-16]!
    1.17 +            mov         x29, sp
    1.18 +
    1.19 +            sub         sp, sp, #8*(NGPREGS+NFPREGS)
    1.20 +            stp         x0, x1, [sp, #64+(0*8)]
    1.21 +            stp         x2, x3, [sp, #64+(2*8)]
    1.22 +            stp         x4, x5, [sp, #64+(4*8)]
    1.23 +            stp         x6, x7, [sp, #64+(6*8)]
    1.24 +            stp         d0, d1, [sp, #(0*8)]
    1.25 +            stp         d2, d3, [sp, #(2*8)]
    1.26 +            stp         d4, d5, [sp, #(4*8)]
    1.27 +            stp         d6, d7, [sp, #(6*8)]
    1.28 +
    1.29 +            # methodIndex passed from stub
    1.30 +            mov         w1, w17
    1.31 +
    1.32 +            add         x2, sp, #16+(8*(NGPREGS+NFPREGS))
    1.33 +            add         x3, sp, #8*NFPREGS
    1.34 +            add         x4, sp, #0
    1.35 +
    1.36 +            bl          PrepareAndDispatch
    1.37 +
    1.38 +            add         sp, sp, #8*(NGPREGS+NFPREGS)
    1.39 +            ldp         x29, x30, [sp],#16
    1.40 +            ret
    1.41 +
    1.42 +            .size SharedStub, . - SharedStub

mercurial