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

Unified Diff: runtime/vm/flow_graph_inliner.cc

Issue 23923005: Change --print-ast output to be more regular. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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
« runtime/vm/ast_printer.cc ('K') | « runtime/vm/flow_graph_builder.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_inliner.cc
diff --git a/runtime/vm/flow_graph_inliner.cc b/runtime/vm/flow_graph_inliner.cc
index 6ecb193a03bc48765d72a03e5d7f8601aba8e174..692c0f8582540ff3d9e3dff5bd1b38d01f6b560c 100644
--- a/runtime/vm/flow_graph_inliner.cc
+++ b/runtime/vm/flow_graph_inliner.cc
@@ -77,9 +77,12 @@ static bool IsCallRecursive(const Function& function, Definition* call) {
class ChildrenVisitor : public AstNodeVisitor {
public:
ChildrenVisitor() { }
-#define DEFINE_VISIT(type, name) \
- virtual void Visit##type(type* node) { node->VisitChildren(this); }
- NODE_LIST(DEFINE_VISIT);
+#define DEFINE_VISIT(BaseName) \
+ virtual void Visit##BaseName##Node(BaseName##Node* node) { \
+ node->VisitChildren(this); \
+ }
+
+ FOR_EACH_NODE(DEFINE_VISIT);
#undef DEFINE_VISIT
};
« runtime/vm/ast_printer.cc ('K') | « runtime/vm/flow_graph_builder.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698