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

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
Index: runtime/vm/stub_code_ia32.cc
===================================================================
--- runtime/vm/stub_code_ia32.cc (revision 1899)
+++ runtime/vm/stub_code_ia32.cc (working copy)
@@ -1545,6 +1545,38 @@
__ jmp(EAX);
}
+
+// ECX: Function object
siva 2011/11/30 00:00:47 Missing period after comment in all the comment li
hausner 2011/11/30 01:17:05 Done.
+// EDX: Arguments array
+// TOS(0): return address (Dart code)
+void StubCode::GenerateBreakpointStaticStub(Assembler* assembler) {
+ __ EnterFrame(0);
+ __ pushl(ECX);
+ __ pushl(EDX);
+ __ CallRuntimeFromStub(kBreakpointRuntimeEntry);
+ __ 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(kBreakpointRuntimeEntry);
+ __ popl(EDX);
+ __ popl(ECX);
+ __ LeaveFrame();
+ // Now call the dynamic function
+ __ jmp(&StubCode::InlineCacheLabel());
+}
+
} // namespace dart
#endif // defined TARGET_ARCH_IA32
« runtime/vm/stub_code.h ('K') | « 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