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

Unified Diff: runtime/vm/stub_code_x64.cc

Issue 9484002: StepOver, StepInto, StepOut (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 10 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') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/stub_code_x64.cc
===================================================================
--- runtime/vm/stub_code_x64.cc (revision 4638)
+++ runtime/vm/stub_code_x64.cc (working copy)
@@ -1693,11 +1693,24 @@
}
+// TOS(0): return address (Dart code).
+void StubCode::GenerateBreakpointReturnStub(Assembler* assembler) {
+ __ EnterFrame(0);
+ __ pushq(RAX);
+ __ CallRuntimeFromStub(kBreakpointReturnHandlerRuntimeEntry);
+ __ popq(RAX);
+ __ LeaveFrame();
+
+ __ popq(R11); // discard return address of call to this stub.
+ __ LeaveFrame();
+ __ ret();
+}
+
+
// RBX: Inline cache data array.
// R10: Arguments array.
// TOS(0): return address (Dart code).
void StubCode::GenerateBreakpointDynamicStub(Assembler* assembler) {
- __ Untested("BreakpointDynamic stub");
__ EnterFrame(0);
__ pushq(RBX);
__ pushq(R10);
@@ -1705,7 +1718,15 @@
__ popq(R10);
__ popq(RBX);
__ LeaveFrame();
- // Now call the dynamic function.
+
+ // Find out which dispatch stub to call.
+ Label ic_cache_one_arg;
+ __ movq(RCX, FieldAddress(RBX, ICData::num_args_tested_offset()));
+ const Immediate value = Immediate(reinterpret_cast<intptr_t>(Smi::New(1)));
+ __ cmpq(RCX, value);
+ __ j(EQUAL, &ic_cache_one_arg, Assembler::kNearJump);
+ __ jmp(&StubCode::TwoArgsCheckInlineCacheLabel());
+ __ Bind(&ic_cache_one_arg);
__ jmp(&StubCode::OneArgCheckInlineCacheLabel());
}
« no previous file with comments | « runtime/vm/stub_code_ia32.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698