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

Unified Diff: pkg/compiler/lib/src/tree_ir/optimization/logical_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/logical_rewriter.dart
diff --git a/pkg/compiler/lib/src/dart_backend/logical_rewriter.dart b/pkg/compiler/lib/src/tree_ir/optimization/logical_rewriter.dart
similarity index 98%
rename from pkg/compiler/lib/src/dart_backend/logical_rewriter.dart
rename to pkg/compiler/lib/src/tree_ir/optimization/logical_rewriter.dart
index 41727739b33dc18e92ddb5f3a9e242b9a3d7fc81..f4b1a4b50fe87771404836010c7ef0ba972acbab 100644
--- a/pkg/compiler/lib/src/dart_backend/logical_rewriter.dart
+++ b/pkg/compiler/lib/src/tree_ir/optimization/logical_rewriter.dart
@@ -2,10 +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 logical_rewriter;
-
-import '../constants/values.dart' as values;
-import '../tree_ir/tree_ir_nodes.dart';
+part of tree_ir.optimization;
/// Rewrites logical expressions to be more compact in the Tree IR.
///
@@ -57,7 +54,7 @@ import '../tree_ir/tree_ir_nodes.dart';
/// x && !!y (!!y validated by [isBooleanValued])
/// x && y (double negation removed by [putInBooleanContext])
///
-class LogicalRewriter extends Visitor<Statement, Expression> {
+class LogicalRewriter extends Visitor<Statement, Expression> implements Pass {
/// Statement to be executed next by natural fallthrough. Although fallthrough
/// is not introduced in this phase, we need to reason about fallthrough when

Powered by Google App Engine
This is Rietveld 408576698