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

Side by Side Diff: runtime/include/dart_debugger_api.h

Issue 23067006: Evaluate expression in context of an object (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/bin/dbg_message.cc ('k') | runtime/vm/compiler_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef INCLUDE_DART_DEBUGGER_API_H_ 5 #ifndef INCLUDE_DART_DEBUGGER_API_H_
6 #define INCLUDE_DART_DEBUGGER_API_H_ 6 #define INCLUDE_DART_DEBUGGER_API_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 9
10 typedef struct _Dart_Breakpoint* Dart_Breakpoint; 10 typedef struct _Dart_Breakpoint* Dart_Breakpoint;
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 * Requires there to be a current isolate. 465 * Requires there to be a current isolate.
466 * 466 *
467 * \return A handle to an array containing variable names and 467 * \return A handle to an array containing variable names and
468 * corresponding values. Variable names are at array offsets 2*n, 468 * corresponding values. Variable names are at array offsets 2*n,
469 * values at offset 2*n+1. 469 * values at offset 2*n+1.
470 */ 470 */
471 DART_EXPORT Dart_Handle Dart_GetGlobalVariables(intptr_t library_id); 471 DART_EXPORT Dart_Handle Dart_GetGlobalVariables(intptr_t library_id);
472 472
473 473
474 /** 474 /**
475 * Execute the expression given in string \expr in the context
476 * of \target.
477 *
478 * Requires there to be a current isolate.
479 *
480 * The expression is evaluated in the context of \target.
481 * If \target is a Dart object, the expression is evaluated as if
482 * it were an instance method of the class of the object.
483 * TODO(hausner): add other execution contexts, e.g. library and class.
484 *
485 * \return A handle to the computed value, or an error object if
486 * the compilation of the expression fails, or if the evaluation throws
487 * an error.
488 */
489 DART_EXPORT Dart_Handle Dart_EvaluateExpr(Dart_Handle target,
490 Dart_Handle expr);
491
492
493 /**
475 * Returns the class of the given \object. 494 * Returns the class of the given \object.
476 * 495 *
477 * Requires there to be a current isolate. 496 * Requires there to be a current isolate.
478 * 497 *
479 * \return A handle to the class object. 498 * \return A handle to the class object.
480 */ 499 */
481 DART_EXPORT Dart_Handle Dart_GetObjClass(Dart_Handle object); 500 DART_EXPORT Dart_Handle Dart_GetObjClass(Dart_Handle object);
482 501
483 502
484 /** 503 /**
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
633 * \param request A REST-like string, which uses '/' to separate 652 * \param request A REST-like string, which uses '/' to separate
634 * parameters. The first parameter is always the status type. 653 * parameters. The first parameter is always the status type.
635 * 654 *
636 * \return The requested status as a JSON formatted string, with the 655 * \return The requested status as a JSON formatted string, with the
637 * contents defined by the status plug-in. The caller is responsible 656 * contents defined by the status plug-in. The caller is responsible
638 * for freeing this string. 657 * for freeing this string.
639 */ 658 */
640 DART_EXPORT char* Dart_GetVmStatus(const char* request); 659 DART_EXPORT char* Dart_GetVmStatus(const char* request);
641 660
642 #endif // INCLUDE_DART_DEBUGGER_API_H_ 661 #endif // INCLUDE_DART_DEBUGGER_API_H_
OLDNEW
« no previous file with comments | « runtime/bin/dbg_message.cc ('k') | runtime/vm/compiler_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698