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

Unified Diff: runtime/vm/object.h

Issue 2489723003: Run field initializers for new instance fields after a reload (Closed)
Patch Set: Created 4 years, 1 month 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/object.h
diff --git a/runtime/vm/object.h b/runtime/vm/object.h
index 32c4a6cc6beab3641abd249b659deae81c10e105..cc34297944e9145101747e5caa4457fbf55b0f17 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -2844,6 +2844,11 @@ class Function : public Object {
return RoundedAllocationSize(sizeof(RawFunction));
}
+ static RawFunction* EvaluateHelper(const Class& cls,
+ const String& expr,
+ const Array& param_names,
+ bool is_static);
+
static RawFunction* New(const String& name,
RawFunction::Kind kind,
bool is_static,
@@ -3235,6 +3240,8 @@ class Field : public Object {
TokenPosition token_pos() const { return raw_ptr()->token_pos_; }
+ RawString* InitializingExpression() const;
+
bool has_initializer() const {
return HasInitializerBit::decode(raw_ptr()->kind_bits_);
}
@@ -3606,6 +3613,7 @@ class Script : public Object {
RawLibrary* FindLibrary() const;
RawString* GetLine(intptr_t line_number,
Heap::Space space = Heap::kNew) const;
+ RawString* GetSnippet(TokenPosition from, TokenPosition to) const;
RawString* GetSnippet(intptr_t from_line,
intptr_t from_column,
intptr_t to_line,

Powered by Google App Engine
This is Rietveld 408576698