| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 dart2js.backend_api; | 5 library dart2js.backend_api; |
| 6 | 6 |
| 7 import 'dart:async' show Future; | 7 import 'dart:async' show Future; |
| 8 | 8 |
| 9 import '../common.dart'; | 9 import '../common.dart'; |
| 10 import '../common/codegen.dart' show CodegenImpact; | 10 import '../common/codegen.dart' show CodegenImpact; |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 /// Returns whether or not `noSuchMethod` support has been enabled. | 182 /// Returns whether or not `noSuchMethod` support has been enabled. |
| 183 bool get enabledNoSuchMethod => false; | 183 bool get enabledNoSuchMethod => false; |
| 184 | 184 |
| 185 /// Called to enable support for isolates. Any backend specific [WorldImpact] | 185 /// Called to enable support for isolates. Any backend specific [WorldImpact] |
| 186 /// of this is returned. | 186 /// of this is returned. |
| 187 WorldImpact enableIsolateSupport({bool forResolution}); | 187 WorldImpact enableIsolateSupport({bool forResolution}); |
| 188 | 188 |
| 189 void registerConstSymbol(String name) {} | 189 void registerConstSymbol(String name) {} |
| 190 | 190 |
| 191 ClassElement defaultSuperclass(ClassElement element) { | 191 ClassElement defaultSuperclass(ClassElement element) { |
| 192 return compiler.coreClasses.objectClass; | 192 return compiler.commonElements.objectClass; |
| 193 } | 193 } |
| 194 | 194 |
| 195 bool isInterceptorClass(ClassElement element) => false; | 195 bool isInterceptorClass(ClassElement element) => false; |
| 196 | 196 |
| 197 /// Returns `true` if [element] is implemented via typed JavaScript interop. | 197 /// Returns `true` if [element] is implemented via typed JavaScript interop. |
| 198 // TODO(johnniwinther): Move this to [JavaScriptBackend]. | 198 // TODO(johnniwinther): Move this to [JavaScriptBackend]. |
| 199 bool isJsInterop(Element element) => false; | 199 bool isJsInterop(Element element) => false; |
| 200 | 200 |
| 201 /// Returns `true` if the `native` pseudo keyword is supported for [library]. | 201 /// Returns `true` if the `native` pseudo keyword is supported for [library]. |
| 202 bool canLibraryUseNative(LibraryElement library) { | 202 bool canLibraryUseNative(LibraryElement library) { |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 420 ClassElement get asyncStarStreamImplementation; | 420 ClassElement get asyncStarStreamImplementation; |
| 421 ClassElement get indexableImplementation; | 421 ClassElement get indexableImplementation; |
| 422 ClassElement get mutableIndexableImplementation; | 422 ClassElement get mutableIndexableImplementation; |
| 423 ClassElement get indexingBehaviorImplementation; | 423 ClassElement get indexingBehaviorImplementation; |
| 424 ClassElement get interceptorImplementation; | 424 ClassElement get interceptorImplementation; |
| 425 | 425 |
| 426 bool isDefaultEqualityImplementation(Element element); | 426 bool isDefaultEqualityImplementation(Element element); |
| 427 bool isInterceptorClass(ClassElement cls); | 427 bool isInterceptorClass(ClassElement cls); |
| 428 bool isNative(Element element); | 428 bool isNative(Element element); |
| 429 } | 429 } |
| OLD | NEW |