| 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 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 473 | 473 |
| 474 /** | 474 /** |
| 475 * Execute the expression given in string \expr in the context | 475 * Execute the expression given in string \expr in the context |
| 476 * of \target. | 476 * of \target. |
| 477 * | 477 * |
| 478 * Requires there to be a current isolate. | 478 * Requires there to be a current isolate. |
| 479 * | 479 * |
| 480 * The expression is evaluated in the context of \target. | 480 * The expression is evaluated in the context of \target. |
| 481 * If \target is a Dart object, the expression is evaluated as if | 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. | 482 * it were an instance method of the class of the object. |
| 483 * TODO(hausner): add other execution contexts, e.g. library and class. | 483 * If \target is a Class, the expression is evaluated as if it |
| 484 * were a static method of that class. |
| 485 * TODO(hausner): add 'library' execution context. |
| 484 * | 486 * |
| 485 * \return A handle to the computed value, or an error object if | 487 * \return A handle to the computed value, or an error object if |
| 486 * the compilation of the expression fails, or if the evaluation throws | 488 * the compilation of the expression fails, or if the evaluation throws |
| 487 * an error. | 489 * an error. |
| 488 */ | 490 */ |
| 489 DART_EXPORT Dart_Handle Dart_EvaluateExpr(Dart_Handle target, | 491 DART_EXPORT Dart_Handle Dart_EvaluateExpr(Dart_Handle target, |
| 490 Dart_Handle expr); | 492 Dart_Handle expr); |
| 491 | 493 |
| 492 | 494 |
| 493 /** | 495 /** |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 526 * Returns the supertype of the given instantiated type \cls. | 528 * Returns the supertype of the given instantiated type \cls. |
| 527 * | 529 * |
| 528 * Requires there to be a current isolate. | 530 * Requires there to be a current isolate. |
| 529 * | 531 * |
| 530 * \return A handle to the type object. | 532 * \return A handle to the type object. |
| 531 */ | 533 */ |
| 532 DART_EXPORT Dart_Handle Dart_GetSupertype(Dart_Handle type); | 534 DART_EXPORT Dart_Handle Dart_GetSupertype(Dart_Handle type); |
| 533 | 535 |
| 534 | 536 |
| 535 /** | 537 /** |
| 538 * Returns handle to class with class id \class_id. |
| 539 * |
| 540 * Requires there to be a current isolate. |
| 541 * |
| 542 * \return A handle to the class if no error occurs. |
| 543 */ |
| 544 DART_EXPORT Dart_Handle Dart_GetClassFromId(intptr_t class_id); |
| 545 |
| 546 |
| 547 /** |
| 536 * Returns info about the given class \cls_id. | 548 * Returns info about the given class \cls_id. |
| 537 * | 549 * |
| 538 * \param class_name receives handle to class name (string) if non-null. | 550 * \param class_name receives handle to class name (string) if non-null. |
| 539 * \param library receives handle to library in which the class | 551 * \param library receives handle to library in which the class |
| 540 * is defined, if non-null. | 552 * is defined, if non-null. |
| 541 * \param super_class_id receives the class id to the super class of | 553 * \param super_class_id receives the class id to the super class of |
| 542 * \cls_id if non-null. | 554 * \cls_id if non-null. |
| 543 * \param static_fields If non-null, receives an array containing field | 555 * \param static_fields If non-null, receives an array containing field |
| 544 * names and values of static fields of the class. Names are | 556 * names and values of static fields of the class. Names are |
| 545 * at array offsets 2*n, values at offset 2*n+1. | 557 * at array offsets 2*n, values at offset 2*n+1. |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 652 * \param request A REST-like string, which uses '/' to separate | 664 * \param request A REST-like string, which uses '/' to separate |
| 653 * parameters. The first parameter is always the status type. | 665 * parameters. The first parameter is always the status type. |
| 654 * | 666 * |
| 655 * \return The requested status as a JSON formatted string, with the | 667 * \return The requested status as a JSON formatted string, with the |
| 656 * contents defined by the status plug-in. The caller is responsible | 668 * contents defined by the status plug-in. The caller is responsible |
| 657 * for freeing this string. | 669 * for freeing this string. |
| 658 */ | 670 */ |
| 659 DART_EXPORT char* Dart_GetVmStatus(const char* request); | 671 DART_EXPORT char* Dart_GetVmStatus(const char* request); |
| 660 | 672 |
| 661 #endif // INCLUDE_DART_DEBUGGER_API_H_ | 673 #endif // INCLUDE_DART_DEBUGGER_API_H_ |
| OLD | NEW |