| 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.dart'; | 7 import 'common.dart'; |
| 8 import 'common/resolution.dart' show Resolution; | 8 import 'common/resolution.dart' show Resolution; |
| 9 import 'common/tasks.dart' show CompilerTask; | 9 import 'common/tasks.dart' show CompilerTask; |
| 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/evaluation.dart'; | 13 import 'constants/evaluation.dart'; |
| 14 import 'constants/expressions.dart'; | 14 import 'constants/expressions.dart'; |
| 15 import 'constants/values.dart'; | 15 import 'constants/values.dart'; |
| 16 import 'core_types.dart' show CoreTypes; | 16 import 'core_types.dart' show CoreTypes; |
| 17 import 'dart_types.dart'; | 17 import 'dart_types.dart'; |
| 18 import 'elements/elements.dart'; | 18 import 'elements/elements.dart'; |
| 19 import 'elements/modelx.dart' show FieldElementX, FunctionElementX, ConstantVari
ableMixin; | 19 import 'elements/modelx.dart' |
| 20 show FieldElementX, FunctionElementX, ConstantVariableMixin; |
| 20 import 'resolution/tree_elements.dart' show TreeElements; | 21 import 'resolution/tree_elements.dart' show TreeElements; |
| 21 import 'resolution/operators.dart'; | 22 import 'resolution/operators.dart'; |
| 22 import 'tree/tree.dart'; | 23 import 'tree/tree.dart'; |
| 23 import 'util/util.dart' show Link; | 24 import 'util/util.dart' show Link; |
| 24 import 'universe/call_structure.dart' show CallStructure; | 25 import 'universe/call_structure.dart' show CallStructure; |
| 25 | 26 |
| 26 /// A [ConstantEnvironment] provides access for constants compiled for variable | 27 /// A [ConstantEnvironment] provides access for constants compiled for variable |
| 27 /// initializers. | 28 /// initializers. |
| 28 abstract class ConstantEnvironment { | 29 abstract class ConstantEnvironment { |
| 29 /// The [ConstantSystem] used by this environment. | 30 /// The [ConstantSystem] used by this environment. |
| (...skipping 1320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1350 class _CompilerEnvironment implements Environment { | 1351 class _CompilerEnvironment implements Environment { |
| 1351 final Compiler compiler; | 1352 final Compiler compiler; |
| 1352 | 1353 |
| 1353 _CompilerEnvironment(this.compiler); | 1354 _CompilerEnvironment(this.compiler); |
| 1354 | 1355 |
| 1355 @override | 1356 @override |
| 1356 String readFromEnvironment(String name) { | 1357 String readFromEnvironment(String name) { |
| 1357 return compiler.fromEnvironment(name); | 1358 return compiler.fromEnvironment(name); |
| 1358 } | 1359 } |
| 1359 } | 1360 } |
| OLD | NEW |