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

Unified Diff: runtime/vm/service.cc

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/object.cc ('k') | tools/ddbg.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/service.cc
===================================================================
--- runtime/vm/service.cc (revision 35336)
+++ runtime/vm/service.cc (working copy)
@@ -882,7 +882,10 @@
const String& expr_str = String::Handle(isolate, String::New(expr));
ASSERT(obj.IsInstance());
const Instance& instance = Instance::Cast(obj);
- const Object& result = Object::Handle(instance.Evaluate(expr_str));
+ const Object& result =
+ Object::Handle(instance.Evaluate(expr_str,
+ Array::empty_array(),
+ Array::empty_array()));
if (result.IsNull()) {
Object::null_instance().PrintToJSONStream(js, true);
} else {
@@ -931,7 +934,9 @@
return true;
}
const String& expr_str = String::Handle(isolate, String::New(expr));
- const Object& result = Object::Handle(cls.Evaluate(expr_str));
+ const Object& result = Object::Handle(cls.Evaluate(expr_str,
+ Array::empty_array(),
+ Array::empty_array()));
if (result.IsNull()) {
Object::null_instance().PrintToJSONStream(js, true);
} else {
@@ -1123,7 +1128,9 @@
return true;
}
const String& expr_str = String::Handle(isolate, String::New(expr));
- const Object& result = Object::Handle(lib.Evaluate(expr_str));
+ const Object& result = Object::Handle(lib.Evaluate(expr_str,
+ Array::empty_array(),
+ Array::empty_array()));
if (result.IsNull()) {
Object::null_instance().PrintToJSONStream(js, true);
} else {
« no previous file with comments | « runtime/vm/object.cc ('k') | tools/ddbg.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698