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.optimizers; | 5 library dart2js.optimizers; |
6 | 6 |
7 import '../constants/expressions.dart' show ConstExp, PrimitiveConstExp; | 7 import '../constants/expressions.dart' show ConstantExpression, PrimitiveConstan tExpression; |
sigurdm
2014/10/01 07:46:47
Long line
Johnni Winther
2014/10/01 08:21:23
Done.
| |
8 import '../constants/values.dart' as values; | 8 import '../constants/values.dart'; |
9 import '../dart_types.dart' as types; | 9 import '../dart_types.dart' as types; |
10 import '../dart2jslib.dart' as dart2js; | 10 import '../dart2jslib.dart' as dart2js; |
11 import '../elements/elements.dart' show ClassElement; | 11 import '../elements/elements.dart' show ClassElement; |
12 import '../tree/tree.dart' show LiteralDartString; | 12 import '../tree/tree.dart' show LiteralDartString; |
13 import '../util/util.dart'; | 13 import '../util/util.dart'; |
14 import 'cps_ir_nodes.dart'; | 14 import 'cps_ir_nodes.dart'; |
15 | 15 |
16 part 'constant_propagation.dart'; | 16 part 'constant_propagation.dart'; |
17 part 'redundant_phi.dart'; | 17 part 'redundant_phi.dart'; |
18 part 'shrinking_reductions.dart'; | 18 part 'shrinking_reductions.dart'; |
19 | 19 |
20 /// An optimization pass over the CPS IR. | 20 /// An optimization pass over the CPS IR. |
21 abstract class Pass { | 21 abstract class Pass { |
22 /// Applies optimizations to root, rewriting it in the process. | 22 /// Applies optimizations to root, rewriting it in the process. |
23 void rewrite(FunctionDefinition root); | 23 void rewrite(FunctionDefinition root); |
24 } | 24 } |
OLD | NEW |