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 1209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1220 | 1220 |
1221 void Assembler::TraceSimMsg(const char* message) { | 1221 void Assembler::TraceSimMsg(const char* message) { |
1222 // Don't bother adding in the messages unless tracing is enabled, and we are | 1222 // Don't bother adding in the messages unless tracing is enabled, and we are |
1223 // running in the simulator. | 1223 // running in the simulator. |
1224 #if defined(USING_SIMULATOR) | 1224 #if defined(USING_SIMULATOR) |
1225 if (FLAG_trace_sim) { | 1225 if (FLAG_trace_sim) { |
1226 Label msg; | 1226 Label msg; |
1227 b(&msg); | 1227 b(&msg); |
1228 Emit(reinterpret_cast<int32_t>(message)); | 1228 Emit(reinterpret_cast<int32_t>(message)); |
1229 Bind(&msg); | 1229 Bind(&msg); |
1230 break_(Instr::kMsgMessageCode); | 1230 break_(Instr::kSimulatorMessageCode); |
1231 } | 1231 } |
1232 #endif | 1232 #endif |
1233 } | 1233 } |
1234 | 1234 |
1235 } // namespace dart | 1235 } // namespace dart |
1236 | 1236 |
1237 #endif // defined TARGET_ARCH_MIPS | 1237 #endif // defined TARGET_ARCH_MIPS |
OLD | NEW |