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

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

Issue 1001793002: dart2js: Add support for do/while loops to the CPS backend. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Ummm, semicolon? Created 5 years, 9 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 | « pkg/compiler/lib/src/cps_ir/cps_ir_nodes_sexpr.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 73b6997279ddf13f3f1b37813e80325acf3b161d..f2c6c71bd43f08ed8e4a977ccd0cbcd6e6eee4ff 100644
--- a/pkg/compiler/lib/src/dart_backend/backend.dart
+++ b/pkg/compiler/lib/src/dart_backend/backend.dart
@@ -159,10 +159,12 @@ class DartBackend extends Backend {
// TODO(karlklose): enable type propagation for dart2dart when constant
// types are correctly marked as instantiated (Issue 21880).
- applyCpsPass(new TypePropagator(context.dartTypes,
- context.constantSystem,
- new UnitTypeSystem(),
- context.internalError));
+ TypePropagator typePropagator = new TypePropagator(
+ context.dartTypes,
+ context.constantSystem,
+ new UnitTypeSystem(),
+ context.internalError);
+ applyCpsPass(typePropagator);
applyCpsPass(new RedundantPhiEliminator());
applyCpsPass(new ShrinkingReducer());
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/cps_ir_nodes_sexpr.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698