| 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 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 472 * \return A handle to an array containing variable names and | 472 * \return A handle to an array containing variable names and |
| 473 * corresponding values. The array is empty if the activation frame has | 473 * corresponding values. The array is empty if the activation frame has |
| 474 * no variables. If non-empty, variable names are at array offsets 2*n, | 474 * no variables. If non-empty, variable names are at array offsets 2*n, |
| 475 * values at offset 2*n+1. | 475 * values at offset 2*n+1. |
| 476 */ | 476 */ |
| 477 DART_EXPORT Dart_Handle Dart_GetLocalVariables( | 477 DART_EXPORT Dart_Handle Dart_GetLocalVariables( |
| 478 Dart_ActivationFrame activation_frame); | 478 Dart_ActivationFrame activation_frame); |
| 479 | 479 |
| 480 | 480 |
| 481 /** | 481 /** |
| 482 * Returns origin class of a function. |
| 483 * |
| 484 * Requires there to be a current isolate. |
| 485 * |
| 486 * \return Returns the class id (a handle to an integer) of the class in |
| 487 * which \function is defined. Returns a null handle if \function is defined |
| 488 * at the top level. Returns an error object otherwise. |
| 489 */ |
| 490 DART_EXPORT Dart_Handle Dart_GetFunctionOrigin(Dart_Handle function); |
| 491 |
| 492 |
| 493 /** |
| 482 * Returns an array containing all the global variable names and values of | 494 * Returns an array containing all the global variable names and values of |
| 483 * the library with given \library_id. | 495 * the library with given \library_id. |
| 484 * | 496 * |
| 485 * Requires there to be a current isolate. | 497 * Requires there to be a current isolate. |
| 486 * | 498 * |
| 487 * \return A handle to an array containing variable names and | 499 * \return A handle to an array containing variable names and |
| 488 * corresponding values. Variable names are at array offsets 2*n, | 500 * corresponding values. Variable names are at array offsets 2*n, |
| 489 * values at offset 2*n+1. | 501 * values at offset 2*n+1. |
| 490 */ | 502 */ |
| 491 DART_EXPORT Dart_Handle Dart_GetGlobalVariables(intptr_t library_id); | 503 DART_EXPORT Dart_Handle Dart_GetGlobalVariables(intptr_t library_id); |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 698 | 710 |
| 699 | 711 |
| 700 /** | 712 /** |
| 701 * Returns the isolate id for an isolate. | 713 * Returns the isolate id for an isolate. |
| 702 * | 714 * |
| 703 * \return The Dart_IsolateId value corresponding to the isolate. | 715 * \return The Dart_IsolateId value corresponding to the isolate. |
| 704 */ | 716 */ |
| 705 DART_EXPORT Dart_IsolateId Dart_GetIsolateId(Dart_Isolate isolate); | 717 DART_EXPORT Dart_IsolateId Dart_GetIsolateId(Dart_Isolate isolate); |
| 706 | 718 |
| 707 #endif // INCLUDE_DART_DEBUGGER_API_H_ | 719 #endif // INCLUDE_DART_DEBUGGER_API_H_ |
| OLD | NEW |