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

Unified Diff: runtime/vm/stub_code_ia32.cc

Issue 8687037: Very first steps for a debugger (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years, 1 month 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.h ('k') | runtime/vm/vm_sources.gypi » ('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 1927)
+++ runtime/vm/stub_code_ia32.cc (working copy)
@@ -1545,6 +1545,38 @@
__ jmp(EAX);
}
+
+// ECX: Function object.
+// EDX: Arguments array.
+// TOS(0): return address (Dart code).
+void StubCode::GenerateBreakpointStaticStub(Assembler* assembler) {
+ __ EnterFrame(0);
+ __ pushl(ECX);
+ __ pushl(EDX);
+ __ CallRuntimeFromStub(kBreakpointHandlerRuntimeEntry);
+ __ popl(EDX);
+ __ popl(ECX);
+ __ LeaveFrame();
+ // Now call the static function.
+ __ jmp(&StubCode::CallStaticFunctionLabel());
+}
+
+
+// ECX: Inline cache data array.
+// EDX: Arguments array.
+// TOS(0): return address (Dart code).
+void StubCode::GenerateBreakpointDynamicStub(Assembler* assembler) {
+ __ EnterFrame(0);
+ __ pushl(ECX);
+ __ pushl(EDX);
+ __ CallRuntimeFromStub(kBreakpointHandlerRuntimeEntry);
+ __ popl(EDX);
+ __ popl(ECX);
+ __ LeaveFrame();
+ // Now call the dynamic function.
+ __ jmp(&StubCode::InlineCacheLabel());
+}
+
} // namespace dart
#endif // defined TARGET_ARCH_IA32
« no previous file with comments | « runtime/vm/stub_code.h ('k') | runtime/vm/vm_sources.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698