| 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 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 | 279 |
| 280 // TODO(sra,johnniwinther): Should this be part of CodegenRegistry? | 280 // TODO(sra,johnniwinther): Should this be part of CodegenRegistry? |
| 281 void registerNativeBehavior(NativeBehavior nativeBehavior, node) { | 281 void registerNativeBehavior(NativeBehavior nativeBehavior, node) { |
| 282 if (nativeBehavior == null) return; | 282 if (nativeBehavior == null) return; |
| 283 _enqueuer.nativeEnqueuer.registerNativeBehavior(nativeBehavior, node); | 283 _enqueuer.nativeEnqueuer.registerNativeBehavior(nativeBehavior, node); |
| 284 } | 284 } |
| 285 | 285 |
| 286 ConstantValue getDefaultParameterValue(ParameterElement elem) { | 286 ConstantValue getDefaultParameterValue(ParameterElement elem) { |
| 287 return _backend.constants.getConstantValueForVariable(elem); | 287 return _backend.constants.getConstantValueForVariable(elem); |
| 288 } | 288 } |
| 289 |
| 290 FunctionElement get closureFromTearOff => _backend.helpers.closureFromTearOff; |
| 289 } | 291 } |
| OLD | NEW |