| 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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 // TODO(johnniwinther): Remove this when patching is only done by the | 206 // TODO(johnniwinther): Remove this when patching is only done by the |
| 207 // JavaScript backend. | 207 // JavaScript backend. |
| 208 Uri canonicalUri = library.canonicalUri; | 208 Uri canonicalUri = library.canonicalUri; |
| 209 if (canonicalUri == js_backend.BackendHelpers.DART_JS_HELPER || | 209 if (canonicalUri == js_backend.BackendHelpers.DART_JS_HELPER || |
| 210 canonicalUri == js_backend.BackendHelpers.DART_INTERCEPTORS) { | 210 canonicalUri == js_backend.BackendHelpers.DART_INTERCEPTORS) { |
| 211 return true; | 211 return true; |
| 212 } | 212 } |
| 213 return false; | 213 return false; |
| 214 } | 214 } |
| 215 | 215 |
| 216 void registerStaticUse(Element element, Enqueuer enqueuer) {} | 216 void registerStaticUse(Element element, {bool forResolution}) {} |
| 217 | 217 |
| 218 /// This method is called immediately after the [LibraryElement] [library] has | 218 /// This method is called immediately after the [LibraryElement] [library] has |
| 219 /// been created. | 219 /// been created. |
| 220 void onLibraryCreated(LibraryElement library) {} | 220 void onLibraryCreated(LibraryElement library) {} |
| 221 | 221 |
| 222 /// This method is called immediately after the [library] and its parts have | 222 /// This method is called immediately after the [library] and its parts have |
| 223 /// been scanned. | 223 /// been scanned. |
| 224 Future onLibraryScanned(LibraryElement library, LibraryLoader loader) { | 224 Future onLibraryScanned(LibraryElement library, LibraryLoader loader) { |
| 225 // TODO(johnniwinther): Move this to [JavaScriptBackend]. | 225 // TODO(johnniwinther): Move this to [JavaScriptBackend]. |
| 226 if (!compiler.serialization.isDeserialized(library)) { | 226 if (!compiler.serialization.isDeserialized(library)) { |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 ClassElement get typeImplementation; | 403 ClassElement get typeImplementation; |
| 404 ClassElement get boolImplementation; | 404 ClassElement get boolImplementation; |
| 405 ClassElement get nullImplementation; | 405 ClassElement get nullImplementation; |
| 406 ClassElement get uint32Implementation; | 406 ClassElement get uint32Implementation; |
| 407 ClassElement get uint31Implementation; | 407 ClassElement get uint31Implementation; |
| 408 ClassElement get positiveIntImplementation; | 408 ClassElement get positiveIntImplementation; |
| 409 ClassElement get syncStarIterableImplementation; | 409 ClassElement get syncStarIterableImplementation; |
| 410 ClassElement get asyncFutureImplementation; | 410 ClassElement get asyncFutureImplementation; |
| 411 ClassElement get asyncStarStreamImplementation; | 411 ClassElement get asyncStarStreamImplementation; |
| 412 } | 412 } |
| OLD | NEW |