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

Unified Diff: include/dart_debugger_api.h

Issue 11026011: Add isolate event handler setup in order to be able to propagate isolate (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « bin/main.cc ('k') | vm/code_generator.cc » ('j') | vm/debugger.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/dart_debugger_api.h
===================================================================
--- include/dart_debugger_api.h (revision 13083)
+++ include/dart_debugger_api.h (working copy)
@@ -26,7 +26,15 @@
Dart_Handle exception_object,
Dart_StackTrace stack_trace);
+typedef enum {
+ kCreated = 0,
+ kInterrupted,
+ kShutdown,
+} Dart_IsolateEvent;
+typedef void Dart_IsolateEventHandler(Dart_Isolate isolate,
+ Dart_IsolateEvent kind);
+
/**
* Caches a given \object and returns an object id. The object id is only
* valid while the VM is paused. The cache is invalidated when the VM
@@ -287,6 +295,14 @@
DART_EXPORT void Dart_SetExceptionThrownHandler(
Dart_ExceptionThrownHandler handler);
+/**
+ * Installs a callback function that gets called by the VM when
+ * an isolate event happens, e.g:
+ * - creation of a new isolate
+ * - shutdown of an isolate
+ * - interruption of an isolate
+ */
+DART_EXPORT void Dart_SetIsolateEventHandler(Dart_IsolateEventHandler handler);
// On which exceptions to pause.
typedef enum {
« no previous file with comments | « bin/main.cc ('k') | vm/code_generator.cc » ('j') | vm/debugger.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698