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

Unified Diff: runtime/vm/object.h

Issue 249533003: Support evaluation of expressions in context of a stack frame (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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/debugger_api_impl.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
===================================================================
--- 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));
« no previous file with comments | « runtime/vm/debugger_api_impl.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698