| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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.compile_time_constant_evaluator; | 5 library dart2js.compile_time_constant_evaluator; |
| 6 | 6 |
| 7 import 'common/resolution.dart' show Resolution; | 7 import 'common/resolution.dart' show Resolution; |
| 8 import 'common/tasks.dart' show CompilerTask, Measurer; | 8 import 'common/tasks.dart' show CompilerTask, Measurer; |
| 9 import 'common.dart'; | 9 import 'common.dart'; |
| 10 import 'compiler.dart' show Compiler; | 10 import 'compiler.dart' show Compiler; |
| 11 import 'constant_system_dart.dart'; | 11 import 'constant_system_dart.dart'; |
| 12 import 'constants/constant_system.dart'; | 12 import 'constants/constant_system.dart'; |
| 13 import 'constants/constructors.dart'; | 13 import 'constants/constructors.dart'; |
| 14 import 'constants/evaluation.dart'; | 14 import 'constants/evaluation.dart'; |
| 15 import 'constants/expressions.dart'; | 15 import 'constants/expressions.dart'; |
| 16 import 'constants/values.dart'; | 16 import 'constants/values.dart'; |
| 17 import 'common_elements.dart' show CommonElements; | 17 import 'common_elements.dart' show CommonElements; |
| 18 import 'elements/resolution_types.dart'; | |
| 19 import 'elements/elements.dart'; | 18 import 'elements/elements.dart'; |
| 20 import 'elements/entities.dart'; | 19 import 'elements/entities.dart'; |
| 21 import 'elements/modelx.dart' show ConstantVariableMixin; | 20 import 'elements/modelx.dart' show ConstantVariableMixin; |
| 22 import 'resolution/operators.dart'; | 21 import 'elements/operators.dart'; |
| 22 import 'elements/resolution_types.dart'; |
| 23 import 'resolution/tree_elements.dart' show TreeElements; | 23 import 'resolution/tree_elements.dart' show TreeElements; |
| 24 import 'tree/tree.dart'; | 24 import 'tree/tree.dart'; |
| 25 import 'universe/call_structure.dart' show CallStructure; | 25 import 'universe/call_structure.dart' show CallStructure; |
| 26 import 'util/util.dart' show Link; | 26 import 'util/util.dart' show Link; |
| 27 | 27 |
| 28 /// A [ConstantEnvironment] provides access for constants compiled for variable | 28 /// A [ConstantEnvironment] provides access for constants compiled for variable |
| 29 /// initializers. | 29 /// initializers. |
| 30 abstract class ConstantEnvironment { | 30 abstract class ConstantEnvironment { |
| 31 /// The [ConstantSystem] used by this environment. | 31 /// The [ConstantSystem] used by this environment. |
| 32 ConstantSystem get constantSystem; | 32 ConstantSystem get constantSystem; |
| (...skipping 1436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1469 @override | 1469 @override |
| 1470 ConstantExpression getFieldConstant(FieldElement field) { | 1470 ConstantExpression getFieldConstant(FieldElement field) { |
| 1471 return field.constant; | 1471 return field.constant; |
| 1472 } | 1472 } |
| 1473 | 1473 |
| 1474 @override | 1474 @override |
| 1475 ConstantExpression getLocalConstant(LocalVariableElement local) { | 1475 ConstantExpression getLocalConstant(LocalVariableElement local) { |
| 1476 return local.constant; | 1476 return local.constant; |
| 1477 } | 1477 } |
| 1478 } | 1478 } |
| OLD | NEW |