Index: runtime/vm/flow_graph_builder.cc |
diff --git a/runtime/vm/flow_graph_builder.cc b/runtime/vm/flow_graph_builder.cc |
index b424c603422311172ce1c724bd6a47633c4a08db..b752659de0876a972aaeaa50a2a5dd4e844a9d6e 100644 |
--- a/runtime/vm/flow_graph_builder.cc |
+++ b/runtime/vm/flow_graph_builder.cc |
@@ -4622,11 +4622,11 @@ FlowGraph* FlowGraphBuilder::BuildGraph() { |
VMTagScope tagScope(Thread::Current(), |
VMTag::kCompileFlowGraphBuilderTagId, |
FLAG_profile_vm); |
- if (FLAG_print_ast) { |
+ if (FLAG_support_ast_printer && FLAG_print_ast) { |
// Print the function ast before IL generation. |
AstPrinter::PrintFunctionNodes(parsed_function()); |
} |
- if (FLAG_print_scopes) { |
+ if (FLAG_support_ast_printer && FLAG_print_scopes) { |
AstPrinter::PrintFunctionScope(parsed_function()); |
} |
TargetEntryInstr* normal_entry = |