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

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

Issue 24210003: Never return a Dart_Handle on a dart::Class from the embedding API. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: remove Dart_IsClass from header. remove demo assert Created 7 years, 3 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 | « runtime/include/dart_api.h ('k') | runtime/include/dart_mirrors_api.h » ('j') | no next file with comments »
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 499 matching lines...) Expand 10 before | Expand all | Expand 10 after
510 * 510 *
511 * Requires there to be a current isolate. 511 * Requires there to be a current isolate.
512 * 512 *
513 * \return True if no error occurs. 513 * \return True if no error occurs.
514 */ 514 */
515 DART_EXPORT Dart_Handle Dart_GetObjClassId(Dart_Handle object, 515 DART_EXPORT Dart_Handle Dart_GetObjClassId(Dart_Handle object,
516 intptr_t* class_id); 516 intptr_t* class_id);
517 517
518 518
519 /** 519 /**
520 * Returns the superclass of the given class \cls.
521 *
522 * Requires there to be a current isolate.
523 *
524 * \return A handle to the class object.
525 */
526 DART_EXPORT Dart_Handle Dart_GetSuperclass(Dart_Handle cls);
527
528
529 /**
530 * Returns the supertype of the given instantiated type \cls. 520 * Returns the supertype of the given instantiated type \cls.
531 * 521 *
532 * Requires there to be a current isolate. 522 * Requires there to be a current isolate.
533 * 523 *
534 * \return A handle to the type object. 524 * \return A handle to the type object.
535 */ 525 */
536 DART_EXPORT Dart_Handle Dart_GetSupertype(Dart_Handle type); 526 DART_EXPORT Dart_Handle Dart_GetSupertype(Dart_Handle type);
537 527
538 528
539 /** 529 /**
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
676 * \param request A REST-like string, which uses '/' to separate 666 * \param request A REST-like string, which uses '/' to separate
677 * parameters. The first parameter is always the status type. 667 * parameters. The first parameter is always the status type.
678 * 668 *
679 * \return The requested status as a JSON formatted string, with the 669 * \return The requested status as a JSON formatted string, with the
680 * contents defined by the status plug-in. The caller is responsible 670 * contents defined by the status plug-in. The caller is responsible
681 * for freeing this string. 671 * for freeing this string.
682 */ 672 */
683 DART_EXPORT char* Dart_GetVmStatus(const char* request); 673 DART_EXPORT char* Dart_GetVmStatus(const char* request);
684 674
685 #endif // INCLUDE_DART_DEBUGGER_API_H_ 675 #endif // INCLUDE_DART_DEBUGGER_API_H_
OLDNEW
« no previous file with comments | « runtime/include/dart_api.h ('k') | runtime/include/dart_mirrors_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698