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

Unified Diff: runtime/vm/kernel_binary_flowgraph.h

Issue 2988373002: Store parts in Kernel Library, resynthesize parts in Analyzer. (Closed)
Patch Set: Fixes for review comments. Created 3 years, 4 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 | « pkg/kernel/lib/visitor.dart ('k') | runtime/vm/kernel_binary_flowgraph.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/kernel_binary_flowgraph.h
diff --git a/runtime/vm/kernel_binary_flowgraph.h b/runtime/vm/kernel_binary_flowgraph.h
index a9120ad8f7d3f570d65864d5bcf0e4f84461f7a4..bf5e4e64e5544c7159d1511f633a07787b1dd68b 100644
--- a/runtime/vm/kernel_binary_flowgraph.h
+++ b/runtime/vm/kernel_binary_flowgraph.h
@@ -414,6 +414,7 @@ class StreamingFlowGraphBuilder {
void SkipVariableDeclaration();
void SkipLibraryCombinator();
void SkipLibraryDependency();
+ void SkipLibraryPart();
void SkipLibraryTypedef();
TokenPosition ReadPosition(bool record = true);
void record_token_position(TokenPosition position);
@@ -1446,6 +1447,7 @@ class LibraryHelper {
kSourceUriIndex,
kAnnotations,
kDependencies,
+ kParts,
kTypedefs,
kClasses,
kToplevelField,
@@ -1493,6 +1495,13 @@ class LibraryHelper {
}
if (++next_read_ == field) return;
}
+ case kParts: {
+ intptr_t part_count = builder_->ReadUInt(); // read list length.
+ for (intptr_t i = 0; i < part_count; ++i) {
+ builder_->SkipLibraryPart();
+ }
+ if (++next_read_ == field) return;
+ }
case kTypedefs: {
intptr_t typedef_count =
builder_->ReadListLength(); // read list length.
« no previous file with comments | « pkg/kernel/lib/visitor.dart ('k') | runtime/vm/kernel_binary_flowgraph.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698