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

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
Index: runtime/vm/kernel_binary_flowgraph.h
diff --git a/runtime/vm/kernel_binary_flowgraph.h b/runtime/vm/kernel_binary_flowgraph.h
index daf12245225fbe6557dff61427841f0bb4142a09..88a184f9587f5e022b93ad7e6fd70a83cc6c8127 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);
@@ -1425,6 +1426,7 @@ class LibraryHelper {
kSourceUriIndex,
kAnnotations,
kDependencies,
+ kParts,
kTypedefs,
kClasses,
kToplevelField,
@@ -1472,6 +1474,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.

Powered by Google App Engine
This is Rietveld 408576698