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

Unified Diff: src/api.cc

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-debug.h ('k') | src/debug.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/api.cc
diff --git a/src/api.cc b/src/api.cc
index d094dbd55c4cf9f20e4ee3caf48bf846333152d5..6fe20e5ed6dc9ad111eba775847f74f78a159180 100644
--- a/src/api.cc
+++ b/src/api.cc
@@ -7014,6 +7014,12 @@ void Debug::DebugBreakForCommand(Isolate* isolate, ClientData* data) {
}
+void Debug::BreakAndRun(Isolate* isolate, Task* task) {
+ i::Isolate* internal_isolate = reinterpret_cast<i::Isolate*>(isolate);
+ internal_isolate->debug()->EnqueueEmbedderTask(task);
+}
+
+
void Debug::SetMessageHandler(v8::Debug::MessageHandler handler) {
i::Isolate* isolate = i::Isolate::Current();
ENTER_V8(isolate);
@@ -7081,7 +7087,9 @@ Local<Value> Debug::GetMirror(v8::Handle<v8::Value> obj) {
void Debug::ProcessDebugMessages() {
- i::Isolate::Current()->debug()->ProcessDebugMessages(true);
+ i::Debug* isolate_debug = i::Isolate::Current()->debug();
+ isolate_debug->ProcessEmbedderTasks();
+ isolate_debug->ProcessDebugMessages(true);
}
« no previous file with comments | « include/v8-debug.h ('k') | src/debug.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698