Index: src/debug/debug.h |
diff --git a/src/debug/debug.h b/src/debug/debug.h |
index 6eb8b58623f71a63d67678f2952fa9d52829064b..ffe54ef9260a5efb4105dd5173639225e9ab30e9 100644 |
--- a/src/debug/debug.h |
+++ b/src/debug/debug.h |
@@ -470,6 +470,8 @@ class Debug { |
int NextAsyncTaskId(Handle<JSObject> promise); |
+ void SetAsyncTaskListener(debug::AsyncTaskListener listener, void* data); |
+ |
// Returns whether the operation succeeded. Compilation can only be triggered |
// if a valid closure is passed as the second argument, otherwise the shared |
// function needs to be compiled already. |
@@ -666,6 +668,9 @@ class Debug { |
v8::Debug::MessageHandler message_handler_; |
+ debug::AsyncTaskListener async_task_listener_ = nullptr; |
+ void* async_task_listener_data_ = nullptr; |
+ |
static const int kQueueInitialSize = 4; |
base::Semaphore command_received_; // Signaled for each command received. |
LockingCommandMessageQueue command_queue_; |