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 'constant_system_dart.dart'; | 7 import 'constant_system_dart.dart'; |
8 import 'constants/constant_system.dart'; | 8 import 'constants/constant_system.dart'; |
9 import 'constants/evaluation.dart'; | 9 import 'constants/evaluation.dart'; |
10 import 'constants/expressions.dart'; | 10 import 'constants/expressions.dart'; |
11 import 'constants/values.dart'; | 11 import 'constants/values.dart'; |
12 import 'dart_types.dart'; | 12 import 'dart_types.dart'; |
13 import 'dart2jslib.dart' show | 13 import 'dart2jslib.dart' show Compiler, CompilerTask, MessageKind, WorldImpact,
invariant; |
14 Compiler, | |
15 CompilerTask, | |
16 invariant; | |
17 import 'enqueue.dart' show | |
18 WorldImpact; | |
19 import 'elements/elements.dart'; | 14 import 'elements/elements.dart'; |
20 import 'elements/modelx.dart' show FunctionElementX; | 15 import 'elements/modelx.dart' show FunctionElementX; |
21 import 'messages.dart' show MessageKind; | |
22 import 'resolution/resolution.dart'; | 16 import 'resolution/resolution.dart'; |
23 import 'resolution/operators.dart'; | 17 import 'resolution/operators.dart'; |
24 import 'tree/tree.dart'; | 18 import 'tree/tree.dart'; |
25 import 'util/util.dart' show Link; | 19 import 'util/util.dart' show Link; |
26 import 'universe/universe.dart' show CallStructure; | 20 import 'universe/universe.dart' show CallStructure; |
27 | 21 |
28 /// A [ConstantEnvironment] provides access for constants compiled for variable | 22 /// A [ConstantEnvironment] provides access for constants compiled for variable |
29 /// initializers. | 23 /// initializers. |
30 abstract class ConstantEnvironment { | 24 abstract class ConstantEnvironment { |
31 /// The [ConstantSystem] used by this environment. | 25 /// The [ConstantSystem] used by this environment. |
(...skipping 1333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1365 | 1359 |
1366 class _CompilerEnvironment implements Environment { | 1360 class _CompilerEnvironment implements Environment { |
1367 final Compiler compiler; | 1361 final Compiler compiler; |
1368 | 1362 |
1369 _CompilerEnvironment(this.compiler); | 1363 _CompilerEnvironment(this.compiler); |
1370 | 1364 |
1371 @override | 1365 @override |
1372 String readFromEnvironment(String name) { | 1366 String readFromEnvironment(String name) { |
1373 return compiler.fromEnvironment(name); | 1367 return compiler.fromEnvironment(name); |
1374 } | 1368 } |
1375 } | 1369 } |
OLD | NEW |