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: sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart

Issue 318723002: dart2dart: Restore loops with conditions and updates in backend. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Kevin's comments + bugfix Created 6 years, 6 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: sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart
diff --git a/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart b/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart
index cd15e94e77830c8d75c46064bbbba1f7e1f550c0..d720925c76c6a91cc2f740f54f528968158609b5 100644
--- a/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart
+++ b/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart
@@ -237,6 +237,8 @@ class DartBackend extends Backend {
treeElements = new TreeElementMapping(element);
new tree.StatementRewriter().rewrite(definition);
compiler.tracer.traceGraph('Statement rewriter', definition);
+ new tree.LoopRewriter().rewrite(definition);
+ compiler.tracer.traceGraph('Loop rewriter', definition);
new tree.LogicalRewriter().rewrite(definition);
compiler.tracer.traceGraph('Logical rewriter', definition);
node = dart_codegen.emit(element, treeElements, definition);

Powered by Google App Engine
This is Rietveld 408576698