Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(357)

Unified Diff: sdk/lib/_internal/compiler/implementation/js_backend/backend.dart

Issue 17759007: First pass at asynchronous input loading in dart2js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
diff --git a/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart b/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
index a067322b552ee1e84b3585e30051319f78425d9c..41f91ee45b02a904bf42d20db71ca553edb959d5 100644
--- a/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
+++ b/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
@@ -1489,7 +1489,7 @@ class JavaScriptBackend extends Backend {
return false;
}
- void onLibraryLoaded(LibraryElement library, Uri uri) {
+ Future onLibraryLoaded(LibraryElement library, Uri uri) {
if (uri == Uri.parse('dart:_js_mirrors')) {
disableTreeShakingMarker =
library.find(const SourceString('disableTreeShaking'));
@@ -1499,6 +1499,7 @@ class JavaScriptBackend extends Backend {
preserveNamesMarker =
library.find(const SourceString('preserveNames'));
}
+ return new Future.value();
}
void registerMetadataInstantiatedType(DartType type, TreeElements elements) {

Powered by Google App Engine
This is Rietveld 408576698