OLD | NEW |
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 487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
498 * | 498 * |
499 * \return A handle to an array containing variable names and | 499 * \return A handle to an array containing variable names and |
500 * corresponding values. Variable names are at array offsets 2*n, | 500 * corresponding values. Variable names are at array offsets 2*n, |
501 * values at offset 2*n+1. | 501 * values at offset 2*n+1. |
502 */ | 502 */ |
503 DART_EXPORT Dart_Handle Dart_GetGlobalVariables(intptr_t library_id); | 503 DART_EXPORT Dart_Handle Dart_GetGlobalVariables(intptr_t library_id); |
504 | 504 |
505 | 505 |
506 /** | 506 /** |
507 * Execute the expression given in string \expr in the context | 507 * Execute the expression given in string \expr in the context |
| 508 * of stack frame \activation_frame. |
| 509 */ |
| 510 DART_EXPORT Dart_Handle Dart_ActivationFrameEvaluate( |
| 511 Dart_ActivationFrame activation_frame, |
| 512 Dart_Handle expr_in); |
| 513 |
| 514 |
| 515 /** |
| 516 * Execute the expression given in string \expr in the context |
508 * of \target. | 517 * of \target. |
509 * | 518 * |
510 * Requires there to be a current isolate. | 519 * Requires there to be a current isolate. |
511 * | 520 * |
512 * The expression is evaluated in the context of \target. | 521 * The expression is evaluated in the context of \target. |
513 * If \target is a Dart object, the expression is evaluated as if | 522 * If \target is a Dart object, the expression is evaluated as if |
514 * it were an instance method of the class of the object. | 523 * it were an instance method of the class of the object. |
515 * If \target is a Class, the expression is evaluated as if it | 524 * If \target is a Class, the expression is evaluated as if it |
516 * were a static method of that class. | 525 * were a static method of that class. |
517 * TODO(hausner): add 'library' execution context. | 526 * If \target is a Library, the expression is evaluated as if it |
| 527 * were a top-level function in that library. |
518 * | 528 * |
519 * \return A handle to the computed value, or an error object if | 529 * \return A handle to the computed value, or an error object if |
520 * the compilation of the expression fails, or if the evaluation throws | 530 * the compilation of the expression fails, or if the evaluation throws |
521 * an error. | 531 * an error. |
522 */ | 532 */ |
523 DART_EXPORT Dart_Handle Dart_EvaluateExpr(Dart_Handle target, | 533 DART_EXPORT Dart_Handle Dart_EvaluateExpr(Dart_Handle target, |
524 Dart_Handle expr); | 534 Dart_Handle expr); |
525 | 535 |
526 | 536 |
527 /** | 537 /** |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
710 | 720 |
711 | 721 |
712 /** | 722 /** |
713 * Returns the isolate id for an isolate. | 723 * Returns the isolate id for an isolate. |
714 * | 724 * |
715 * \return The Dart_IsolateId value corresponding to the isolate. | 725 * \return The Dart_IsolateId value corresponding to the isolate. |
716 */ | 726 */ |
717 DART_EXPORT Dart_IsolateId Dart_GetIsolateId(Dart_Isolate isolate); | 727 DART_EXPORT Dart_IsolateId Dart_GetIsolateId(Dart_Isolate isolate); |
718 | 728 |
719 #endif // INCLUDE_DART_DEBUGGER_API_H_ | 729 #endif // INCLUDE_DART_DEBUGGER_API_H_ |
OLD | NEW |