| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "vm/globals.h" | 5 #include "vm/globals.h" |
| 6 #if defined(TARGET_ARCH_MIPS) | 6 #if defined(TARGET_ARCH_MIPS) |
| 7 | 7 |
| 8 #include "vm/assembler.h" | 8 #include "vm/assembler.h" |
| 9 #include "vm/runtime_entry.h" | 9 #include "vm/runtime_entry.h" |
| 10 #include "vm/simulator.h" | 10 #include "vm/simulator.h" |
| (...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 339 if (uses_pp) { | 339 if (uses_pp) { |
| 340 addiu(SP, SP, Immediate(-4 * kWordSize)); | 340 addiu(SP, SP, Immediate(-4 * kWordSize)); |
| 341 sw(ZR, Address(SP, 3 * kWordSize)); // PC marker is 0 in stubs. | 341 sw(ZR, Address(SP, 3 * kWordSize)); // PC marker is 0 in stubs. |
| 342 sw(RA, Address(SP, 2 * kWordSize)); | 342 sw(RA, Address(SP, 2 * kWordSize)); |
| 343 sw(FP, Address(SP, 1 * kWordSize)); | 343 sw(FP, Address(SP, 1 * kWordSize)); |
| 344 sw(PP, Address(SP, 0 * kWordSize)); | 344 sw(PP, Address(SP, 0 * kWordSize)); |
| 345 addiu(FP, SP, Immediate(1 * kWordSize)); | 345 addiu(FP, SP, Immediate(1 * kWordSize)); |
| 346 // Setup pool pointer for this stub. | 346 // Setup pool pointer for this stub. |
| 347 Label next; | 347 Label next; |
| 348 bal(&next); | 348 bal(&next); |
| 349 delay_slot()->mov(T0, RA); | 349 delay_slot()->mov(TMP1, RA); |
| 350 | 350 |
| 351 const intptr_t object_pool_pc_dist = | 351 const intptr_t object_pool_pc_dist = |
| 352 Instructions::HeaderSize() - Instructions::object_pool_offset() + | 352 Instructions::HeaderSize() - Instructions::object_pool_offset() + |
| 353 CodeSize(); | 353 CodeSize(); |
| 354 | 354 |
| 355 Bind(&next); | 355 Bind(&next); |
| 356 lw(PP, Address(T0, -object_pool_pc_dist)); | 356 lw(PP, Address(TMP1, -object_pool_pc_dist)); |
| 357 } else { | 357 } else { |
| 358 addiu(SP, SP, Immediate(-3 * kWordSize)); | 358 addiu(SP, SP, Immediate(-3 * kWordSize)); |
| 359 sw(ZR, Address(SP, 2 * kWordSize)); // PC marker is 0 in stubs. | 359 sw(ZR, Address(SP, 2 * kWordSize)); // PC marker is 0 in stubs. |
| 360 sw(RA, Address(SP, 1 * kWordSize)); | 360 sw(RA, Address(SP, 1 * kWordSize)); |
| 361 sw(FP, Address(SP, 0 * kWordSize)); | 361 sw(FP, Address(SP, 0 * kWordSize)); |
| 362 mov(FP, SP); | 362 mov(FP, SP); |
| 363 } | 363 } |
| 364 } | 364 } |
| 365 | 365 |
| 366 | 366 |
| (...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 651 Bind(&msg); | 651 Bind(&msg); |
| 652 break_(Instr::kMsgMessageCode); | 652 break_(Instr::kMsgMessageCode); |
| 653 } | 653 } |
| 654 #endif | 654 #endif |
| 655 } | 655 } |
| 656 | 656 |
| 657 } // namespace dart | 657 } // namespace dart |
| 658 | 658 |
| 659 #endif // defined TARGET_ARCH_MIPS | 659 #endif // defined TARGET_ARCH_MIPS |
| 660 | 660 |
| OLD | NEW |