Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2683)

Unified Diff: runtime/vm/simulator_mips.cc

Issue 12703028: Adds Stop to MIPS. Starts on MIPS call patcher. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: runtime/vm/simulator_mips.cc
===================================================================
--- runtime/vm/simulator_mips.cc (revision 20500)
+++ runtime/vm/simulator_mips.cc (working copy)
@@ -711,8 +711,16 @@
break;
}
case BREAK: {
- SimulatorDebugger dbg(this);
- dbg.Stop(instr, "breakpoint");
+ if (instr->BreakCodeField() == Instr::kStopMessageCode) {
+ SimulatorDebugger dbg(this);
+ const char* message = *reinterpret_cast<const char**>(
+ reinterpret_cast<intptr_t>(instr) - Instr::kInstrSize);
+ set_pc(get_pc() + Instr::kInstrSize);
+ dbg.Stop(instr, message);
+ } else {
+ SimulatorDebugger dbg(this);
+ dbg.Stop(instr, "breakpoint");
+ }
break;
}
case DIV: {

Powered by Google App Engine
This is Rietveld 408576698