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 '../../dart2jslib.dart'; | 8 import '../../dart2jslib.dart'; |
9 import '../../js_emitter/js_emitter.dart'; | 9 import '../../js_emitter/js_emitter.dart'; |
10 import '../../js/js.dart' as js; | 10 import '../../js/js.dart' as js; |
11 import '../../constants/values.dart'; | 11 import '../../constants/values.dart'; |
12 import '../../elements/elements.dart'; | 12 import '../../elements/elements.dart'; |
13 import '../../constants/expressions.dart'; | |
14 import '../../dart_types.dart' show DartType, TypeVariableType, InterfaceType; | 13 import '../../dart_types.dart' show DartType, TypeVariableType, InterfaceType; |
15 | 14 |
16 /// Encapsulates the dependencies of the function-compiler to the compiler, | 15 /// Encapsulates the dependencies of the function-compiler to the compiler, |
17 /// backend and emitter. | 16 /// backend and emitter. |
18 // TODO(sigurdm): Should be refactored when we have a better feeling for the | 17 // TODO(sigurdm): Should be refactored when we have a better feeling for the |
19 // interface. | 18 // interface. |
20 class Glue { | 19 class Glue { |
21 final Compiler _compiler; | 20 final Compiler _compiler; |
22 | 21 |
23 CodegenEnqueuer get _enqueuer => _compiler.enqueuer.codegen; | 22 CodegenEnqueuer get _enqueuer => _compiler.enqueuer.codegen; |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 } | 232 } |
234 | 233 |
235 bool operatorEqHandlesNullArgument(FunctionElement element) { | 234 bool operatorEqHandlesNullArgument(FunctionElement element) { |
236 return _backend.operatorEqHandlesNullArgument(element); | 235 return _backend.operatorEqHandlesNullArgument(element); |
237 } | 236 } |
238 | 237 |
239 bool hasStrictSubtype(ClassElement element) { | 238 bool hasStrictSubtype(ClassElement element) { |
240 return _compiler.world.hasAnyStrictSubtype(element); | 239 return _compiler.world.hasAnyStrictSubtype(element); |
241 } | 240 } |
242 } | 241 } |
OLD | NEW |