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/longjump.h" | 9 #include "vm/longjump.h" |
10 #include "vm/runtime_entry.h" | 10 #include "vm/runtime_entry.h" |
(...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
568 // Preserve T0. | 568 // Preserve T0. |
569 addiu(SP, SP, Immediate(-2 * kWordSize)); | 569 addiu(SP, SP, Immediate(-2 * kWordSize)); |
570 sw(T0, Address(SP, 1 * kWordSize)); | 570 sw(T0, Address(SP, 1 * kWordSize)); |
571 } else { | 571 } else { |
572 addiu(SP, SP, Immediate(-1 * kWordSize)); | 572 addiu(SP, SP, Immediate(-1 * kWordSize)); |
573 } | 573 } |
574 sw(RA, Address(SP, 0 * kWordSize)); | 574 sw(RA, Address(SP, 0 * kWordSize)); |
575 if (object != T0) { | 575 if (object != T0) { |
576 mov(T0, object); | 576 mov(T0, object); |
577 } | 577 } |
578 BranchLink(&StubCode::UpdateStoreBufferLabel()); | 578 StubCode* stub_code = Isolate::Current()->stub_code(); |
| 579 BranchLink(&stub_code->UpdateStoreBufferLabel()); |
579 lw(RA, Address(SP, 0 * kWordSize)); | 580 lw(RA, Address(SP, 0 * kWordSize)); |
580 if (value != T0) { | 581 if (value != T0) { |
581 // Restore T0. | 582 // Restore T0. |
582 lw(T0, Address(SP, 1 * kWordSize)); | 583 lw(T0, Address(SP, 1 * kWordSize)); |
583 addiu(SP, SP, Immediate(2 * kWordSize)); | 584 addiu(SP, SP, Immediate(2 * kWordSize)); |
584 } else { | 585 } else { |
585 addiu(SP, SP, Immediate(1 * kWordSize)); | 586 addiu(SP, SP, Immediate(1 * kWordSize)); |
586 } | 587 } |
587 Bind(&done); | 588 Bind(&done); |
588 } | 589 } |
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1141 Emit(reinterpret_cast<int32_t>(message)); | 1142 Emit(reinterpret_cast<int32_t>(message)); |
1142 Bind(&msg); | 1143 Bind(&msg); |
1143 break_(Instr::kMsgMessageCode); | 1144 break_(Instr::kMsgMessageCode); |
1144 } | 1145 } |
1145 #endif | 1146 #endif |
1146 } | 1147 } |
1147 | 1148 |
1148 } // namespace dart | 1149 } // namespace dart |
1149 | 1150 |
1150 #endif // defined TARGET_ARCH_MIPS | 1151 #endif // defined TARGET_ARCH_MIPS |
OLD | NEW |