Index: runtime/vm/code_generator.cc |
=================================================================== |
--- runtime/vm/code_generator.cc (revision 4638) |
+++ runtime/vm/code_generator.cc (working copy) |
@@ -439,8 +439,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); |
@@ -538,6 +538,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() == |