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

Unified Diff: runtime/vm/code_generator.cc

Issue 9460012: 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
Index: runtime/vm/code_generator.cc
===================================================================
--- runtime/vm/code_generator.cc (revision 4191)
+++ runtime/vm/code_generator.cc (working copy)
@@ -390,8 +390,8 @@
// Resolves and compiles the target function of an instance call, updates
// function cache of the receiver's class and returns the compiled code or null.
// Only the number of named arguments is checked, but not the actual names.
-static RawCode* ResolveCompileInstanceCallTarget(Isolate* isolate,
- const Instance& receiver) {
+RawCode* ResolveCompileInstanceCallTarget(Isolate* isolate,
+ const Instance& receiver) {
DartFrameIterator iterator;
DartFrame* caller_frame = iterator.NextFrame();
ASSERT(caller_frame != NULL);
@@ -489,6 +489,16 @@
}
+// Gets called from debug stub when code reaches a breakpoint at a return
+// in Dart code.
+DEFINE_RUNTIME_ENTRY(BreakpointReturnHandler, 0) {
+ ASSERT(arguments.Count() ==
+ kBreakpointReturnHandlerRuntimeEntry.argument_count());
+ ASSERT(isolate->debugger() != NULL);
+ isolate->debugger()->BreakpointCallback();
+}
+
+
// Gets called from debug stub when code reaches a breakpoint.
DEFINE_RUNTIME_ENTRY(BreakpointDynamicHandler, 0) {
ASSERT(arguments.Count() ==

Powered by Google App Engine
This is Rietveld 408576698