| 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 | 7 import '../backend_helpers.dart' show |
| 8 BackendHelpers; | 8 BackendHelpers; |
| 9 import '../js_backend.dart'; | 9 import '../js_backend.dart'; |
| 10 | 10 |
| (...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 | 292 |
| 293 FunctionElement get closureFromTearOff => _backend.helpers.closureFromTearOff; | 293 FunctionElement get closureFromTearOff => _backend.helpers.closureFromTearOff; |
| 294 | 294 |
| 295 js.Name registerOneShotInterceptor(Selector selector) { | 295 js.Name registerOneShotInterceptor(Selector selector) { |
| 296 return _backend.registerOneShotInterceptor(selector); | 296 return _backend.registerOneShotInterceptor(selector); |
| 297 } | 297 } |
| 298 | 298 |
| 299 bool mayGenerateInstanceofCheck(DartType type) { | 299 bool mayGenerateInstanceofCheck(DartType type) { |
| 300 return _backend.mayGenerateInstanceofCheck(type); | 300 return _backend.mayGenerateInstanceofCheck(type); |
| 301 } | 301 } |
| 302 |
| 303 bool methodUsesReceiverArgument(FunctionElement function) { |
| 304 assert(isInterceptedMethod(function)); |
| 305 ClassElement class_ = function.enclosingClass.declaration; |
| 306 return isInterceptorClass(class_) || isUsedAsMixin(class_); |
| 307 } |
| 302 } | 308 } |
| OLD | NEW |