Index: runtime/vm/flow_graph_builder.cc |
diff --git a/runtime/vm/flow_graph_builder.cc b/runtime/vm/flow_graph_builder.cc |
index bf135624fb07337f4a2ea3895866d0e4c4fa2d95..f8f9d7eb7691f9801cee076b38b8edf704aa478d 100644 |
--- a/runtime/vm/flow_graph_builder.cc |
+++ b/runtime/vm/flow_graph_builder.cc |
@@ -2104,6 +2104,11 @@ void EffectGraphVisitor::VisitForNode(ForNode* node) { |
void EffectGraphVisitor::VisitJumpNode(JumpNode* node) { |
+ if (FLAG_support_debugger && owner()->function().is_debuggable()) { |
+ AddInstruction(new (Z) DebugStepCheckInstr(node->token_pos(), |
+ RawPcDescriptors::kRuntimeCall)); |
+ } |
+ |
NestedContextAdjustment context_adjustment(owner(), owner()->context_level()); |
for (intptr_t i = 0; i < node->inlined_finally_list_length(); i++) { |