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

Unified Diff: pkg/compiler/lib/src/deferred_load.dart

Issue 1149303006: Let Backend determine support for deferred loading. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 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: pkg/compiler/lib/src/deferred_load.dart
diff --git a/pkg/compiler/lib/src/deferred_load.dart b/pkg/compiler/lib/src/deferred_load.dart
index 92116b8f77d792fd51a4a55ad9c908c99ccb6a0d..145dabedc4a8f7c18cdfd0b9269c36d89550d851 100644
--- a/pkg/compiler/lib/src/deferred_load.dart
+++ b/pkg/compiler/lib/src/deferred_load.dart
@@ -770,16 +770,9 @@ class DeferredLoadTask extends CompilerTask {
}
});
}
- Backend backend = compiler.backend;
- if (isProgramSplit && backend is JavaScriptBackend) {
- backend.registerCheckDeferredIsLoaded(compiler.globalDependencies);
- }
- if (isProgramSplit && backend is DartBackend) {
- // TODO(sigurdm): Implement deferred loading for dart2dart.
- compiler.reportWarning(
- lastDeferred,
- MessageKind.DEFERRED_LIBRARY_DART_2_DART);
- isProgramSplit = false;
+ if (isProgramSplit) {
+ isProgramSplit = compiler.backend.registerDeferredLoading(
+ lastDeferred, compiler.globalDependencies);
}
}

Powered by Google App Engine
This is Rietveld 408576698