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 |
| 9 import '../../common.dart'; |
8 import '../../common/registry.dart' show | 10 import '../../common/registry.dart' show |
9 Registry; | 11 Registry; |
10 import '../../common/codegen.dart' show | 12 import '../../common/codegen.dart' show |
11 CodegenRegistry; | 13 CodegenRegistry; |
12 import '../../compiler.dart' show | 14 import '../../compiler.dart' show |
13 Compiler; | 15 Compiler; |
14 import '../../constants/values.dart'; | 16 import '../../constants/values.dart'; |
15 import '../../dart_types.dart' show | 17 import '../../dart_types.dart' show |
16 DartType, | 18 DartType, |
17 TypeVariableType, | 19 TypeVariableType, |
18 InterfaceType; | 20 InterfaceType; |
19 import '../../diagnostics/diagnostic_listener.dart' show | |
20 DiagnosticReporter; | |
21 import '../../diagnostics/spannable.dart' show | |
22 CURRENT_ELEMENT_SPANNABLE; | |
23 import '../../enqueue.dart' show | 21 import '../../enqueue.dart' show |
24 CodegenEnqueuer; | 22 CodegenEnqueuer; |
25 import '../../elements/elements.dart'; | 23 import '../../elements/elements.dart'; |
26 import '../../js_emitter/js_emitter.dart'; | 24 import '../../js_emitter/js_emitter.dart'; |
27 import '../../js/js.dart' as js; | 25 import '../../js/js.dart' as js; |
28 import '../../native/native.dart' show NativeBehavior; | 26 import '../../native/native.dart' show NativeBehavior; |
29 import '../../universe/selector.dart' show | 27 import '../../universe/selector.dart' show |
30 Selector; | 28 Selector; |
31 import '../../world.dart' show | 29 import '../../world.dart' show |
32 ClassWorld; | 30 ClassWorld; |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 bool isBoolClass(ClassElement classElement) => | 285 bool isBoolClass(ClassElement classElement) => |
288 classElement == _backend.jsBoolClass || | 286 classElement == _backend.jsBoolClass || |
289 classElement == _compiler.boolClass; | 287 classElement == _compiler.boolClass; |
290 | 288 |
291 // TODO(sra): Should this be part of CodegenRegistry? | 289 // TODO(sra): Should this be part of CodegenRegistry? |
292 void registerNativeBehavior(NativeBehavior nativeBehavior, node) { | 290 void registerNativeBehavior(NativeBehavior nativeBehavior, node) { |
293 if (nativeBehavior == null) return; | 291 if (nativeBehavior == null) return; |
294 _enqueuer.nativeEnqueuer.registerNativeBehavior(nativeBehavior, node); | 292 _enqueuer.nativeEnqueuer.registerNativeBehavior(nativeBehavior, node); |
295 } | 293 } |
296 } | 294 } |
OLD | NEW |