Chromium Code Reviews| Index: runtime/include/dart_debugger_api.h |
| =================================================================== |
| --- runtime/include/dart_debugger_api.h (revision 3572) |
| +++ runtime/include/dart_debugger_api.h (working copy) |
| @@ -158,4 +158,52 @@ |
| intptr_t* line_number); |
| +/** |
| + * Returns the class object of the given \object. |
| + * |
| + * Requires there to be a current isolate. |
| + * |
| + * \return A handle to the class object. |
| + */ |
| +DART_EXPORT Dart_Handle Dart_GetObjClass(Dart_Handle object); |
| + |
| + |
| +/** |
| + * Returns the superclass of the given class \cls. |
| + * |
| + * Requires there to be a current isolate. |
| + * |
| + * \return A handle to the class object. |
| + */ |
| +DART_EXPORT Dart_Handle Dart_GetSuperclass(Dart_Handle cls); |
|
siva
2012/01/26 21:34:08
Where do you intend to use these two class methods
hausner
2012/01/27 17:19:30
I'm pretty sure a debugger would like to know what
|
| + |
| + |
| +/** |
| + * Returns an array containing all instance field names and values of |
| + * the given \object. |
| + * |
| + * Requires there to be a current isolate. |
| + * |
| + * \return A handle to an array containing field names and |
| + * corresponding field values. The array is empty if the object has |
| + * no fields. If non-empty, field names are at array offsets 2*n, |
| + * values at offset 2*n+1. |
| + */ |
| +DART_EXPORT Dart_Handle Dart_GetInstanceFields(Dart_Handle object); |
| + |
| + |
| +/** |
| + * Returns an array containing all static field names and values of |
| + * the given class \cls. |
| + * |
| + * Requires there to be a current isolate. |
| + * |
| + * \return A handle to an array containing field names and |
| + * corresponding field values. The array is empty if the class has |
| + * no static fields. If non-empty, field names are at array offsets 2*n, |
| + * values at offset 2*n+1. |
| + */ |
| +DART_EXPORT Dart_Handle Dart_GetStaticFields(Dart_Handle cls); |
| + |
| + |
| #endif // INCLUDE_DART_DEBUGGER_API_H_ |