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

Unified Diff: runtime/vm/kernel.h

Issue 2886873008: [kernel] Streaming ScopeBuilder (Closed)
Patch Set: Addressed (some) comments; rebased. 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 | « pkg/kernel/lib/binary/tag.dart ('k') | runtime/vm/kernel_binary.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/kernel.h
diff --git a/runtime/vm/kernel.h b/runtime/vm/kernel.h
index 045e6e0f77e9fc01e3c4bb13646a5e0c1d1f8241..e2970b11074baceaec75a79090a06ff9f1872841 100644
--- a/runtime/vm/kernel.h
+++ b/runtime/vm/kernel.h
@@ -280,6 +280,8 @@ class RawList {
class TypeParameterList : public List<TypeParameter> {
public:
void ReadFrom(Reader* reader);
+ TypeParameterList() : first_offset(-1) {}
+ intptr_t first_offset;
};
@@ -2672,11 +2674,13 @@ class VariableDeclaration : public Statement {
TokenPosition equals_position() { return equals_position_; }
TokenPosition end_position() { return end_position_; }
void set_end_position(TokenPosition position) { end_position_ = position; }
+ intptr_t kernel_offset_no_tag() const { return kernel_offset_no_tag_; }
private:
VariableDeclaration()
: equals_position_(TokenPosition::kNoSourcePos),
- end_position_(TokenPosition::kNoSource) {}
+ end_position_(TokenPosition::kNoSource),
+ kernel_offset_no_tag_(-1) {}
template <typename T>
friend class List;
@@ -2688,6 +2692,10 @@ class VariableDeclaration : public Statement {
TokenPosition equals_position_;
TokenPosition end_position_;
+ // Offset for this node in the kernel-binary. Always without the tag.
+ // Can be -1 to indicate "unknown" or invalid offset.
+ intptr_t kernel_offset_no_tag_;
+
DISALLOW_COPY_AND_ASSIGN(VariableDeclaration);
};
« no previous file with comments | « pkg/kernel/lib/binary/tag.dart ('k') | runtime/vm/kernel_binary.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698