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 code_generator_dependencies; | 5 library code_generator_dependencies; |
6 | 6 |
7 import '../js_backend.dart'; | 7 import '../js_backend.dart'; |
| 8 import '../../common/registry.dart' show |
| 9 Registry; |
| 10 import '../../compiler.dart' show |
| 11 Compiler; |
8 import '../../constants/values.dart'; | 12 import '../../constants/values.dart'; |
9 import '../../dart_types.dart' show | 13 import '../../dart_types.dart' show |
10 DartType, | 14 DartType, |
11 TypeVariableType, | 15 TypeVariableType, |
12 InterfaceType; | 16 InterfaceType; |
13 import '../../dart2jslib.dart'; | |
14 import '../../enqueue.dart' show | 17 import '../../enqueue.dart' show |
15 CodegenEnqueuer; | 18 CodegenEnqueuer; |
16 import '../../elements/elements.dart'; | 19 import '../../elements/elements.dart'; |
17 import '../../js_emitter/js_emitter.dart'; | 20 import '../../js_emitter/js_emitter.dart'; |
18 import '../../js/js.dart' as js; | 21 import '../../js/js.dart' as js; |
19 import '../../universe/universe.dart' show Selector; | 22 import '../../universe/universe.dart' show |
20 import '../../world.dart' show ClassWorld; | 23 Selector; |
| 24 import '../../world.dart' show |
| 25 ClassWorld; |
21 | 26 |
22 | 27 |
23 /// Encapsulates the dependencies of the function-compiler to the compiler, | 28 /// Encapsulates the dependencies of the function-compiler to the compiler, |
24 /// backend and emitter. | 29 /// backend and emitter. |
25 // TODO(sigurdm): Should be refactored when we have a better feeling for the | 30 // TODO(sigurdm): Should be refactored when we have a better feeling for the |
26 // interface. | 31 // interface. |
27 class Glue { | 32 class Glue { |
28 final Compiler _compiler; | 33 final Compiler _compiler; |
29 | 34 |
30 CodegenEnqueuer get _enqueuer => _compiler.enqueuer.codegen; | 35 CodegenEnqueuer get _enqueuer => _compiler.enqueuer.codegen; |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 return _backend.operatorEqHandlesNullArgument(element); | 246 return _backend.operatorEqHandlesNullArgument(element); |
242 } | 247 } |
243 | 248 |
244 bool hasStrictSubtype(ClassElement element) { | 249 bool hasStrictSubtype(ClassElement element) { |
245 return _compiler.world.hasAnyStrictSubtype(element); | 250 return _compiler.world.hasAnyStrictSubtype(element); |
246 } | 251 } |
247 | 252 |
248 ClassElement get jsExtendableArrayClass => _backend.jsExtendableArrayClass; | 253 ClassElement get jsExtendableArrayClass => _backend.jsExtendableArrayClass; |
249 ClassElement get jsMutableArrayClass => _backend.jsMutableArrayClass; | 254 ClassElement get jsMutableArrayClass => _backend.jsMutableArrayClass; |
250 } | 255 } |
OLD | NEW |