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

Unified Diff: pkg/compiler/lib/src/dart_backend/backend.dart

Issue 807443002: Disable type propagation for the dart backend. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years 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/dart_backend/backend.dart
diff --git a/pkg/compiler/lib/src/dart_backend/backend.dart b/pkg/compiler/lib/src/dart_backend/backend.dart
index 6f8ba84712b2400534f94c4bf9a6a4821d305ded..f6f67484d564a58db8f0f43fdc0f789a9be92953 100644
--- a/pkg/compiler/lib/src/dart_backend/backend.dart
+++ b/pkg/compiler/lib/src/dart_backend/backend.dart
@@ -146,7 +146,9 @@ class DartBackend extends Backend {
}
}
- new TypePropagator(compiler, constantSystem, new TypeMaskSystem(compiler),
+ // TODO(karlklose): enable type propagation for dart2dart when constant
+ // types are correctly marked as instantiated (Issue 21880).
+ new TypePropagator(compiler, constantSystem, new UnitTypeSystem(),
compiler.internalError).rewrite(cpsDefinition);
traceGraph("Sparse constant propagation", cpsDefinition);
new RedundantPhiEliminator().rewrite(cpsDefinition);
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/type_propagation.dart ('k') | tests/compiler/dart2js/backend_dart/opt_constprop_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698