Index: include/v8-debug.h |
diff --git a/include/v8-debug.h b/include/v8-debug.h |
index 6abf4e095bccadacdb6ef3fa4a3fc06fcbc76966..c90cacf99e351e1f2d843f91759ae18f15451a3b 100644 |
--- a/include/v8-debug.h |
+++ b/include/v8-debug.h |
@@ -177,6 +177,17 @@ class V8_EXPORT Debug { |
// stops. |
static void DebugBreakForCommand(Isolate* isolate, ClientData* data); |
+ class Task { |
+ public: |
+ virtual void Run() = 0; |
+ virtual ~Task() {} |
+ }; |
+ |
+ // Break execution of JavaScript in the given isolate (this method |
+ // can be invoked from a non-VM thread) and execute the given task on the |
+ // VM thread. The task is deleted after execution. |
yurys
2014/12/17 14:25:02
Please update the comment to reflect that the task
alph
2014/12/17 15:05:46
Done.
|
+ static void BreakAndRun(Isolate* isolate, Task* task); |
+ |
// Message based interface. The message protocol is JSON. |
static void SetMessageHandler(MessageHandler handler); |