| 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/code_generator.h" | 9 #include "vm/code_generator.h" |
| 10 #include "vm/compiler.h" | 10 #include "vm/compiler.h" |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 | 105 |
| 106 __ mov(SP, FP); | 106 __ mov(SP, FP); |
| 107 __ lw(RA, Address(SP, 1 * kWordSize)); | 107 __ lw(RA, Address(SP, 1 * kWordSize)); |
| 108 __ lw(FP, Address(SP, 0 * kWordSize)); | 108 __ lw(FP, Address(SP, 0 * kWordSize)); |
| 109 __ Ret(); | 109 __ Ret(); |
| 110 __ delay_slot()->addiu(SP, SP, Immediate(2 * kWordSize)); | 110 __ delay_slot()->addiu(SP, SP, Immediate(2 * kWordSize)); |
| 111 } | 111 } |
| 112 | 112 |
| 113 | 113 |
| 114 // Print the stop message. | 114 // Print the stop message. |
| 115 DEFINE_LEAF_RUNTIME_ENTRY(void, PrintStopMessage, const char* message) { | 115 DEFINE_LEAF_RUNTIME_ENTRY(void, PrintStopMessage, 1, const char* message) { |
| 116 OS::Print("Stop message: %s\n", message); | 116 OS::Print("Stop message: %s\n", message); |
| 117 } | 117 } |
| 118 END_LEAF_RUNTIME_ENTRY | 118 END_LEAF_RUNTIME_ENTRY |
| 119 | 119 |
| 120 | 120 |
| 121 // Input parameters: | 121 // Input parameters: |
| 122 // A0 : stop message (const char*). | 122 // A0 : stop message (const char*). |
| 123 // Must preserve all registers. | 123 // Must preserve all registers. |
| 124 void StubCode::GeneratePrintStopMessageStub(Assembler* assembler) { | 124 void StubCode::GeneratePrintStopMessageStub(Assembler* assembler) { |
| 125 __ EnterCallRuntimeFrame(0); | 125 __ EnterCallRuntimeFrame(0); |
| (...skipping 2036 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2162 __ mov(TMP1, ZR); | 2162 __ mov(TMP1, ZR); |
| 2163 __ lw(T0, Address(SP, 0 * kWordSize)); | 2163 __ lw(T0, Address(SP, 0 * kWordSize)); |
| 2164 __ lw(T1, Address(SP, 1 * kWordSize)); | 2164 __ lw(T1, Address(SP, 1 * kWordSize)); |
| 2165 __ Ret(); | 2165 __ Ret(); |
| 2166 __ delay_slot()->addiu(SP, SP, Immediate(2 * kWordSize)); | 2166 __ delay_slot()->addiu(SP, SP, Immediate(2 * kWordSize)); |
| 2167 } | 2167 } |
| 2168 | 2168 |
| 2169 } // namespace dart | 2169 } // namespace dart |
| 2170 | 2170 |
| 2171 #endif // defined TARGET_ARCH_MIPS | 2171 #endif // defined TARGET_ARCH_MIPS |
| OLD | NEW |