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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 ClassElement get jsMutableArrayClass => _helpers.jsMutableArrayClass; | 270 ClassElement get jsMutableArrayClass => _helpers.jsMutableArrayClass; |
271 | 271 |
272 bool isStringClass(ClassElement classElement) => | 272 bool isStringClass(ClassElement classElement) => |
273 classElement == _helpers.jsStringClass || | 273 classElement == _helpers.jsStringClass || |
274 classElement == _compiler.coreClasses.stringClass; | 274 classElement == _compiler.coreClasses.stringClass; |
275 | 275 |
276 bool isBoolClass(ClassElement classElement) => | 276 bool isBoolClass(ClassElement classElement) => |
277 classElement == _helpers.jsBoolClass || | 277 classElement == _helpers.jsBoolClass || |
278 classElement == _compiler.coreClasses.boolClass; | 278 classElement == _compiler.coreClasses.boolClass; |
279 | 279 |
280 // TODO(sra): 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 } | 289 } |
OLD | NEW |