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

Side by Side 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: 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | runtime/vm/debugger.h » ('j') | runtime/vm/debugger.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 object 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);
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
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.
191 */
192 DART_EXPORT Dart_Handle Dart_GetInstanceFields(Dart_Handle object);
193
194
195 /**
196 * Returns an array containing all static field names and values of
197 * the given class \cls.
198 *
199 * Requires there to be a current isolate.
200 *
201 * \return A handle to an array containing field names and
202 * corresponding field values. The array is empty if the class has
203 * no static fields. If non-empty, field names are at array offsets 2*n,
204 * values at offset 2*n+1.
205 */
206 DART_EXPORT Dart_Handle Dart_GetStaticFields(Dart_Handle cls);
207
208
161 #endif // INCLUDE_DART_DEBUGGER_API_H_ 209 #endif // INCLUDE_DART_DEBUGGER_API_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/debugger.h » ('j') | runtime/vm/debugger.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698