| 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>();
|
|
|
|
|