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

Unified Diff: runtime/vm/object.h

Issue 379353003: Implement Evaluate without creating new classes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebase Created 6 years, 5 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/debugger_api_impl_test.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.h
diff --git a/runtime/vm/object.h b/runtime/vm/object.h
index 05c4150934b90432d8605bae5e978706c03378aa..35e19873042416f44626e639d0ac6fea9917424f 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -1984,6 +1984,10 @@ class Function : public Object {
const Function& parent,
intptr_t token_pos);
+ static RawFunction* NewEvalFunction(const Class& owner,
+ const Script& script,
+ bool is_static);
+
// Creates a new static initializer function which is invoked in the implicit
// static getter function.
static RawFunction* NewStaticInitializer(const Field& field);
@@ -2058,6 +2062,8 @@ class Function : public Object {
void set_implicit_closure_function(const Function& value) const;
RawInstance* implicit_static_closure() const;
void set_implicit_static_closure(const Instance& closure) const;
+ RawScript* eval_script() const;
+ void set_eval_script(const Script& value) const;
void set_num_optional_parameters(intptr_t value) const; // Encoded value.
void set_kind_tag(intptr_t value) const;
void set_data(const Object& value) const;
« no previous file with comments | « runtime/vm/debugger_api_impl_test.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698