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

Unified Diff: pkg/compiler/lib/src/tree_ir/tree_ir_tracer.dart

Issue 759193005: Add support for fields to the new dart backend. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase Created 6 years, 1 month 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 | « pkg/compiler/lib/src/tree_ir/tree_ir_nodes.dart ('k') | pkg/compiler/lib/src/use_unused_api.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/tree_ir/tree_ir_tracer.dart
diff --git a/pkg/compiler/lib/src/tree_ir/tree_ir_tracer.dart b/pkg/compiler/lib/src/tree_ir/tree_ir_tracer.dart
index b304450bba527bdadad005b2ea67b70acbf645fe..a35e430a5ccd9f7ac25051cdf4119dc37f712693 100644
--- a/pkg/compiler/lib/src/tree_ir/tree_ir_tracer.dart
+++ b/pkg/compiler/lib/src/tree_ir/tree_ir_tracer.dart
@@ -50,8 +50,8 @@ class BlockCollector extends StatementVisitor {
blocks.add(block);
}
- void collect(FunctionDefinition function) {
- visitStatement(function.body);
+ void collect(ExecutableDefinition node) {
+ visitStatement(node.body);
}
visitLabeledStatement(LabeledStatement node) {
@@ -151,11 +151,11 @@ class TreeTracer extends TracerUtil with StatementVisitor {
BlockCollector collector;
int statementCounter;
- void traceGraph(String name, FunctionDefinition function) {
+ void traceGraph(String name, ExecutableDefinition node) {
names = new Names();
statementCounter = 0;
collector = new BlockCollector();
- collector.collect(function);
+ collector.collect(node);
tag("cfg", () {
printProperty("name", name);
int blockCounter = 0;
« no previous file with comments | « pkg/compiler/lib/src/tree_ir/tree_ir_nodes.dart ('k') | pkg/compiler/lib/src/use_unused_api.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698