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

Unified Diff: pkg/compiler/lib/src/js_backend/codegen/task.dart

Issue 1330503003: dart2js cps: Add path-sensitive types by inserting refinement IR nodes. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Comments Created 5 years, 3 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
Index: pkg/compiler/lib/src/js_backend/codegen/task.dart
diff --git a/pkg/compiler/lib/src/js_backend/codegen/task.dart b/pkg/compiler/lib/src/js_backend/codegen/task.dart
index 16c882ac3274d7786dbf57624bdc633ae3dfdaee..c979290bb1b3fb19529bac879cf49f4e07b3a6b9 100644
--- a/pkg/compiler/lib/src/js_backend/codegen/task.dart
+++ b/pkg/compiler/lib/src/js_backend/codegen/task.dart
@@ -170,9 +170,13 @@ class CpsFunctionCompiler implements FunctionCompiler {
assert(checkCpsIntegrity(cpsNode));
}
+ applyCpsPass(new RedundantJoinEliminator());
+ applyCpsPass(new RedundantPhiEliminator());
+ applyCpsPass(new InsertRefinements(compiler.typesTask, compiler.world));
TypePropagator typePropagator = new TypePropagator(compiler, this);
applyCpsPass(typePropagator);
dumpTypedIR(cpsNode, typePropagator);
+ applyCpsPass(new RemoveRefinements());
applyCpsPass(new LoopInvariantCodeMotion());
applyCpsPass(new ShareInterceptors());
applyCpsPass(new ScalarReplacer(compiler));
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/type_propagation.dart ('k') | pkg/compiler/lib/src/tree_ir/tree_ir_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698