Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(173)

Side by Side Diff: third_party/WebKit/Source/platform/heap/asm/SaveRegisters_arm64.S

Issue 2329463004: ABANDONED CL: Changes needed to make things compile after running rewrite_to_chrome_style tool. (Closed)
Patch Set: More fixes - things build fine at this point. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 13 matching lines...) Expand all
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 31
32 /* 32 /*
33 * typedef void (*PushAllRegistersCallback)(SafePointBarrier*, ThreadState*, int ptr_t*); 33 * typedef void (*PushAllRegistersCallback)(SafePointBarrier*, ThreadState*, int ptr_t*);
34 * extern "C" void pushAllRegisters(SafePointBarrier*, ThreadState*, PushAllRegi stersCallback) 34 * extern "C" void PushAllRegisters(SafePointBarrier*, ThreadState*, PushAllRegi stersCallback)
35 */ 35 */
36 36
37 .type pushAllRegisters, %function 37 .type PushAllRegisters, %function
38 .global pushAllRegisters 38 .global PushAllRegisters
39 .hidden pushAllRegisters 39 .hidden PushAllRegisters
40 pushAllRegisters: 40 PushAllRegisters:
41 /* Save return address. */ 41 /* Save return address. */
42 sub sp, sp, #96 42 sub sp, sp, #96
43 stp x19, x20, [sp, #80] 43 stp x19, x20, [sp, #80]
44 stp x21, x22, [sp, #64] 44 stp x21, x22, [sp, #64]
45 stp x23, x24, [sp, #48] 45 stp x23, x24, [sp, #48]
46 stp x25, x26, [sp, #32] 46 stp x25, x26, [sp, #32]
47 stp x27, x28, [sp, #16] 47 stp x27, x28, [sp, #16]
48 stp x30, x29, [sp, #0] // x30 is lr. 48 stp x30, x29, [sp, #0] // x30 is lr.
49 49
50 /* Pass the two first arguments unchanged (x0, x1) 50 /* Pass the two first arguments unchanged (x0, x1)
51 * and pass the stack pointer as third argument to the 51 * and pass the stack pointer as third argument to the
52 * callback function. 52 * callback function.
53 */ 53 */
54 mov x3, x2 54 mov x3, x2
55 mov x2, sp 55 mov x2, sp
56 blr x3 56 blr x3
57 57
58 /* We don't restore all registers since they are callee saved (so 58 /* We don't restore all registers since they are callee saved (so
59 * the callback didn't clobber them) and we didn't modify them either. 59 * the callback didn't clobber them) and we didn't modify them either.
60 */ 60 */
61 ldr x30, [sp], #96 61 ldr x30, [sp], #96
62 ret 62 ret
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698