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

Unified Diff: runtime/vm/kernel.h

Issue 2786083002: Read platform.dill in the VM. (Closed)
Patch Set: Incorporate review comments and merge. Created 3 years, 8 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/dart_api_impl.cc ('k') | runtime/vm/kernel.cc » ('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 9d0b70bef6478a5d0b863a9fd9ae1355d498873f..8913cab1616b6b35aa27cf7fff59e7f2857ac361 100644
--- a/runtime/vm/kernel.h
+++ b/runtime/vm/kernel.h
@@ -399,10 +399,10 @@ class CanonicalName {
private:
CanonicalName();
- bool is_referenced_;
- Ref<CanonicalName> parent_;
- Ref<String> name_;
+ CanonicalName* parent_;
+ String* name_;
MallocGrowableArray<CanonicalName*> children_;
+ bool is_referenced_;
DISALLOW_COPY_AND_ASSIGN(CanonicalName);
};
@@ -955,7 +955,10 @@ class FunctionNode : public TreeNode {
}
List<VariableDeclaration>& named_parameters() { return named_parameters_; }
DartType* return_type() { return return_type_; }
+
Statement* body() { return body_; }
+ void set_body(Statement* body) { body_ = body; }
+
TokenPosition position() { return position_; }
TokenPosition end_position() { return end_position_; }
@@ -1171,6 +1174,8 @@ class DirectPropertySet : public Expression {
class StaticGet : public Expression {
public:
+ explicit StaticGet(CanonicalName* target) : target_reference_(target) {}
+
static StaticGet* ReadFrom(Reader* reader);
virtual ~StaticGet();
@@ -2419,6 +2424,8 @@ class IfStatement : public Statement {
class ReturnStatement : public Statement {
public:
+ explicit ReturnStatement(Expression* expression) : expression_(expression) {}
+
static ReturnStatement* ReadFrom(Reader* reader);
virtual ~ReturnStatement();
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/kernel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698