Revision: 16621
Author: dcar...@chromium.org
Date: Tue Sep 10 14:26:07 2013 UTC
Log: thread isolate for DebugMessage
R=svenpa...@chromium.org
BUG=
Review URL: https://codereview.chromium.org/23904012
http://code.google.com/p/v8/source/detail?r=16621
Modified:
/branches/bleeding_edge/include/v8-debug.h
/branches/bleeding_edge/src/debug-agent.cc
/branches/bleeding_edge/src/debug.cc
/branches/bleeding_edge/src/debug.h
=======================================
--- /branches/bleeding_edge/include/v8-debug.h Wed Aug 28 07:11:37 2013 UTC
+++ /branches/bleeding_edge/include/v8-debug.h Tue Sep 10 14:26:07 2013 UTC
@@ -106,6 +106,8 @@
*/
virtual ClientData* GetClientData() const = 0;
+ virtual Isolate* GetIsolate() const = 0;
+
virtual ~Message() {}
};
=======================================
--- /branches/bleeding_edge/src/debug-agent.cc Wed Sep 4 10:41:51 2013 UTC
+++ /branches/bleeding_edge/src/debug-agent.cc Tue Sep 10 14:26:07 2013 UTC
@@ -38,7 +38,8 @@
// Public V8 debugger API message handler function. This function just
delegates
// to the debugger agent through it's data parameter.
void DebuggerAgentMessageHandler(const v8::Debug::Message& message) {
- DebuggerAgent* agent = Isolate::Current()->debugger_agent_instance();
+ Isolate* isolate = reinterpret_cast<Isolate*>(message.GetIsolate());
+ DebuggerAgent* agent = isolate->debugger_agent_instance();
ASSERT(agent != NULL);
agent->DebuggerMessage(message);
}
=======================================
--- /branches/bleeding_edge/src/debug.cc Sun Sep 8 19:05:29 2013 UTC
+++ /branches/bleeding_edge/src/debug.cc Tue Sep 10 14:26:07 2013 UTC
@@ -3622,6 +3622,11 @@
v8::Handle<v8::Object> MessageImpl::GetExecutionState() const {
return v8::Utils::ToLocal(exec_state_);
}
+
+
+v8::Isolate* MessageImpl::GetIsolate() const {
+ return reinterpret_cast<v8::Isolate*>(exec_state_->GetIsolate());
+}
v8::Handle<v8::Object> MessageImpl::GetEventData() const {
=======================================
--- /branches/bleeding_edge/src/debug.h Sun Sep 8 19:05:29 2013 UTC
+++ /branches/bleeding_edge/src/debug.h Tue Sep 10 14:26:07 2013 UTC
@@ -668,6 +668,7 @@
virtual v8::Handle<v8::String> GetJSON() const;
virtual v8::Handle<v8::Context> GetEventContext() const;
virtual v8::Debug::ClientData* GetClientData() const;
+ virtual v8::Isolate* GetIsolate() const;
private:
MessageImpl(bool is_event,
--
--
v8-dev mailing list
v8-dev@googlegroups.com
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to v8-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.