Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(568)

Unified Diff: runtime/include/dart_debugger_api.h

Issue 9288071: Add debugger functions to inspect objects and classes (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Add debugger functions to inspect objects and classes Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/vm/debugger.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/include/dart_debugger_api.h
===================================================================
--- runtime/include/dart_debugger_api.h (revision 3633)
+++ runtime/include/dart_debugger_api.h (working copy)
@@ -158,4 +158,54 @@
intptr_t* line_number);
+/**
+ * Returns the class 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);
+
+
+/**
+ * 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. Field values may also be a handle to an
+ * error object if an error was encountered evaluating the field.
+ */
+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. Field values may also be a handle to an
+ * error object if an error was encountered evaluating the field.
+ */
+DART_EXPORT Dart_Handle Dart_GetStaticFields(Dart_Handle cls);
+
+
#endif // INCLUDE_DART_DEBUGGER_API_H_
« no previous file with comments | « no previous file | runtime/vm/debugger.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698