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

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

Issue 1645933002: dart2js CPS: During shrinking reductions, mark deleted branches as deleted. (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/shrinking_reductions.dart
diff --git a/pkg/compiler/lib/src/cps_ir/shrinking_reductions.dart b/pkg/compiler/lib/src/cps_ir/shrinking_reductions.dart
index 42ae6cda760e3632c55cde3e93e220b1dac4f276..acb5b91637f0d846bebfd8cf728a91f9dc3a33fb 100644
--- a/pkg/compiler/lib/src/cps_ir/shrinking_reductions.dart
+++ b/pkg/compiler/lib/src/cps_ir/shrinking_reductions.dart
@@ -132,8 +132,6 @@ class ShrinkingReducer extends Pass {
case _ReductionKind.BRANCH:
_reduceBranch(task);
break;
- default:
- assert(false);
}
}
@@ -638,6 +636,10 @@ class _RemovalVisitor extends TrampolineRecursiveVisitor {
node.parent = null;
}
+ void processBranch(Branch node) {
+ node.parent = null;
+ }
+
void processReference(Reference reference) {
reference.unlink();
« 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