Index: runtime/vm/flow_graph_builder.cc |
diff --git a/runtime/vm/flow_graph_builder.cc b/runtime/vm/flow_graph_builder.cc |
index c82a90f54ca1df1b2b3481254219bf25a7af4dd7..1bafaa547e6b9471ad14991e441b4bba98383095 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++) { |