Index: runtime/vm/assembler_mips.cc |
=================================================================== |
--- runtime/vm/assembler_mips.cc (revision 23482) |
+++ runtime/vm/assembler_mips.cc (working copy) |
@@ -12,7 +12,9 @@ |
namespace dart { |
+#if defined(USING_SIMULATOR) |
DECLARE_FLAG(bool, trace_sim); |
+#endif |
DEFINE_FLAG(bool, print_stop_message, false, "Print stop message."); |
@@ -575,7 +577,9 @@ |
void Assembler::TraceSimMsg(const char* message) { |
- // Don't bother adding in the messages unless tracing is enabled. |
+ // Don't bother adding in the messages unless tracing is enabled, and we are |
+ // running in the simulator. |
+#if defined(USING_SIMULATOR) |
if (FLAG_trace_sim) { |
Label msg; |
b(&msg); |
@@ -583,6 +587,7 @@ |
Bind(&msg); |
break_(Instr::kMsgMessageCode); |
} |
+#endif |
} |
} // namespace dart |