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

Unified Diff: runtime/vm/flow_graph_builder.cc

Issue 2684073005: VM: Make debug printing of AST/scopes use --print-flow-graph-filter flag. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_builder.cc
diff --git a/runtime/vm/flow_graph_builder.cc b/runtime/vm/flow_graph_builder.cc
index 1bafaa547e6b9471ad14991e441b4bba98383095..e13672d724ec4c4afb8d791c3cf0fc724b1db5f4 100644
--- a/runtime/vm/flow_graph_builder.cc
+++ b/runtime/vm/flow_graph_builder.cc
@@ -4300,12 +4300,14 @@ void EffectGraphVisitor::VisitStopNode(StopNode* node) {
FlowGraph* FlowGraphBuilder::BuildGraph() {
VMTagScope tagScope(thread(), VMTag::kCompileFlowGraphBuilderTagId,
FLAG_profile_vm);
- if (FLAG_support_ast_printer && FLAG_print_ast) {
+ if (FLAG_support_ast_printer && FLAG_print_ast &&
+ FlowGraphPrinter::ShouldPrint(parsed_function().function())) {
// Print the function ast before IL generation.
AstPrinter ast_printer;
ast_printer.PrintFunctionNodes(parsed_function());
}
- if (FLAG_support_ast_printer && FLAG_print_scopes) {
+ if (FLAG_support_ast_printer && FLAG_print_scopes &&
+ FlowGraphPrinter::ShouldPrint(parsed_function().function())) {
AstPrinter ast_printer;
ast_printer.PrintFunctionScope(parsed_function());
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698