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 |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 return _backend.operatorEqHandlesNullArgument(element); | 254 return _backend.operatorEqHandlesNullArgument(element); |
255 } | 255 } |
256 | 256 |
257 bool hasStrictSubtype(ClassElement element) { | 257 bool hasStrictSubtype(ClassElement element) { |
258 return _compiler.world.hasAnyStrictSubtype(element); | 258 return _compiler.world.hasAnyStrictSubtype(element); |
259 } | 259 } |
260 | 260 |
261 ClassElement get jsExtendableArrayClass => _backend.jsExtendableArrayClass; | 261 ClassElement get jsExtendableArrayClass => _backend.jsExtendableArrayClass; |
262 ClassElement get jsMutableArrayClass => _backend.jsMutableArrayClass; | 262 ClassElement get jsMutableArrayClass => _backend.jsMutableArrayClass; |
263 | 263 |
264 ClassElement get jsPlainJavaScriptObjectClass => | |
265 _backend.jsPlainJavaScriptObjectClass; | |
266 ClassElement get jsUnknownJavaScriptObjectClass => | |
267 _backend.jsUnknownJavaScriptObjectClass; | |
268 | |
269 bool isStringClass(ClassElement classElement) => | 264 bool isStringClass(ClassElement classElement) => |
270 classElement == _backend.jsStringClass || | 265 classElement == _backend.jsStringClass || |
271 classElement == _compiler.stringClass; | 266 classElement == _compiler.stringClass; |
272 | 267 |
273 bool isBoolClass(ClassElement classElement) => | 268 bool isBoolClass(ClassElement classElement) => |
274 classElement == _backend.jsBoolClass || | 269 classElement == _backend.jsBoolClass || |
275 classElement == _compiler.boolClass; | 270 classElement == _compiler.boolClass; |
276 } | 271 } |
OLD | NEW |