Index: runtime/vm/object.h |
=================================================================== |
--- runtime/vm/object.h (revision 35336) |
+++ runtime/vm/object.h (working copy) |
@@ -1050,8 +1050,12 @@ |
// Evaluate the given expression as if it appeared in a static |
// method of this class and return the resulting value, or an |
- // error object if evaluating the expression fails. |
- RawObject* Evaluate(const String& expr) const; |
+ // error object if evaluating the expression fails. The method has |
+ // the formal parameters given in param_names, and is invoked with |
+ // the argument values given in param_values. |
+ RawObject* Evaluate(const String& expr, |
+ const Array& param_names, |
+ const Array& param_values) const; |
RawError* EnsureIsFinalized(Isolate* isolate) const; |
@@ -2542,7 +2546,14 @@ |
static RawLibrary* New(const String& url); |
- RawObject* Evaluate(const String& expr) const; |
+ // Evaluate the given expression as if it appeared in an top-level |
+ // method of this library and return the resulting value, or an |
+ // error object if evaluating the expression fails. The method has |
+ // the formal parameters given in param_names, and is invoked with |
+ // the argument values given in param_values. |
+ RawObject* Evaluate(const String& expr, |
+ const Array& param_names, |
+ const Array& param_values) const; |
// Library scope name dictionary. |
// |
@@ -4062,8 +4073,12 @@ |
// Evaluate the given expression as if it appeared in an instance |
// method of this instance and return the resulting value, or an |
- // error object if evaluating the expression fails. |
- RawObject* Evaluate(const String& expr) const; |
+ // error object if evaluating the expression fails. The method has |
+ // the formal parameters given in param_names, and is invoked with |
+ // the argument values given in param_values. |
+ RawObject* Evaluate(const String& expr, |
+ const Array& param_names, |
+ const Array& param_values) const; |
static intptr_t InstanceSize() { |
return RoundedAllocationSize(sizeof(RawInstance)); |