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

Side by Side Diff: src/debug/debug.cc

Issue 2040853003: Add a convenience method to get the debugged context (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 months 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 unified diff | Download patch
« no previous file with comments | « src/debug/debug.h ('k') | test/cctest/test-debug.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/debug/debug.h ('k') | test/cctest/test-debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698