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

Side by Side Diff: third_party/WebKit/Source/platform/heap/asm/SaveRegisters_arm.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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 #ifdef __thumb__ 40 #ifdef __thumb__
41 /* In THUMB Mode jump to ARM stub via bx to ensure CPU mode switch. 41 /* In THUMB Mode jump to ARM stub via bx to ensure CPU mode switch.
42 * FIXME: This trampoline is provided to workaround bugs in 42 * FIXME: This trampoline is provided to workaround bugs in
43 * the THUMB/ARM interworking that appear in the component build. 43 * the THUMB/ARM interworking that appear in the component build.
44 * When these issues are resolved this stub can be removed. 44 * When these issues are resolved this stub can be removed.
45 */ 45 */
46 .align 2 46 .align 2
47 .code 16 47 .code 16
48 .thumb_func 48 .thumb_func
49 pushAllRegisters: 49 PushAllRegisters:
50 adr r3, pushAllRegistersARM 50 adr r3, pushAllRegistersARM
51 bx r3 51 bx r3
52 52
53 .type pushAllRegistersARM, %function 53 .type pushAllRegistersARM, %function
54 .hidden pushAllRegistersARM 54 .hidden pushAllRegistersARM
55 .align 4 55 .align 4
56 .code 32 56 .code 32
57 pushAllRegistersARM: 57 pushAllRegistersARM:
58 #else 58 #else
59 /* ARM Mode */ 59 /* ARM Mode */
60 .align 4 60 .align 4
61 .code 32 61 .code 32
62 pushAllRegisters: 62 PushAllRegisters:
63 #endif 63 #endif
64 /* Push all callee-saved registers and save return address. */ 64 /* Push all callee-saved registers and save return address. */
65 push {r4-r11, lr} 65 push {r4-r11, lr}
66 /* Pass the two first arguments unchanged (r0, r1) 66 /* Pass the two first arguments unchanged (r0, r1)
67 * and pass the stack pointer after pushing callee-saved 67 * and pass the stack pointer after pushing callee-saved
68 * registers to the callback function. 68 * registers to the callback function.
69 */ 69 */
70 mov r3, r2 70 mov r3, r2
71 mov r2, sp 71 mov r2, sp
72 blx r3 72 blx r3
73 /* Discard all the registers, and pop lr into pc which returns 73 /* Discard all the registers, and pop lr into pc which returns
74 * and switches mode if needed. 74 * and switches mode if needed.
75 */ 75 */
76 add sp, sp, #32 76 add sp, sp, #32
77 pop {pc} 77 pop {pc}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698