| 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 * | 151 * |
| 152 * \return A handle to the True object if no error occurs. | 152 * \return A handle to the True object if no error occurs. |
| 153 */ | 153 */ |
| 154 DART_EXPORT Dart_Handle Dart_ActivationFrameInfo( | 154 DART_EXPORT Dart_Handle Dart_ActivationFrameInfo( |
| 155 Dart_ActivationFrame activation_frame, | 155 Dart_ActivationFrame activation_frame, |
| 156 Dart_Handle* function_name, | 156 Dart_Handle* function_name, |
| 157 Dart_Handle* script_url, | 157 Dart_Handle* script_url, |
| 158 intptr_t* line_number); | 158 intptr_t* line_number); |
| 159 | 159 |
| 160 | 160 |
| 161 /** |
| 162 * Returns the class of the given \object. |
| 163 * |
| 164 * Requires there to be a current isolate. |
| 165 * |
| 166 * \return A handle to the class object. |
| 167 */ |
| 168 DART_EXPORT Dart_Handle Dart_GetObjClass(Dart_Handle object); |
| 169 |
| 170 |
| 171 /** |
| 172 * Returns the superclass of the given class \cls. |
| 173 * |
| 174 * Requires there to be a current isolate. |
| 175 * |
| 176 * \return A handle to the class object. |
| 177 */ |
| 178 DART_EXPORT Dart_Handle Dart_GetSuperclass(Dart_Handle cls); |
| 179 |
| 180 |
| 181 /** |
| 182 * Returns an array containing all instance field names and values of |
| 183 * the given \object. |
| 184 * |
| 185 * Requires there to be a current isolate. |
| 186 * |
| 187 * \return A handle to an array containing field names and |
| 188 * corresponding field values. The array is empty if the object has |
| 189 * no fields. If non-empty, field names are at array offsets 2*n, |
| 190 * values at offset 2*n+1. Field values may also be a handle to an |
| 191 * error object if an error was encountered evaluating the field. |
| 192 */ |
| 193 DART_EXPORT Dart_Handle Dart_GetInstanceFields(Dart_Handle object); |
| 194 |
| 195 |
| 196 /** |
| 197 * Returns an array containing all static field names and values of |
| 198 * the given class \cls. |
| 199 * |
| 200 * Requires there to be a current isolate. |
| 201 * |
| 202 * \return A handle to an array containing field names and |
| 203 * corresponding field values. The array is empty if the class has |
| 204 * no static fields. If non-empty, field names are at array offsets 2*n, |
| 205 * values at offset 2*n+1. Field values may also be a handle to an |
| 206 * error object if an error was encountered evaluating the field. |
| 207 */ |
| 208 DART_EXPORT Dart_Handle Dart_GetStaticFields(Dart_Handle cls); |
| 209 |
| 210 |
| 161 #endif // INCLUDE_DART_DEBUGGER_API_H_ | 211 #endif // INCLUDE_DART_DEBUGGER_API_H_ |
| OLD | NEW |