| OLD | NEW | 
|     1 // Copyright 2012 the V8 project authors. All rights reserved. |     1 // Copyright 2012 the V8 project authors. All rights reserved. | 
|     2 // Use of this source code is governed by a BSD-style license that can be |     2 // Use of this source code is governed by a BSD-style license that can be | 
|     3 // found in the LICENSE file. |     3 // found in the LICENSE file. | 
|     4  |     4  | 
|     5 #include "src/debug/debug.h" |     5 #include "src/debug/debug.h" | 
|     6  |     6  | 
|     7 #include "src/api.h" |     7 #include "src/api.h" | 
|     8 #include "src/arguments.h" |     8 #include "src/arguments.h" | 
|     9 #include "src/bootstrapper.h" |     9 #include "src/bootstrapper.h" | 
|    10 #include "src/code-stubs.h" |    10 #include "src/code-stubs.h" | 
| (...skipping 2374 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  2385   return event_; |  2385   return event_; | 
|  2386 } |  2386 } | 
|  2387  |  2387  | 
|  2388  |  2388  | 
|  2389 bool MessageImpl::WillStartRunning() const { |  2389 bool MessageImpl::WillStartRunning() const { | 
|  2390   return running_; |  2390   return running_; | 
|  2391 } |  2391 } | 
|  2392  |  2392  | 
|  2393  |  2393  | 
|  2394 v8::Local<v8::Object> MessageImpl::GetExecutionState() const { |  2394 v8::Local<v8::Object> MessageImpl::GetExecutionState() const { | 
|  2395   return v8::Utils::ToLocal(exec_state_); |  2395   return v8::Utils::ReceiverToLocal(exec_state_); | 
|  2396 } |  2396 } | 
|  2397  |  2397  | 
|  2398  |  2398  | 
|  2399 v8::Isolate* MessageImpl::GetIsolate() const { |  2399 v8::Isolate* MessageImpl::GetIsolate() const { | 
|  2400   return reinterpret_cast<v8::Isolate*>(exec_state_->GetIsolate()); |  2400   return reinterpret_cast<v8::Isolate*>(exec_state_->GetIsolate()); | 
|  2401 } |  2401 } | 
|  2402  |  2402  | 
|  2403  |  2403  | 
|  2404 v8::Local<v8::Object> MessageImpl::GetEventData() const { |  2404 v8::Local<v8::Object> MessageImpl::GetEventData() const { | 
|  2405   return v8::Utils::ToLocal(event_data_); |  2405   return v8::Utils::ReceiverToLocal(event_data_); | 
|  2406 } |  2406 } | 
|  2407  |  2407  | 
|  2408  |  2408  | 
|  2409 v8::Local<v8::String> MessageImpl::GetJSON() const { |  2409 v8::Local<v8::String> MessageImpl::GetJSON() const { | 
|  2410   Isolate* isolate = event_data_->GetIsolate(); |  2410   Isolate* isolate = event_data_->GetIsolate(); | 
|  2411   v8::EscapableHandleScope scope(reinterpret_cast<v8::Isolate*>(isolate)); |  2411   v8::EscapableHandleScope scope(reinterpret_cast<v8::Isolate*>(isolate)); | 
|  2412  |  2412  | 
|  2413   if (IsEvent()) { |  2413   if (IsEvent()) { | 
|  2414     // Call toJSONProtocol on the debug event object. |  2414     // Call toJSONProtocol on the debug event object. | 
|  2415     Handle<Object> fun = Object::GetProperty( |  2415     Handle<Object> fun = Object::GetProperty( | 
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  2456       callback_data_(callback_data), |  2456       callback_data_(callback_data), | 
|  2457       client_data_(client_data) {} |  2457       client_data_(client_data) {} | 
|  2458  |  2458  | 
|  2459  |  2459  | 
|  2460 DebugEvent EventDetailsImpl::GetEvent() const { |  2460 DebugEvent EventDetailsImpl::GetEvent() const { | 
|  2461   return event_; |  2461   return event_; | 
|  2462 } |  2462 } | 
|  2463  |  2463  | 
|  2464  |  2464  | 
|  2465 v8::Local<v8::Object> EventDetailsImpl::GetExecutionState() const { |  2465 v8::Local<v8::Object> EventDetailsImpl::GetExecutionState() const { | 
|  2466   return v8::Utils::ToLocal(exec_state_); |  2466   return v8::Utils::ReceiverToLocal(exec_state_); | 
|  2467 } |  2467 } | 
|  2468  |  2468  | 
|  2469  |  2469  | 
|  2470 v8::Local<v8::Object> EventDetailsImpl::GetEventData() const { |  2470 v8::Local<v8::Object> EventDetailsImpl::GetEventData() const { | 
|  2471   return v8::Utils::ToLocal(event_data_); |  2471   return v8::Utils::ReceiverToLocal(event_data_); | 
|  2472 } |  2472 } | 
|  2473  |  2473  | 
|  2474  |  2474  | 
|  2475 v8::Local<v8::Context> EventDetailsImpl::GetEventContext() const { |  2475 v8::Local<v8::Context> EventDetailsImpl::GetEventContext() const { | 
|  2476   return GetDebugEventContext(exec_state_->GetIsolate()); |  2476   return GetDebugEventContext(exec_state_->GetIsolate()); | 
|  2477 } |  2477 } | 
|  2478  |  2478  | 
|  2479  |  2479  | 
|  2480 v8::Local<v8::Value> EventDetailsImpl::GetCallbackData() const { |  2480 v8::Local<v8::Value> EventDetailsImpl::GetCallbackData() const { | 
|  2481   return v8::Utils::ToLocal(callback_data_); |  2481   return v8::Utils::ToLocal(callback_data_); | 
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  2580 } |  2580 } | 
|  2581  |  2581  | 
|  2582  |  2582  | 
|  2583 void LockingCommandMessageQueue::Clear() { |  2583 void LockingCommandMessageQueue::Clear() { | 
|  2584   base::LockGuard<base::Mutex> lock_guard(&mutex_); |  2584   base::LockGuard<base::Mutex> lock_guard(&mutex_); | 
|  2585   queue_.Clear(); |  2585   queue_.Clear(); | 
|  2586 } |  2586 } | 
|  2587  |  2587  | 
|  2588 }  // namespace internal |  2588 }  // namespace internal | 
|  2589 }  // namespace v8 |  2589 }  // namespace v8 | 
| OLD | NEW |