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

Side by Side Diff: runtime/include/dart_debugger_api.h

Issue 10447045: Introduce library ids and info in the wire protocol (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 7 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
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 26 matching lines...) Expand all
37 37
38 /** 38 /**
39 * Returns a cached object given the \obj_id. 39 * Returns a cached object given the \obj_id.
40 * 40 *
41 * Requires there to be a current isolate. 41 * Requires there to be a current isolate.
42 */ 42 */
43 DART_EXPORT Dart_Handle Dart_GetCachedObject(intptr_t obj_id); 43 DART_EXPORT Dart_Handle Dart_GetCachedObject(intptr_t obj_id);
44 44
45 45
46 /** 46 /**
47 * DEPRECATED -- use Gart_GetLibraryIds instead.
48 *
47 * Returns a list of urls (strings) of all the libraries loaded in the 49 * Returns a list of urls (strings) of all the libraries loaded in the
48 * current isolate. 50 * current isolate.
49 * 51 *
50 * Requires there to be a current isolate. 52 * Requires there to be a current isolate.
51 * 53 *
52 * \return A handle to a list of string handles. 54 * \return A handle to a list of string handles.
53 */ 55 */
54 DART_EXPORT Dart_Handle Dart_GetLibraryURLs(); 56 DART_EXPORT Dart_Handle Dart_GetLibraryURLs();
55 57
56 58
57 /** 59 /**
60 * Returns a list of ids (integers) of all the libraries loaded in the
61 * current isolate.
62 *
63 * Requires there to be a current isolate.
64 *
65 * \return A handle to a list of library ids.
66 */
67 DART_EXPORT Dart_Handle Dart_GetLibraryIds();
68
69
70 /**
58 * Returns a list of urls (strings) of all the scripts loaded in the 71 * Returns a list of urls (strings) of all the scripts loaded in the
59 * given library. 72 * given library.
60 * 73 *
61 * Requires there to be a current isolate. 74 * Requires there to be a current isolate.
62 * 75 *
63 * \return A handle to a list of string handles. 76 * \return A handle to a list of string handles.
64 */ 77 */
65 DART_EXPORT Dart_Handle Dart_GetScriptURLs(Dart_Handle library_url); 78 DART_EXPORT Dart_Handle Dart_GetScriptURLs(Dart_Handle library_url);
66 79
67 80
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 * \param static_fields If non-null, receives an array containing field 351 * \param static_fields If non-null, receives an array containing field
339 * names and values of static fields of the class. Names are 352 * names and values of static fields of the class. Names are
340 * at array offsets 2*n, values at offset 2*n+1. 353 * at array offsets 2*n, values at offset 2*n+1.
341 * 354 *
342 * Requires there to be a current isolate. 355 * Requires there to be a current isolate.
343 * 356 *
344 * \return A handle to the value true if no error occurs. 357 * \return A handle to the value true if no error occurs.
345 */ 358 */
346 DART_EXPORT Dart_Handle Dart_GetClassInfo(intptr_t class_id, 359 DART_EXPORT Dart_Handle Dart_GetClassInfo(intptr_t class_id,
347 Dart_Handle* class_name, 360 Dart_Handle* class_name,
348 Dart_Handle* library, 361 intptr_t* library_id,
349 intptr_t* super_class_id, 362 intptr_t* super_class_id,
350 Dart_Handle* static_fields); 363 Dart_Handle* static_fields);
351 364
352 365
353 /** 366 /**
354 * Returns an array containing all instance field names and values of 367 * Returns an array containing all instance field names and values of
355 * the given \object. 368 * the given \object.
356 * 369 *
357 * Requires there to be a current isolate. 370 * Requires there to be a current isolate.
358 * 371 *
(...skipping 14 matching lines...) Expand all
373 * 386 *
374 * \return A handle to an array containing field names and 387 * \return A handle to an array containing field names and
375 * corresponding field values. The array is empty if the class has 388 * corresponding field values. The array is empty if the class has
376 * no static fields. If non-empty, field names are at array offsets 2*n, 389 * no static fields. If non-empty, field names are at array offsets 2*n,
377 * values at offset 2*n+1. Field values may also be a handle to an 390 * values at offset 2*n+1. Field values may also be a handle to an
378 * error object if an error was encountered evaluating the field. 391 * error object if an error was encountered evaluating the field.
379 */ 392 */
380 DART_EXPORT Dart_Handle Dart_GetStaticFields(Dart_Handle cls); 393 DART_EXPORT Dart_Handle Dart_GetStaticFields(Dart_Handle cls);
381 394
382 395
396 /**
397 * Returns an array containing all variable names and values of
398 * the given library \library_id.
399 *
400 * Requires there to be a current isolate.
401 *
402 * \return A handle to an array containing variable names and
403 * corresponding values. The array is empty if the library has
404 * no variables. If non-empty, variable names are at array offsets 2*n,
405 * values at offset 2*n+1. Variable values may also be a handle to an
406 * error object if an error was encountered evaluating the value.
407 */
408 DART_EXPORT Dart_Handle Dart_GetLibraryFields(intptr_t library_id);
409
410
411 /**
412 * Returns an array containing all imported libraries of
413 * the given library \library_id.
414 *
415 * Requires there to be a current isolate.
416 *
417 * \return A handle to an array containing prefix names and
418 * library ids. The array is empty if the library has
419 * no imports. If non-empty, import prefixes are at array offsets 2*n,
420 * corresponding library ids at offset 2*n+1. Prefixes may be null
421 * in which case the respective library is imported without a prefix.
siva 2012/05/29 18:07:53 which indicates the respective library has been im
hausner 2012/05/29 19:48:18 Done.
422 */
423 DART_EXPORT Dart_Handle Dart_GetLibraryImports(intptr_t library_id);
424
425
426 /**
427 * Returns the url of the library \library_id.
428 *
429 * Requires there to be a current isolate.
430 *
431 * \return A string handle containing the URL of the library.
432 */
433 DART_EXPORT Dart_Handle Dart_GetLibraryURL(intptr_t library_id);
434
435
383 #endif // INCLUDE_DART_DEBUGGER_API_H_ 436 #endif // INCLUDE_DART_DEBUGGER_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698