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

Side by Side Diff: third_party/WebKit/Source/platform/heap/asm/SaveRegisters_mips64.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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /* 5 /*
6 * typedef void (*PushAllRegistersCallback)(SafePointBarrier*, ThreadState*, int ptr_t*); 6 * typedef void (*PushAllRegistersCallback)(SafePointBarrier*, ThreadState*, int ptr_t*);
7 * extern "C" void pushAllRegisters(SafePointBarrier*, ThreadState*, PushAllRegi stersCallback) 7 * extern "C" void PushAllRegisters(SafePointBarrier*, ThreadState*, PushAllRegi stersCallback)
8 */ 8 */
9 9
10 .type pushAllRegisters, %function 10 .type PushAllRegisters, %function
11 .global pushAllRegisters 11 .global PushAllRegisters
12 .hidden pushAllRegisters 12 .hidden PushAllRegisters
13 pushAllRegisters: 13 PushAllRegisters:
14 // Push all callee-saves registers to get them 14 // Push all callee-saves registers to get them
15 // on the stack for conservative stack scanning. 15 // on the stack for conservative stack scanning.
16 // Reserve space for callee-saved registers and return address. 16 // Reserve space for callee-saved registers and return address.
17 daddiu $sp,$sp,-80 17 daddiu $sp,$sp,-80
18 // Save the callee-saved registers and the return address. 18 // Save the callee-saved registers and the return address.
19 sd $s0,0($sp) 19 sd $s0,0($sp)
20 sd $s1,8($sp) 20 sd $s1,8($sp)
21 sd $s2,16($sp) 21 sd $s2,16($sp)
22 sd $s3,24($sp) 22 sd $s3,24($sp)
23 sd $s4,32($sp) 23 sd $s4,32($sp)
24 sd $s5,40($sp) 24 sd $s5,40($sp)
25 sd $s6,48($sp) 25 sd $s6,48($sp)
26 sd $s7,56($sp) 26 sd $s7,56($sp)
27 sd $ra,64($sp) 27 sd $ra,64($sp)
28 // Note: the callee-saved floating point registers do not need to be 28 // Note: the callee-saved floating point registers do not need to be
29 // copied to the stack, because fp registers never hold heap pointers 29 // copied to the stack, because fp registers never hold heap pointers
30 // and so do not need to be kept visible to the garbage collector. 30 // and so do not need to be kept visible to the garbage collector.
31 // Pass the two first arguments untouched in a0 and a1 and the 31 // Pass the two first arguments untouched in a0 and a1 and the
32 // stack pointer to the callback. 32 // stack pointer to the callback.
33 move $t9,$a2 33 move $t9,$a2
34 move $a2,$sp 34 move $a2,$sp
35 jalr $t9 35 jalr $t9
36 // Restore return address, adjust stack and return. 36 // Restore return address, adjust stack and return.
37 // Note: the copied registers do not need to be reloaded here, 37 // Note: the copied registers do not need to be reloaded here,
38 // because they were preserved by the called routine. 38 // because they were preserved by the called routine.
39 ld $ra,64($sp) 39 ld $ra,64($sp)
40 daddiu $sp,$sp,80 40 daddiu $sp,$sp,80
41 jr $ra 41 jr $ra
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698