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 'cps_ir_nodes.dart'; | 7 import 'cps_ir_nodes.dart'; |
8 | 8 |
9 export 'type_propagation.dart' show TypePropagator, TypeSystem, | 9 export 'type_propagation.dart' show TypePropagator, TypeSystem, |
10 UnitTypeSystem, TypeMaskSystem; | 10 UnitTypeSystem, TypeMaskSystem; |
11 | 11 export 'redundant_phi.dart' show RedundantPhiEliminator; |
12 part 'redundant_phi.dart'; | 12 export 'shrinking_reductions.dart' show ShrinkingReducer, ParentVisitor; |
13 part 'shrinking_reductions.dart'; | |
14 | |
15 | 13 |
16 /// An optimization pass over the CPS IR. | 14 /// An optimization pass over the CPS IR. |
17 abstract class Pass { | 15 abstract class Pass { |
18 /// Applies optimizations to root, rewriting it in the process. | 16 /// Applies optimizations to root, rewriting it in the process. |
19 void rewrite(RootNode root); | 17 void rewrite(FunctionDefinition root); |
20 | 18 |
21 String get passName; | 19 String get passName; |
22 } | 20 } |
OLD | NEW |