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

Unified Diff: pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart

Issue 979743002: Bugfixes in CPS RecursiveVisitor and ParentVisitor. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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 | pkg/compiler/lib/src/cps_ir/shrinking_reductions.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart
diff --git a/pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart b/pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart
index 3296adc2b91ef0b3ac150666749ec9a496c09520..c1cb9700b4a7fd4cde99306c5ee0d7f5d5d9cb45 100644
--- a/pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart
+++ b/pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart
@@ -983,14 +983,13 @@ abstract class RecursiveVisitor extends Visitor {
processFieldInitializer(FieldInitializer node) {}
visitFieldInitializer(FieldInitializer node) {
processFieldInitializer(node);
- visit(node.body.body);
+ visit(node.body);
}
processSuperInitializer(SuperInitializer node) {}
visitSuperInitializer(SuperInitializer node) {
processSuperInitializer(node);
- node.arguments.forEach(
- (RunnableBody argument) => visit(argument.body));
+ node.arguments.forEach(visit);
}
// Expressions.
@@ -1139,6 +1138,7 @@ abstract class RecursiveVisitor extends Visitor {
processGetMutableVariable(GetMutableVariable node) {}
visitGetMutableVariable(GetMutableVariable node) {
processGetMutableVariable(node);
+ processReference(node.variable);
}
processParameter(Parameter node) {}
« no previous file with comments | « no previous file | pkg/compiler/lib/src/cps_ir/shrinking_reductions.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698