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

Unified Diff: runtime/vm/stub_code_ia32.cc

Issue 17846009: Better single stepping in VM debugger (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 6 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_arm.cc ('k') | runtime/vm/stub_code_mips.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/stub_code_ia32.cc
===================================================================
--- runtime/vm/stub_code_ia32.cc (revision 24627)
+++ runtime/vm/stub_code_ia32.cc (working copy)
@@ -1432,6 +1432,20 @@
}
#endif // DEBUG
+ // Check single stepping.
+ Label not_stepping;
+ __ movl(EAX, FieldAddress(CTX, Context::isolate_offset()));
+ __ movzxb(EAX, Address(EAX, Isolate::single_step_offset()));
+ __ cmpl(EAX, Immediate(0));
+ __ j(EQUAL, &not_stepping, Assembler::kNearJump);
+
+ __ EnterStubFrame();
+ __ pushl(ECX);
+ __ CallRuntime(kSingleStepHandlerRuntimeEntry);
+ __ popl(ECX);
+ __ LeaveFrame();
+ __ Bind(&not_stepping);
+
// Load arguments descriptor into EDX.
__ movl(EDX, FieldAddress(ECX, ICData::arguments_descriptor_offset()));
// Loop that checks if there is an IC data match.
@@ -1655,6 +1669,20 @@
}
#endif // DEBUG
+ // Check single stepping.
+ Label not_stepping;
+ __ movl(EAX, FieldAddress(CTX, Context::isolate_offset()));
+ __ movzxb(EAX, Address(EAX, Isolate::single_step_offset()));
+ __ cmpl(EAX, Immediate(0));
+ __ j(EQUAL, &not_stepping, Assembler::kNearJump);
+
+ __ EnterStubFrame();
+ __ pushl(ECX);
+ __ CallRuntime(kSingleStepHandlerRuntimeEntry);
+ __ popl(ECX);
+ __ LeaveFrame();
+ __ Bind(&not_stepping);
+
// ECX: IC data object (preserved).
__ movl(EBX, FieldAddress(ECX, ICData::ic_data_offset()));
// EBX: ic_data_array with entries: target functions and count.
@@ -2133,6 +2161,18 @@
// Returns ZF set.
void StubCode::GenerateUnoptimizedIdenticalWithNumberCheckStub(
Assembler* assembler) {
+ // Check single stepping.
+ Label not_stepping;
+ __ movl(EAX, FieldAddress(CTX, Context::isolate_offset()));
+ __ movzxb(EAX, Address(EAX, Isolate::single_step_offset()));
+ __ cmpl(EAX, Immediate(0));
+ __ j(EQUAL, &not_stepping, Assembler::kNearJump);
+
+ __ EnterStubFrame();
+ __ CallRuntime(kSingleStepHandlerRuntimeEntry);
+ __ LeaveFrame();
+ __ Bind(&not_stepping);
+
const Register left = EAX;
const Register right = EDX;
const Register temp = ECX;
« no previous file with comments | « runtime/vm/stub_code_arm.cc ('k') | runtime/vm/stub_code_mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698