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

Unified Diff: dart/runtime/vm/stub_code_mips.cc

Issue 119673004: Version 1.1.0-dev.5.2 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 6 years, 11 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 | « dart/runtime/vm/stub_code_ia32.cc ('k') | dart/runtime/vm/stub_code_x64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/runtime/vm/stub_code_mips.cc
===================================================================
--- dart/runtime/vm/stub_code_mips.cc (revision 31530)
+++ dart/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 | « dart/runtime/vm/stub_code_ia32.cc ('k') | dart/runtime/vm/stub_code_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698