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 |
264 bool isStringClass(ClassElement classElement) => | 269 bool isStringClass(ClassElement classElement) => |
265 classElement == _backend.jsStringClass || | 270 classElement == _backend.jsStringClass || |
266 classElement == _compiler.stringClass; | 271 classElement == _compiler.stringClass; |
267 | 272 |
268 bool isBoolClass(ClassElement classElement) => | 273 bool isBoolClass(ClassElement classElement) => |
269 classElement == _backend.jsBoolClass || | 274 classElement == _backend.jsBoolClass || |
270 classElement == _compiler.boolClass; | 275 classElement == _compiler.boolClass; |
271 } | 276 } |
OLD | NEW |