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

Unified Diff: runtime/vm/kernel_binary_flowgraph.h

Issue 2931813002: [kernel] Stream kernel_reader (Closed)
Patch Set: Feedback Created 3 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
« no previous file with comments | « runtime/vm/kernel_binary.cc ('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 f3cce6b2d2fabf7a09aa32bbd121a3baf1d7e57b..dfce124530183c6ab507e08488379d8da6515cee 100644
--- a/runtime/vm/kernel_binary_flowgraph.h
+++ b/runtime/vm/kernel_binary_flowgraph.h
@@ -87,6 +87,7 @@ class StreamingDartTypeTranslator {
bool finalize_;
friend class StreamingScopeBuilder;
+ friend class KernelReader;
};
@@ -381,6 +382,7 @@ class StreamingFlowGraphBuilder {
const dart::String& ReadNameAsMethodName();
const dart::String& ReadNameAsGetterName();
const dart::String& ReadNameAsSetterName();
+ const dart::String& ReadNameAsFieldName();
void SkipStringReference();
void SkipCanonicalNameReference();
void SkipDartType();
@@ -613,6 +615,8 @@ class StreamingFlowGraphBuilder {
friend class ProcedureHelper;
friend class ClassHelper;
friend class ConstructorHelper;
+ friend class SimpleExpressionConverter;
+ friend class KernelReader;
};
// Helper class that reads a kernel FunctionNode from binary.
@@ -1130,6 +1134,13 @@ class ConstructorHelper {
++next_read_;
}
+ bool IsExternal() {
+ return (flags_ & Constructor::kFlagExternal) == Constructor::kFlagExternal;
+ }
+ bool IsConst() {
+ return (flags_ & Constructor::kFlagConst) == Constructor::kFlagConst;
+ }
+
NameIndex canonical_name_;
TokenPosition position_;
TokenPosition end_position_;
« no previous file with comments | « runtime/vm/kernel_binary.cc ('k') | runtime/vm/kernel_binary_flowgraph.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698