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

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

Issue 1319303002: dart2js cps: Scalar replacement of aggregates (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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 00cd5b9d90eb3002b1b4fa9ba9c5aad40d4e52d7..16c882ac3274d7786dbf57624bdc633ae3dfdaee 100644
--- a/pkg/compiler/lib/src/js_backend/codegen/task.dart
+++ b/pkg/compiler/lib/src/js_backend/codegen/task.dart
@@ -175,6 +175,7 @@ class CpsFunctionCompiler implements FunctionCompiler {
dumpTypedIR(cpsNode, typePropagator);
applyCpsPass(new LoopInvariantCodeMotion());
applyCpsPass(new ShareInterceptors());
+ applyCpsPass(new ScalarReplacer(compiler));
asgerf 2015/08/31 09:57:30 We should rethink the order of these passes. Scal
sra1 2015/09/02 01:12:57 Acknowledged.
applyCpsPass(new ShrinkingReducer());
applyCpsPass(new MutableVariableEliminator());
applyCpsPass(new RedundantJoinEliminator());

Powered by Google App Engine
This is Rietveld 408576698