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

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

Issue 1386343003: Revert "dart2js cps: Maintain parent pointers instead of recomputing them." (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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/cps_ir_integrity.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_fragment.dart
diff --git a/pkg/compiler/lib/src/cps_ir/cps_fragment.dart b/pkg/compiler/lib/src/cps_ir/cps_fragment.dart
index cecad3191c8bbc8f295d11f3cc67b0f8b5d9a3c6..4a1f34056156fdb184f01b250f4e70d3856e78cf 100644
--- a/pkg/compiler/lib/src/cps_ir/cps_fragment.dart
+++ b/pkg/compiler/lib/src/cps_ir/cps_fragment.dart
@@ -83,7 +83,6 @@ class CpsFragment {
}
if (context != null) {
context.body = node;
- node.parent = context;
}
context = null;
}
@@ -298,19 +297,4 @@ class CpsFragment {
put(let);
context = let;
}
-
- void insertBelow(InteriorNode node) {
- assert(isOpen);
- if (isEmpty) return;
- Expression child = node.body;
- node.body = root;
- root.parent = node;
- context.body = child;
- child.parent = context;
- root = context = null;
- }
-
- void insertAbove(InteriorExpression node) {
- insertBelow(node.parent);
- }
}
« no previous file with comments | « no previous file | pkg/compiler/lib/src/cps_ir/cps_ir_integrity.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698