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

Unified Diff: include/dart_debugger_api.h

Issue 11052006: 1. Create a port when a debugger object is created for an isolate, use this (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 2 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 | « bin/dbg_message.cc ('k') | vm/debugger.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/dart_debugger_api.h
===================================================================
--- include/dart_debugger_api.h (revision 13206)
+++ include/dart_debugger_api.h (working copy)
@@ -13,6 +13,18 @@
typedef struct _Dart_ActivationFrame* Dart_ActivationFrame;
+/**
+ * An id used to uniquely represent an Isolate in the debugger wire protocol
+ * messages.
+ */
+typedef Dart_Port Dart_IsolateId;
+
+/**
+ * ILLEGAL_ISOLATE_ID is a number guaranteed never to be associated with a
+ * valid isolate.
+ */
+#define ILLEGAL_ISOLATE_ID ILLEGAL_PORT
+
typedef void Dart_BreakpointHandler(
Dart_Breakpoint breakpoint,
Dart_StackTrace stack_trace);
@@ -32,7 +44,7 @@
kShutdown,
} Dart_IsolateEvent;
-typedef void Dart_IsolateEventHandler(Dart_Isolate isolate,
+typedef void Dart_IsolateEventHandler(Dart_IsolateId isolate_id,
Dart_IsolateEvent kind);
/**
@@ -543,4 +555,12 @@
DART_EXPORT Dart_Handle Dart_GetLibraryURL(intptr_t library_id);
+/**
+* Returns the isolate object corresponding to the isolate id.
+*
+* \return The Dart_Isolate object corresponding to the isolate id.
+* If the specified id is invalid NULL is returned.
+*/
+DART_EXPORT Dart_Isolate Dart_GetIsolate(Dart_IsolateId isolate_id);
+
#endif // INCLUDE_DART_DEBUGGER_API_H_
« no previous file with comments | « bin/dbg_message.cc ('k') | vm/debugger.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698