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

Unified Diff: pkg/compiler/lib/src/tree_ir/optimization/loop_rewriter.dart

Issue 722933003: Move shared optimizations to the tree_ir directory. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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/tree_ir/optimization/loop_rewriter.dart
diff --git a/pkg/compiler/lib/src/dart_backend/loop_rewriter.dart b/pkg/compiler/lib/src/tree_ir/optimization/loop_rewriter.dart
similarity index 97%
rename from pkg/compiler/lib/src/dart_backend/loop_rewriter.dart
rename to pkg/compiler/lib/src/tree_ir/optimization/loop_rewriter.dart
index 1c25e11313f7d9862ec578609d73fadf452ee1b6..2dc17d9eaf0670c76887dd7610e2320ac3531aab 100644
--- a/pkg/compiler/lib/src/dart_backend/loop_rewriter.dart
+++ b/pkg/compiler/lib/src/tree_ir/optimization/loop_rewriter.dart
@@ -2,9 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-library loop_rewriter;
-
-import '../tree_ir/tree_ir_nodes.dart';
+part of tree_ir.optimization;
/// Rewrites [WhileTrue] statements with an [If] body into a [WhileCondition],
/// in situations where only one of the branches contains a [Continue] to the
@@ -29,7 +27,7 @@ import '../tree_ir/tree_ir_nodes.dart';
///
/// Note that the above pattern needs no iteration since nested ifs
/// have been collapsed previously in the [StatementRewriter] phase.
-class LoopRewriter extends RecursiveVisitor {
+class LoopRewriter extends RecursiveVisitor implements Pass {
Set<Label> usedContinueLabels = new Set<Label>();

Powered by Google App Engine
This is Rietveld 408576698