| 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/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 CommonElements; | 16 import 'core_types.dart' show CommonElements; |
| 17 import 'dart_types.dart'; | 17 import 'elements/resolution_types.dart'; |
| 18 import 'elements/elements.dart'; | 18 import 'elements/elements.dart'; |
| 19 import 'elements/modelx.dart' show ConstantVariableMixin; | 19 import 'elements/modelx.dart' show ConstantVariableMixin; |
| 20 import 'resolution/operators.dart'; | 20 import 'resolution/operators.dart'; |
| 21 import 'resolution/tree_elements.dart' show TreeElements; | 21 import 'resolution/tree_elements.dart' show TreeElements; |
| 22 import 'tree/tree.dart'; | 22 import 'tree/tree.dart'; |
| 23 import 'universe/call_structure.dart' show CallStructure; | 23 import 'universe/call_structure.dart' show CallStructure; |
| 24 import 'util/util.dart' show Link; | 24 import 'util/util.dart' show Link; |
| 25 | 25 |
| 26 /// A [ConstantEnvironment] provides access for constants compiled for variable | 26 /// A [ConstantEnvironment] provides access for constants compiled for variable |
| 27 /// initializers. | 27 /// initializers. |
| (...skipping 1415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1443 class _CompilerEnvironment implements Environment { | 1443 class _CompilerEnvironment implements Environment { |
| 1444 final Compiler compiler; | 1444 final Compiler compiler; |
| 1445 | 1445 |
| 1446 _CompilerEnvironment(this.compiler); | 1446 _CompilerEnvironment(this.compiler); |
| 1447 | 1447 |
| 1448 @override | 1448 @override |
| 1449 String readFromEnvironment(String name) { | 1449 String readFromEnvironment(String name) { |
| 1450 return compiler.fromEnvironment(name); | 1450 return compiler.fromEnvironment(name); |
| 1451 } | 1451 } |
| 1452 } | 1452 } |
| OLD | NEW |