| 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 '../backend_helpers.dart' show BackendHelpers; | |
| 8 import '../js_backend.dart'; | |
| 9 | |
| 10 import '../../common.dart'; | 7 import '../../common.dart'; |
| 11 import '../../common/codegen.dart' show CodegenRegistry; | 8 import '../../common/codegen.dart' show CodegenRegistry; |
| 12 import '../../compiler.dart' show Compiler; | 9 import '../../compiler.dart' show Compiler; |
| 13 import '../../constants/values.dart'; | 10 import '../../constants/values.dart'; |
| 14 import '../../dart_types.dart' show DartType, TypeVariableType, InterfaceType; | 11 import '../../dart_types.dart' show DartType, TypeVariableType; |
| 12 import '../../elements/elements.dart'; |
| 15 import '../../enqueue.dart' show CodegenEnqueuer; | 13 import '../../enqueue.dart' show CodegenEnqueuer; |
| 16 import '../../elements/elements.dart'; | 14 import '../../js/js.dart' as js; |
| 17 import '../../js_emitter/js_emitter.dart'; | 15 import '../../js_emitter/js_emitter.dart'; |
| 18 import '../../js/js.dart' as js; | |
| 19 import '../../native/native.dart' show NativeBehavior; | 16 import '../../native/native.dart' show NativeBehavior; |
| 17 import '../../types/types.dart'; |
| 20 import '../../universe/selector.dart' show Selector; | 18 import '../../universe/selector.dart' show Selector; |
| 21 import '../../world.dart' show ClassWorld; | 19 import '../../world.dart' show ClassWorld; |
| 22 import '../../types/types.dart'; | 20 import '../backend_helpers.dart' show BackendHelpers; |
| 21 import '../js_backend.dart'; |
| 23 | 22 |
| 24 /// Encapsulates the dependencies of the function-compiler to the compiler, | 23 /// Encapsulates the dependencies of the function-compiler to the compiler, |
| 25 /// backend and emitter. | 24 /// backend and emitter. |
| 26 // TODO(sigurdm): Should be refactored when we have a better feeling for the | 25 // TODO(sigurdm): Should be refactored when we have a better feeling for the |
| 27 // interface. | 26 // interface. |
| 28 class Glue { | 27 class Glue { |
| 29 final Compiler _compiler; | 28 final Compiler _compiler; |
| 30 | 29 |
| 31 CodegenEnqueuer get _enqueuer => _compiler.enqueuer.codegen; | 30 CodegenEnqueuer get _enqueuer => _compiler.enqueuer.codegen; |
| 32 | 31 |
| (...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 bool mayGenerateInstanceofCheck(DartType type) { | 285 bool mayGenerateInstanceofCheck(DartType type) { |
| 287 return _backend.mayGenerateInstanceofCheck(type); | 286 return _backend.mayGenerateInstanceofCheck(type); |
| 288 } | 287 } |
| 289 | 288 |
| 290 bool methodUsesReceiverArgument(FunctionElement function) { | 289 bool methodUsesReceiverArgument(FunctionElement function) { |
| 291 assert(isInterceptedMethod(function)); | 290 assert(isInterceptedMethod(function)); |
| 292 ClassElement class_ = function.enclosingClass.declaration; | 291 ClassElement class_ = function.enclosingClass.declaration; |
| 293 return isInterceptorClass(class_) || isUsedAsMixin(class_); | 292 return isInterceptorClass(class_) || isUsedAsMixin(class_); |
| 294 } | 293 } |
| 295 } | 294 } |
| OLD | NEW |