| 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 2475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2486 | 2486 |
| 2487 v8::Local<v8::Value> EventDetailsImpl::GetCallbackData() const { | 2487 v8::Local<v8::Value> EventDetailsImpl::GetCallbackData() const { |
| 2488 return v8::Utils::ToLocal(callback_data_); | 2488 return v8::Utils::ToLocal(callback_data_); |
| 2489 } | 2489 } |
| 2490 | 2490 |
| 2491 | 2491 |
| 2492 v8::Debug::ClientData* EventDetailsImpl::GetClientData() const { | 2492 v8::Debug::ClientData* EventDetailsImpl::GetClientData() const { |
| 2493 return client_data_; | 2493 return client_data_; |
| 2494 } | 2494 } |
| 2495 | 2495 |
| 2496 v8::Isolate* EventDetailsImpl::GetIsolate() const { |
| 2497 return reinterpret_cast<v8::Isolate*>(exec_state_->GetIsolate()); |
| 2498 } |
| 2496 | 2499 |
| 2497 CommandMessage::CommandMessage() : text_(Vector<uint16_t>::empty()), | 2500 CommandMessage::CommandMessage() : text_(Vector<uint16_t>::empty()), |
| 2498 client_data_(NULL) { | 2501 client_data_(NULL) { |
| 2499 } | 2502 } |
| 2500 | 2503 |
| 2501 | 2504 |
| 2502 CommandMessage::CommandMessage(const Vector<uint16_t>& text, | 2505 CommandMessage::CommandMessage(const Vector<uint16_t>& text, |
| 2503 v8::Debug::ClientData* data) | 2506 v8::Debug::ClientData* data) |
| 2504 : text_(text), | 2507 : text_(text), |
| 2505 client_data_(data) { | 2508 client_data_(data) { |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2587 } | 2590 } |
| 2588 | 2591 |
| 2589 | 2592 |
| 2590 void LockingCommandMessageQueue::Clear() { | 2593 void LockingCommandMessageQueue::Clear() { |
| 2591 base::LockGuard<base::Mutex> lock_guard(&mutex_); | 2594 base::LockGuard<base::Mutex> lock_guard(&mutex_); |
| 2592 queue_.Clear(); | 2595 queue_.Clear(); |
| 2593 } | 2596 } |
| 2594 | 2597 |
| 2595 } // namespace internal | 2598 } // namespace internal |
| 2596 } // namespace v8 | 2599 } // namespace v8 |
| OLD | NEW |