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

Unified Diff: pkg/kernel/binary.md

Issue 2659343002: Add IR nodes needed for deferred loading. (Closed)
Patch Set: Update binary.md Created 3 years, 11 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
« no previous file with comments | « no previous file | pkg/kernel/lib/ast.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/kernel/binary.md
diff --git a/pkg/kernel/binary.md b/pkg/kernel/binary.md
index a287dd6be83b9b2884a61d04c12ab347a3fb7af5..e676b1f91d7ad123250c3b2511db03c4d4d2a9d7 100644
--- a/pkg/kernel/binary.md
+++ b/pkg/kernel/binary.md
@@ -175,11 +175,22 @@ type Library {
StringReference importUri;
// An absolute path URI to the .dart file from which the library was created.
UriReference fileUri;
+ List<DeferredImport> deferredImports;
List<Class> classes;
List<Field> fields;
List<Procedure> procedures;
}
+type DeferredImport {
+ LibraryReference importedLibrary;
+ StringReference name;
+}
+
+type DeferredImportReference {
+ // Index into deferredImports in the enclosing Library.
+ UInt index;
+}
+
abstract type Node {
Byte tag;
}
@@ -664,6 +675,16 @@ type Let extends Expression {
Expression body;
}
+type LoadLibrary extends Expression {
+ Byte tag = 14;
+ DeferredImportReference import;
+}
+
+type CheckLibraryIsLoaded extends Expression {
+ Byte tag = 13;
+ DeferredImportReference import;
+}
+
abstract type Statement extends Node {}
type InvalidStatement extends Statement {
« no previous file with comments | « no previous file | pkg/kernel/lib/ast.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698