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

Unified Diff: pkg/compiler/lib/src/ssa/optimize.dart

Issue 1762723002: Cleanup 1: split parts into their own libraries, remove unused imports (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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: pkg/compiler/lib/src/ssa/optimize.dart
diff --git a/pkg/compiler/lib/src/ssa/optimize.dart b/pkg/compiler/lib/src/ssa/optimize.dart
index a8d82ae15972f17dd059ea22ebce60a69f55e2a2..6b7434e3c496e14befcf2988d9a3f0befe0e7290 100644
--- a/pkg/compiler/lib/src/ssa/optimize.dart
+++ b/pkg/compiler/lib/src/ssa/optimize.dart
@@ -2,7 +2,41 @@
// 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.
-part of ssa;
+import '../common/codegen.dart' show
+ CodegenRegistry,
+ CodegenWorkItem;
+import '../common/tasks.dart' show
+ CompilerTask;
+import '../compiler.dart' show
+ Compiler;
+import '../constants/constant_system.dart';
+import '../constants/values.dart';
+import '../core_types.dart' show
+ CoreClasses;
+import '../dart_types.dart';
+import '../elements/elements.dart';
+import '../js/js.dart' as js;
+import '../js_backend/backend_helpers.dart' show
+ BackendHelpers;
+import '../js_backend/js_backend.dart';
+import '../native/native.dart' as native;
+import '../tree/tree.dart' as ast;
+import '../types/types.dart';
+import '../universe/selector.dart' show
+ Selector;
+import '../universe/side_effects.dart' show
+ SideEffects;
+import '../util/util.dart';
+import '../world.dart' show
+ ClassWorld,
+ World;
+
+import 'nodes.dart';
+import 'types_propagation.dart';
+import 'types.dart';
+import 'value_range_analyzer.dart';
+import 'value_set.dart';
+import 'interceptor_simplifier.dart';
abstract class OptimizationPhase {
String get name;
@@ -377,8 +411,7 @@ class SsaInstructionSimplifier extends HBaseVisitor
HInstruction argument = node.inputs[2];
if (argument.isString(compiler)
&& !input.canBeNull()) {
- return new HStringConcat(input, argument, null,
- node.instructionType);
+ return new HStringConcat(input, argument, node.instructionType);
}
} else if (applies(helpers.jsStringToString)
&& !input.canBeNull()) {
@@ -963,7 +996,7 @@ class SsaInstructionSimplifier extends HBaseVisitor
leftString.primitiveValue, rightString.primitiveValue)),
compiler);
if (prefix == null) return folded;
- return new HStringConcat(prefix, folded, node.node, backend.stringType);
+ return new HStringConcat(prefix, folded, backend.stringType);
}
HInstruction visitStringify(HStringify node) {

Powered by Google App Engine
This is Rietveld 408576698