| OLD | NEW |
| 1 library tree_ir.optimization; | 1 library tree_ir.optimization; |
| 2 | 2 |
| 3 import '../tree_ir_nodes.dart'; | 3 import '../tree_ir_nodes.dart'; |
| 4 import '../../constants/values.dart' as values; | |
| 5 import 'variable_merger.dart'; | |
| 6 | 4 |
| 5 export 'statement_rewriter.dart' show StatementRewriter; |
| 7 export 'variable_merger.dart' show VariableMerger; | 6 export 'variable_merger.dart' show VariableMerger; |
| 7 export 'loop_rewriter.dart' show LoopRewriter; |
| 8 export 'logical_rewriter.dart' show LogicalRewriter; |
| 8 export 'pull_into_initializers.dart' show PullIntoInitializers; | 9 export 'pull_into_initializers.dart' show PullIntoInitializers; |
| 9 | 10 |
| 10 part 'logical_rewriter.dart'; | |
| 11 part 'loop_rewriter.dart'; | |
| 12 part 'statement_rewriter.dart'; | |
| 13 | |
| 14 /// An optimization pass over the Tree IR. | 11 /// An optimization pass over the Tree IR. |
| 15 abstract class Pass { | 12 abstract class Pass { |
| 16 /// Applies optimizations to root, rewriting it in the process. | 13 /// Applies optimizations to root, rewriting it in the process. |
| 17 void rewrite(RootNode root); | 14 void rewrite(FunctionDefinition root); |
| 18 | 15 |
| 19 String get passName; | 16 String get passName; |
| 20 } | 17 } |
| OLD | NEW |