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

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

Issue 1626603002: Add missing parent pointers in CopyingVisitor (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 | no next file » | 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 f93296217e9243de5df268bd0a6caa9f25d4332e..aaf7baf8e48ad7012daff9dc7b3365697c78826a 100644
--- a/pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart
+++ b/pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart
@@ -2675,6 +2675,7 @@ class CopyingVisitor extends TrampolineRecursiveVisitor {
assert(_current != null);
InteriorExpression interior = _current;
interior.body = body;
+ body.parent = interior;
}
_current = body;
}
@@ -2692,7 +2693,9 @@ class CopyingVisitor extends TrampolineRecursiveVisitor {
Expression savedFirst = _first;
_first = _current = null;
_processBlock(cont.body);
- _copies[cont].body = _first;
+ Continuation contCopy = _copies[cont];
+ contCopy.body = _first;
+ _first.parent = contCopy;
_first = savedFirst;
_current = null;
});
« 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