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

Side by Side Diff: src/debug.cc

Issue 23904012: thread isolate for DebugMessage (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « src/debug.h ('k') | src/debug-agent.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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 3606 matching lines...) Expand 10 before | Expand all | Expand 10 after
3617 bool MessageImpl::WillStartRunning() const { 3617 bool MessageImpl::WillStartRunning() const {
3618 return running_; 3618 return running_;
3619 } 3619 }
3620 3620
3621 3621
3622 v8::Handle<v8::Object> MessageImpl::GetExecutionState() const { 3622 v8::Handle<v8::Object> MessageImpl::GetExecutionState() const {
3623 return v8::Utils::ToLocal(exec_state_); 3623 return v8::Utils::ToLocal(exec_state_);
3624 } 3624 }
3625 3625
3626 3626
3627 v8::Isolate* MessageImpl::GetIsolate() const {
3628 return reinterpret_cast<v8::Isolate*>(exec_state_->GetIsolate());
3629 }
3630
3631
3627 v8::Handle<v8::Object> MessageImpl::GetEventData() const { 3632 v8::Handle<v8::Object> MessageImpl::GetEventData() const {
3628 return v8::Utils::ToLocal(event_data_); 3633 return v8::Utils::ToLocal(event_data_);
3629 } 3634 }
3630 3635
3631 3636
3632 v8::Handle<v8::String> MessageImpl::GetJSON() const { 3637 v8::Handle<v8::String> MessageImpl::GetJSON() const {
3633 v8::HandleScope scope( 3638 v8::HandleScope scope(
3634 reinterpret_cast<v8::Isolate*>(event_data_->GetIsolate())); 3639 reinterpret_cast<v8::Isolate*>(event_data_->GetIsolate()));
3635 3640
3636 if (IsEvent()) { 3641 if (IsEvent()) {
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
3844 { 3849 {
3845 Locker locker(reinterpret_cast<v8::Isolate*>(isolate_)); 3850 Locker locker(reinterpret_cast<v8::Isolate*>(isolate_));
3846 isolate_->debugger()->CallMessageDispatchHandler(); 3851 isolate_->debugger()->CallMessageDispatchHandler();
3847 } 3852 }
3848 } 3853 }
3849 } 3854 }
3850 3855
3851 #endif // ENABLE_DEBUGGER_SUPPORT 3856 #endif // ENABLE_DEBUGGER_SUPPORT
3852 3857
3853 } } // namespace v8::internal 3858 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/debug.h ('k') | src/debug-agent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698