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

Unified Diff: runtime/vm/stub_code_mips.cc

Issue 106053011: Make return statements single steppable (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 12 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
« no previous file with comments | « runtime/vm/stub_code_ia32.cc ('k') | runtime/vm/stub_code_x64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/stub_code_mips.cc
===================================================================
--- runtime/vm/stub_code_mips.cc (revision 31428)
+++ runtime/vm/stub_code_mips.cc (working copy)
@@ -2154,6 +2154,25 @@
}
+// Called only from unoptimized code. All relevant registers have been saved.
+// RA: return address.
+void StubCode::GenerateDebugStepCheckStub(Assembler* assembler) {
+ // Check single stepping.
+ Label not_stepping;
+ __ lw(T0, FieldAddress(CTX, Context::isolate_offset()));
+ __ lbu(T0, Address(T0, Isolate::single_step_offset()));
+ __ BranchEqual(T0, 0, &not_stepping);
+ // Call single step callback in debugger.
+ __ addiu(SP, SP, Immediate(-1 * kWordSize));
+ __ sw(RA, Address(SP, 0 * kWordSize)); // Return address.
+ __ CallRuntime(kSingleStepHandlerRuntimeEntry, 0);
+ __ lw(RA, Address(SP, 0 * kWordSize));
+ __ addiu(SP, SP, Immediate(1 * kWordSize));
+ __ Bind(&not_stepping);
+ __ Ret();
+}
+
+
// Used to check class and type arguments. Arguments passed in registers:
// RA: return address.
// A0: instance (must be preserved).
« no previous file with comments | « runtime/vm/stub_code_ia32.cc ('k') | runtime/vm/stub_code_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698