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

Unified Diff: runtime/vm/simulator_mips.cc

Issue 14289006: Implements catch on MIPS. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 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 21890)
+++ runtime/vm/simulator_mips.cc (working copy)
@@ -994,6 +994,8 @@
} else {
// Coming via long jump from a throw. Continue to exception handler.
set_top_exit_frame_info(0);
+ // Adjust for extra pc increment.
+ set_pc(get_pc() - Instr::kInstrSize);
}
} else {
SimulatorDebugger dbg(this);
@@ -1838,7 +1840,7 @@
set_register(R22, r22_val);
set_register(R23, r23_val);
- // Restore the SP register and return R1:R0.
+ // Restore the SP register and return V1:V0.
set_register(SP, sp_before_call);
return Utils::LowHighTo64Bits(get_register(V0), get_register(V1));
}

Powered by Google App Engine
This is Rietveld 408576698