| Index: src/debug.cc
|
| diff --git a/src/debug.cc b/src/debug.cc
|
| index 3ecf8bada73ee24de75b07fadabd801c075b0299..4badcba8c68e8618525e92a8424c359fe6abe10a 100644
|
| --- a/src/debug.cc
|
| +++ b/src/debug.cc
|
| @@ -2675,10 +2675,8 @@ Debugger::Debugger(Isolate* isolate)
|
| force_debugger_active_(false),
|
| message_handler_(NULL),
|
| debugger_unload_pending_(false),
|
| - host_dispatch_handler_(NULL),
|
| debug_message_dispatch_handler_(NULL),
|
| message_dispatch_helper_thread_(NULL),
|
| - host_dispatch_period_(TimeDelta::FromMilliseconds(100)),
|
| agent_(NULL),
|
| command_queue_(isolate->logger(), kQueueInitialSize),
|
| command_received_(0),
|
| @@ -3150,17 +3148,7 @@ void Debugger::NotifyMessageHandler(v8::DebugEvent event,
|
| // Process requests from the debugger.
|
| while (true) {
|
| // Wait for new command in the queue.
|
| - if (Debugger::host_dispatch_handler_) {
|
| - // In case there is a host dispatch - do periodic dispatches.
|
| - if (!command_received_.WaitFor(host_dispatch_period_)) {
|
| - // Timout expired, do the dispatch.
|
| - Debugger::host_dispatch_handler_();
|
| - continue;
|
| - }
|
| - } else {
|
| - // In case there is no host dispatch - just wait.
|
| - command_received_.Wait();
|
| - }
|
| + command_received_.Wait();
|
|
|
| // Get the command from the queue.
|
| CommandMessage command = command_queue_.Get();
|
| @@ -3302,13 +3290,6 @@ void Debugger::ListenersChanged() {
|
| }
|
|
|
|
|
| -void Debugger::SetHostDispatchHandler(v8::Debug::HostDispatchHandler handler,
|
| - TimeDelta period) {
|
| - host_dispatch_handler_ = handler;
|
| - host_dispatch_period_ = period;
|
| -}
|
| -
|
| -
|
| void Debugger::SetDebugMessageDispatchHandler(
|
| v8::Debug::DebugMessageDispatchHandler handler, bool provide_locker) {
|
| LockGuard<Mutex> lock_guard(&dispatch_handler_access_);
|
|
|