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

Unified Diff: include/v8-debug.h

Issue 812583003: Support tasks injection into a running VM. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressing comments. Created 6 years 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 | « include/v8.h ('k') | src/api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/v8-debug.h
diff --git a/include/v8-debug.h b/include/v8-debug.h
index 6abf4e095bccadacdb6ef3fa4a3fc06fcbc76966..0505a01f921dd732bac7c8f3c936336fe47c93cd 100644
--- a/include/v8-debug.h
+++ b/include/v8-debug.h
@@ -177,6 +177,13 @@ class V8_EXPORT Debug {
// stops.
static void DebugBreakForCommand(Isolate* isolate, ClientData* data);
+ // 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 executed at most once and then gets deleted.
+ // If the task does not happen to execute for some reason, the task is
+ // deleted on the Isolate destruction.
+ static void BreakAndRun(Isolate* isolate, Task* task);
+
// Message based interface. The message protocol is JSON.
static void SetMessageHandler(MessageHandler handler);
« no previous file with comments | « include/v8.h ('k') | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698