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

Unified Diff: runtime/include/dart_debugger_api.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/bin/dbg_message.cc ('k') | runtime/lib/mirrors.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/include/dart_debugger_api.h
===================================================================
--- runtime/include/dart_debugger_api.h (revision 35336)
+++ runtime/include/dart_debugger_api.h (working copy)
@@ -505,6 +505,15 @@
/**
* Execute the expression given in string \expr in the context
+ * of stack frame \activation_frame.
+ */
+DART_EXPORT Dart_Handle Dart_ActivationFrameEvaluate(
+ Dart_ActivationFrame activation_frame,
+ Dart_Handle expr_in);
+
+
+/**
+ * Execute the expression given in string \expr in the context
* of \target.
*
* Requires there to be a current isolate.
@@ -514,7 +523,8 @@
* it were an instance method of the class of the object.
* If \target is a Class, the expression is evaluated as if it
* were a static method of that class.
- * TODO(hausner): add 'library' execution context.
+ * If \target is a Library, the expression is evaluated as if it
+ * were a top-level function in that library.
*
* \return A handle to the computed value, or an error object if
* the compilation of the expression fails, or if the evaluation throws
« no previous file with comments | « runtime/bin/dbg_message.cc ('k') | runtime/lib/mirrors.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698