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

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

Issue 1140263005: Revert "Hide Isolate pointer from embedder" (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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
« no previous file with comments | « runtime/include/dart_api.h ('k') | runtime/include/dart_native_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;
11 11
12 typedef struct _Dart_StackTrace* Dart_StackTrace; 12 typedef struct _Dart_StackTrace* Dart_StackTrace;
13 13
14 typedef struct _Dart_ActivationFrame* Dart_ActivationFrame; 14 typedef struct _Dart_ActivationFrame* Dart_ActivationFrame;
15 15
16 /** 16 /**
17 * An id used to uniquely represent an Isolate in the debugger wire protocol 17 * An id used to uniquely represent an Isolate in the debugger wire protocol
18 * messages. 18 * messages.
19 */ 19 */
20 typedef Dart_Port Dart_IsolateId; 20 typedef Dart_Port Dart_IsolateId;
21 21
22 /** 22 /**
23 * DART_ILLEGAL_ISOLATE_ID is a number guaranteed never to be associated with a 23 * ILLEGAL_ISOLATE_ID is a number guaranteed never to be associated with a
24 * valid isolate. 24 * valid isolate.
25 */ 25 */
26 #define DART_ILLEGAL_ISOLATE_ID DART_ILLEGAL_PORT 26 #define ILLEGAL_ISOLATE_ID ILLEGAL_PORT
27 27
28 28
29 /** 29 /**
30 * Null value for breakpoint id. Guaranteed never to be associated 30 * Null value for breakpoint id. Guaranteed never to be associated
31 * with a valid breakpoint. 31 * with a valid breakpoint.
32 */ 32 */
33 #define ILLEGAL_BREAKPOINT_ID 0 33 #define ILLEGAL_BREAKPOINT_ID 0
34 34
35 35
36 typedef void Dart_ExceptionThrownHandler(Dart_IsolateId isolate_id, 36 typedef void Dart_ExceptionThrownHandler(Dart_IsolateId isolate_id,
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 * values at offset 2*n+1. 470 * values at offset 2*n+1.
471 */ 471 */
472 DART_EXPORT Dart_Handle Dart_GetLocalVariables( 472 DART_EXPORT Dart_Handle Dart_GetLocalVariables(
473 Dart_ActivationFrame activation_frame); 473 Dart_ActivationFrame activation_frame);
474 474
475 475
476 /** 476 /**
477 * Returns origin class of a function. 477 * Returns origin class of a function.
478 * 478 *
479 * Requires there to be a current isolate. 479 * Requires there to be a current isolate.
480 * 480 *
481 * \return Returns the class id (a handle to an integer) of the class in 481 * \return Returns the class id (a handle to an integer) of the class in
482 * which \function is defined. Returns a null handle if \function is defined 482 * which \function is defined. Returns a null handle if \function is defined
483 * at the top level. Returns an error object otherwise. 483 * at the top level. Returns an error object otherwise.
484 */ 484 */
485 DART_EXPORT Dart_Handle Dart_GetFunctionOrigin(Dart_Handle function); 485 DART_EXPORT Dart_Handle Dart_GetFunctionOrigin(Dart_Handle function);
486 486
487 487
488 /** 488 /**
489 * Returns an array containing all the global variable names and values of 489 * Returns an array containing all the global variable names and values of
490 * the library with given \library_id. 490 * the library with given \library_id.
(...skipping 22 matching lines...) Expand all
513 * 513 *
514 * Requires there to be a current isolate. 514 * Requires there to be a current isolate.
515 * 515 *
516 * The expression is evaluated in the context of \target. 516 * The expression is evaluated in the context of \target.
517 * If \target is a Dart object, the expression is evaluated as if 517 * If \target is a Dart object, the expression is evaluated as if
518 * it were an instance method of the class of the object. 518 * it were an instance method of the class of the object.
519 * If \target is a Class, the expression is evaluated as if it 519 * If \target is a Class, the expression is evaluated as if it
520 * were a static method of that class. 520 * were a static method of that class.
521 * If \target is a Library, the expression is evaluated as if it 521 * If \target is a Library, the expression is evaluated as if it
522 * were a top-level function in that library. 522 * were a top-level function in that library.
523 * 523 *
524 * \return A handle to the computed value, or an error object if 524 * \return A handle to the computed value, or an error object if
525 * the compilation of the expression fails, or if the evaluation throws 525 * the compilation of the expression fails, or if the evaluation throws
526 * an error. 526 * an error.
527 */ 527 */
528 DART_EXPORT Dart_Handle Dart_EvaluateExpr(Dart_Handle target, 528 DART_EXPORT Dart_Handle Dart_EvaluateExpr(Dart_Handle target,
529 Dart_Handle expr); 529 Dart_Handle expr);
530 530
531 531
532 /** 532 /**
533 * Returns the class of the given \object. 533 * Returns the class of the given \object.
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
715 715
716 716
717 /** 717 /**
718 * Returns the isolate id for an isolate. 718 * Returns the isolate id for an isolate.
719 * 719 *
720 * \return The Dart_IsolateId value corresponding to the isolate. 720 * \return The Dart_IsolateId value corresponding to the isolate.
721 */ 721 */
722 DART_EXPORT Dart_IsolateId Dart_GetIsolateId(Dart_Isolate isolate); 722 DART_EXPORT Dart_IsolateId Dart_GetIsolateId(Dart_Isolate isolate);
723 723
724 #endif // INCLUDE_DART_DEBUGGER_API_H_ 724 #endif // INCLUDE_DART_DEBUGGER_API_H_
OLDNEW
« no previous file with comments | « runtime/include/dart_api.h ('k') | runtime/include/dart_native_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698