| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library dart2js.cps_ir.optimizers; | 5 library dart2js.cps_ir.optimizers; |
| 6 | 6 |
| 7 import '../constants/constant_system.dart'; | 7 import '../constants/constant_system.dart'; |
| 8 import '../constants/expressions.dart' show | 8 import '../constants/expressions.dart' show |
| 9 ConstantExpression, | 9 ConstantExpression, |
| 10 PrimitiveConstantExpression; | 10 PrimitiveConstantExpression; |
| 11 import '../constants/values.dart'; | 11 import '../constants/values.dart'; |
| 12 import '../dart_types.dart' as types; | 12 import '../dart_types.dart' as types; |
| 13 import '../dart2jslib.dart' as dart2js; | 13 import '../dart2jslib.dart' as dart2js; |
| 14 import '../resolution/operators.dart'; |
| 14 import '../tree/tree.dart' show LiteralDartString; | 15 import '../tree/tree.dart' show LiteralDartString; |
| 15 import '../util/util.dart'; | 16 import '../util/util.dart'; |
| 16 import 'cps_ir_nodes.dart'; | 17 import 'cps_ir_nodes.dart'; |
| 17 import '../types/types.dart' show TypeMask, TypesTask; | 18 import '../types/types.dart' show TypeMask, TypesTask; |
| 18 import '../core_types.dart' show CoreTypes; | 19 import '../core_types.dart' show CoreTypes; |
| 19 import '../types/constants.dart' show computeTypeMask; | 20 import '../types/constants.dart' show computeTypeMask; |
| 20 import '../elements/elements.dart' show ClassElement, Element, Entity, | 21 import '../elements/elements.dart' show ClassElement, Element, Entity, |
| 21 FieldElement, FunctionElement, ParameterElement; | 22 FieldElement, FunctionElement, ParameterElement; |
| 22 import '../dart2jslib.dart' show ClassWorld; | 23 import '../dart2jslib.dart' show ClassWorld; |
| 23 | 24 |
| 24 part 'type_propagation.dart'; | 25 part 'type_propagation.dart'; |
| 25 part 'redundant_phi.dart'; | 26 part 'redundant_phi.dart'; |
| 26 part 'shrinking_reductions.dart'; | 27 part 'shrinking_reductions.dart'; |
| 27 | 28 |
| 28 /// An optimization pass over the CPS IR. | 29 /// An optimization pass over the CPS IR. |
| 29 abstract class Pass { | 30 abstract class Pass { |
| 30 /// Applies optimizations to root, rewriting it in the process. | 31 /// Applies optimizations to root, rewriting it in the process. |
| 31 void rewrite(RootNode root); | 32 void rewrite(RootNode root); |
| 32 | 33 |
| 33 String get passName; | 34 String get passName; |
| 34 } | 35 } |
| OLD | NEW |