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

Unified Diff: runtime/vm/ast.cc

Issue 1574363002: Use classifying token position for control flow IR instructions (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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 | runtime/vm/flow_graph_builder_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/ast.cc
diff --git a/runtime/vm/ast.cc b/runtime/vm/ast.cc
index 0b585d58fac4b56669ff941c09043f417fd3782b..19542b374206b06680f651223f5956d8afbedd66 100644
--- a/runtime/vm/ast.cc
+++ b/runtime/vm/ast.cc
@@ -6,14 +6,21 @@
#include "vm/compiler.h"
#include "vm/dart_entry.h"
#include "vm/isolate.h"
+#include "vm/log.h"
#include "vm/object_store.h"
#include "vm/resolver.h"
namespace dart {
+DEFINE_FLAG(bool, trace_ast_visitor, false,
+ "Trace AstVisitor.");
+
#define DEFINE_VISIT_FUNCTION(BaseName) \
void BaseName##Node::Visit(AstNodeVisitor* visitor) { \
+ if (FLAG_trace_ast_visitor) { \
+ THR_Print("Visiting %s\n", PrettyName()); \
+ } \
visitor->Visit##BaseName##Node(this); \
}
« no previous file with comments | « no previous file | runtime/vm/flow_graph_builder_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698