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

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

Issue 2110323003: Support serialization of loadLibrary (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: dartfmt Created 4 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/compiler.dart
diff --git a/pkg/compiler/lib/src/compiler.dart b/pkg/compiler/lib/src/compiler.dart
index 5707bdc2cd28e89534f9b61aaaff498a9cbccaaa..7c1d58e9bf1576bc7b20d64185d89e4765119d79 100644
--- a/pkg/compiler/lib/src/compiler.dart
+++ b/pkg/compiler/lib/src/compiler.dart
@@ -920,6 +920,11 @@ abstract class Compiler implements LibraryLoaderListener {
fullyEnqueueTopLevelElement(element, world);
}
library.implementation.forEachLocalMember(enqueueAll);
+ library.imports.forEach((ImportElement import) {
+ if (import.isDeferred) {
+ world.addToWorkList(import.prefix.loadLibrary);
+ }
+ });
}
void fullyEnqueueTopLevelElement(Element element, Enqueuer world) {

Powered by Google App Engine
This is Rietveld 408576698