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

Unified Diff: runtime/vm/stub_code_ia32.cc

Issue 14858033: Implement breakpoint for closure calls (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 7 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 22595)
+++ runtime/vm/stub_code_ia32.cc (working copy)
@@ -1708,6 +1708,17 @@
// EDX: Arguments descriptor array.
+void StubCode::GenerateBreakpointClosureStub(Assembler* assembler) {
+ __ EnterStubFrame();
+ __ pushl(EDX); // Push arguments descriptor.
+ __ CallRuntime(kBreakpointClosureHandlerRuntimeEntry);
+ __ popl(EDX); // Restore arguments descriptor.
+ __ LeaveFrame();
+ __ jmp(&StubCode::CallClosureFunctionLabel());
+}
+
+
+// EDX: Arguments descriptor array.
// TOS(0): return address (Dart code).
void StubCode::GenerateBreakpointStaticStub(Assembler* assembler) {
// Create a stub frame as we are pushing some objects on the stack before
« 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