| 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 | 8 import '../../common/registry.dart' show |
| 9 Registry; | 9 Registry; |
| 10 import '../../compiler.dart' show | 10 import '../../compiler.dart' show |
| 11 Compiler; | 11 Compiler; |
| 12 import '../../constants/values.dart'; | 12 import '../../constants/values.dart'; |
| 13 import '../../dart_types.dart' show | 13 import '../../dart_types.dart' show |
| 14 DartType, | 14 DartType, |
| 15 TypeVariableType, | 15 TypeVariableType, |
| 16 InterfaceType; | 16 InterfaceType; |
| 17 import '../../enqueue.dart' show | 17 import '../../enqueue.dart' show |
| 18 CodegenEnqueuer; | 18 CodegenEnqueuer; |
| 19 import '../../elements/elements.dart'; | 19 import '../../elements/elements.dart'; |
| 20 import '../../js_emitter/js_emitter.dart'; | 20 import '../../js_emitter/js_emitter.dart'; |
| 21 import '../../js/js.dart' as js; | 21 import '../../js/js.dart' as js; |
| 22 import '../../universe/universe.dart' show | 22 import '../../universe/selector.dart' show |
| 23 Selector; | 23 Selector; |
| 24 import '../../world.dart' show | 24 import '../../world.dart' show |
| 25 ClassWorld; | 25 ClassWorld; |
| 26 | 26 |
| 27 | 27 |
| 28 /// Encapsulates the dependencies of the function-compiler to the compiler, | 28 /// Encapsulates the dependencies of the function-compiler to the compiler, |
| 29 /// backend and emitter. | 29 /// backend and emitter. |
| 30 // 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 |
| 31 // interface. | 31 // interface. |
| 32 class Glue { | 32 class Glue { |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 ClassElement get jsMutableArrayClass => _backend.jsMutableArrayClass; | 262 ClassElement get jsMutableArrayClass => _backend.jsMutableArrayClass; |
| 263 | 263 |
| 264 bool isStringClass(ClassElement classElement) => | 264 bool isStringClass(ClassElement classElement) => |
| 265 classElement == _backend.jsStringClass || | 265 classElement == _backend.jsStringClass || |
| 266 classElement == _compiler.stringClass; | 266 classElement == _compiler.stringClass; |
| 267 | 267 |
| 268 bool isBoolClass(ClassElement classElement) => | 268 bool isBoolClass(ClassElement classElement) => |
| 269 classElement == _backend.jsBoolClass || | 269 classElement == _backend.jsBoolClass || |
| 270 classElement == _compiler.boolClass; | 270 classElement == _compiler.boolClass; |
| 271 } | 271 } |
| OLD | NEW |