Sat, 03 Jan 2015 20:18:00 +0100
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 r0,0; .set sp,1; .set RTOC,2; .set r3,3; .set r4,4 |
michael@0 | 6 | .set r5,5; .set r6,6; .set r7,7; .set r8,8; .set r9,9 |
michael@0 | 7 | .set r10,10; .set r11,11; .set r12,12; .set r13,13; .set r14,14 |
michael@0 | 8 | .set r15,15; .set r16,16; .set r17,17; .set r18,18; .set r19,19 |
michael@0 | 9 | .set r20,20; .set r21,21; .set r22,22; .set r23,23; .set r24,24 |
michael@0 | 10 | .set r25,25; .set r26,26; .set r27,27; .set r28,28; .set r29,29 |
michael@0 | 11 | .set r30,30; .set r31,31 |
michael@0 | 12 | .set f0,0; .set f1,1; .set f2,2; .set f3,3; .set f4,4 |
michael@0 | 13 | .set f5,5; .set f6,6; .set f7,7; .set f8,8; .set f9,9 |
michael@0 | 14 | .set f10,10; .set f11,11; .set f12,12; .set f13,13; .set f14,14 |
michael@0 | 15 | .set f15,15; .set f16,16; .set f17,17; .set f18,18; .set f19,19 |
michael@0 | 16 | .set f20,20; .set f21,21; .set f22,22; .set f23,23; .set f24,24 |
michael@0 | 17 | .set f25,25; .set f26,26; .set f27,27; .set f28,28; .set f29,29 |
michael@0 | 18 | .set f30,30; .set f31,31 |
michael@0 | 19 | # Define the correct name of the stub function based on the object model |
michael@0 | 20 | define(STUB_NAME, |
michael@0 | 21 | ifelse(AIX_OBJMODEL, ibm, |
michael@0 | 22 | `Stub'$1`__EI14nsXPTCStubBaseFv', |
michael@0 | 23 | `Stub'$1`__14nsXPTCStubBaseFv')) |
michael@0 | 24 | define(STUB_ENTRY, ` |
michael@0 | 25 | .rename H.10.NO_SYMBOL{PR},"" |
michael@0 | 26 | .rename H.18.'STUB_NAME($1)`{TC},"'STUB_NAME($1)`" |
michael@0 | 27 | .csect H.10.NO_SYMBOL{PR} |
michael@0 | 28 | .globl .'STUB_NAME($1)` |
michael@0 | 29 | .globl 'STUB_NAME($1)`{DS} |
michael@0 | 30 | .'STUB_NAME($1)`: |
michael@0 | 31 | li r12, '$1` |
michael@0 | 32 | b .SharedStub |
michael@0 | 33 | nop |
michael@0 | 34 | .toc |
michael@0 | 35 | T.18.'STUB_NAME($1)`: |
michael@0 | 36 | .tc H.18.'STUB_NAME($1)`{TC},'STUB_NAME($1)`{DS} |
michael@0 | 37 | .csect 'STUB_NAME($1)`{DS} |
michael@0 | 38 | .llong .'STUB_NAME($1)` |
michael@0 | 39 | .llong TOC{TC0} |
michael@0 | 40 | .llong 0x00000000 |
michael@0 | 41 | ') |
michael@0 | 42 | define(SENTINEL_ENTRY, `') |
michael@0 | 43 | include(xptcstubsdef.inc) |
michael@0 | 44 | .rename H.10.NO_SYMBOL{PR},"" |
michael@0 | 45 | .rename H.18.SharedStub{TC},"SharedStub" |
michael@0 | 46 | # .text section |
michael@0 | 47 | .csect H.10.NO_SYMBOL{PR} |
michael@0 | 48 | .globl .SharedStub |
michael@0 | 49 | .globl SharedStub{DS} |
michael@0 | 50 | .extern .PrepareAndDispatch |
michael@0 | 51 | .SharedStub: |
michael@0 | 52 | mflr r0 |
michael@0 | 53 | std r0,16(sp) |
michael@0 | 54 | stdu sp,-248(sp) # room for linkage (24*2), fprData (104), gprData(28*2) |
michael@0 | 55 | # outgoing params to PrepareAndDispatch (40) |
michael@0 | 56 | std r4,88(sp) # link area (48) + PrepareAndDispatch params (20) |
michael@0 | 57 | std r5,96(sp) |
michael@0 | 58 | std r6,104(sp) |
michael@0 | 59 | std r7,112(sp) |
michael@0 | 60 | std r8,120(sp) |
michael@0 | 61 | std r9,128(sp) |
michael@0 | 62 | std r10,136(sp) |
michael@0 | 63 | stfd f1,144(sp) |
michael@0 | 64 | stfd f2,152(sp) |
michael@0 | 65 | stfd f3,160(sp) |
michael@0 | 66 | stfd f4,168(sp) |
michael@0 | 67 | stfd f5,176(sp) |
michael@0 | 68 | stfd f6,184(sp) |
michael@0 | 69 | stfd f7,192(sp) |
michael@0 | 70 | stfd f8,200(sp) |
michael@0 | 71 | stfd f9,208(sp) |
michael@0 | 72 | stfd f10,216(sp) |
michael@0 | 73 | stfd f11,224(sp) |
michael@0 | 74 | stfd f12,232(sp) |
michael@0 | 75 | stfd f13,240(sp) |
michael@0 | 76 | addi r6,sp,88 # gprData |
michael@0 | 77 | addi r7,sp,144 # fprData |
michael@0 | 78 | # r3 has the 'self' pointer already |
michael@0 | 79 | mr r4,r12 # methodIndex selector (it is now LATER) |
michael@0 | 80 | addi r5,sp,360 # pointer to callers args area, beyond r3-r10 |
michael@0 | 81 | # mapped range |
michael@0 | 82 | bl .PrepareAndDispatch |
michael@0 | 83 | nop |
michael@0 | 84 | ld r0,264(sp) |
michael@0 | 85 | addi sp,sp,248 |
michael@0 | 86 | mtlr r0 |
michael@0 | 87 | blr |
michael@0 | 88 | # .data section |
michael@0 | 89 | .toc # 0x00000038 |
michael@0 | 90 | T.18.SharedStub: |
michael@0 | 91 | .tc H.18.SharedStub{TC},SharedStub{DS} |
michael@0 | 92 | .csect SharedStub{DS} |
michael@0 | 93 | .llong .SharedStub # "\0\0\0\0" |
michael@0 | 94 | .llong TOC{TC0} # "\0\0\0008" |
michael@0 | 95 | .llong 0x00000000 # "\0\0\0\0" |
michael@0 | 96 | # End csect SharedStub{DS} |
michael@0 | 97 | # .bss section |