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

Unified Diff: dart/runtime/vm/stub_code_arm.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.h ('k') | dart/runtime/vm/stub_code_ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/runtime/vm/stub_code_arm.cc
===================================================================
--- dart/runtime/vm/stub_code_arm.cc (revision 31530)
+++ dart/runtime/vm/stub_code_arm.cc (working copy)
@@ -1900,6 +1900,23 @@
}
+// Called only from unoptimized code. All relevant registers have been saved.
+void StubCode::GenerateDebugStepCheckStub(
+ Assembler* assembler) {
+ // Check single stepping.
+ Label not_stepping;
+ __ ldr(R1, FieldAddress(CTX, Context::isolate_offset()));
+ __ ldrb(R1, Address(R1, Isolate::single_step_offset()));
+ __ CompareImmediate(R1, 0);
+ __ b(&not_stepping, EQ);
+ __ EnterStubFrame();
+ __ CallRuntime(kSingleStepHandlerRuntimeEntry, 0);
+ __ LeaveStubFrame();
+ __ Bind(&not_stepping);
+ __ Ret();
+}
+
+
// Used to check class and type arguments. Arguments passed in registers:
// LR: return address.
// R0: instance (must be preserved).
« no previous file with comments | « dart/runtime/vm/stub_code.h ('k') | dart/runtime/vm/stub_code_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698