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

Unified Diff: runtime/vm/kernel.h

Issue 2886873008: [kernel] Streaming ScopeBuilder (Closed)
Patch Set: Created 3 years, 7 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.h
diff --git a/runtime/vm/kernel.h b/runtime/vm/kernel.h
index 54c794a4e11d9d728dece4ef3857139d1d9c7664..aa75fafc2a24d67bddb9a2302d43277df600ed26 100644
--- a/runtime/vm/kernel.h
+++ b/runtime/vm/kernel.h
@@ -248,6 +248,8 @@ class List {
class TypeParameterList : public List<TypeParameter> {
public:
void ReadFrom(Reader* reader);
+ TypeParameterList() : first_offset(-1) {}
+ intptr_t first_offset;
};
@@ -2583,11 +2585,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;
@@ -2599,6 +2603,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);
};

Powered by Google App Engine
This is Rietveld 408576698