| 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/expressions.dart' show | 7 import '../constants/expressions.dart' show |
| 8 ConstantExpression, | 8 ConstantExpression, |
| 9 PrimitiveConstantExpression; | 9 PrimitiveConstantExpression; |
| 10 import '../constants/values.dart'; | 10 import '../constants/values.dart'; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 } | 44 } |
| 45 | 45 |
| 46 void rewriteConstructorDefinition(ConstructorDefinition root) { | 46 void rewriteConstructorDefinition(ConstructorDefinition root) { |
| 47 if (root.isAbstract) return; | 47 if (root.isAbstract) return; |
| 48 rewriteExecutableDefinition(root); | 48 rewriteExecutableDefinition(root); |
| 49 } | 49 } |
| 50 void rewriteFieldDefinition(FieldDefinition root) { | 50 void rewriteFieldDefinition(FieldDefinition root) { |
| 51 if (!root.hasInitializer) return; | 51 if (!root.hasInitializer) return; |
| 52 rewriteExecutableDefinition(root); | 52 rewriteExecutableDefinition(root); |
| 53 } | 53 } |
| 54 } | 54 } |
| OLD | NEW |