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

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

michael@0 1 # This Source Code Form is subject to the terms of the Mozilla Public
michael@0 2 # License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
michael@0 4
michael@0 5 .set NGPREGS,8
michael@0 6 .set NFPREGS,8
michael@0 7
michael@0 8 .section ".text"
michael@0 9 .globl SharedStub
michael@0 10 .hidden SharedStub
michael@0 11 .type SharedStub,@function
michael@0 12 SharedStub:
michael@0 13 stp x29, x30, [sp,#-16]!
michael@0 14 mov x29, sp
michael@0 15
michael@0 16 sub sp, sp, #8*(NGPREGS+NFPREGS)
michael@0 17 stp x0, x1, [sp, #64+(0*8)]
michael@0 18 stp x2, x3, [sp, #64+(2*8)]
michael@0 19 stp x4, x5, [sp, #64+(4*8)]
michael@0 20 stp x6, x7, [sp, #64+(6*8)]
michael@0 21 stp d0, d1, [sp, #(0*8)]
michael@0 22 stp d2, d3, [sp, #(2*8)]
michael@0 23 stp d4, d5, [sp, #(4*8)]
michael@0 24 stp d6, d7, [sp, #(6*8)]
michael@0 25
michael@0 26 # methodIndex passed from stub
michael@0 27 mov w1, w17
michael@0 28
michael@0 29 add x2, sp, #16+(8*(NGPREGS+NFPREGS))
michael@0 30 add x3, sp, #8*NFPREGS
michael@0 31 add x4, sp, #0
michael@0 32
michael@0 33 bl PrepareAndDispatch
michael@0 34
michael@0 35 add sp, sp, #8*(NGPREGS+NFPREGS)
michael@0 36 ldp x29, x30, [sp],#16
michael@0 37 ret
michael@0 38
michael@0 39 .size SharedStub, . - SharedStub

mercurial