V8 Project
|
#include <debug.h>
Public Member Functions | |
virtual bool | IsEvent () const |
Check type of message. More... | |
virtual bool | IsResponse () const |
virtual DebugEvent | GetEvent () const |
virtual bool | WillStartRunning () const |
Indicate whether this is a response to a continue command which will start the VM running after this is processed. More... | |
virtual v8::Handle< v8::Object > | GetExecutionState () const |
Access to execution state and event data. More... | |
virtual v8::Handle< v8::Object > | GetEventData () const |
virtual v8::Handle< v8::String > | GetJSON () const |
Get the debugger protocol JSON. More... | |
virtual v8::Handle< v8::Context > | GetEventContext () const |
Get the context active when the debug event happened. More... | |
virtual v8::Debug::ClientData * | GetClientData () const |
Client data passed with the corresponding request if any. More... | |
virtual v8::Isolate * | GetIsolate () const |
![]() | |
virtual | ~Message () |
Static Public Member Functions | |
static MessageImpl | NewEvent (DebugEvent event, bool running, Handle< JSObject > exec_state, Handle< JSObject > event_data) |
static MessageImpl | NewResponse (DebugEvent event, bool running, Handle< JSObject > exec_state, Handle< JSObject > event_data, Handle< String > response_json, v8::Debug::ClientData *client_data) |
Private Member Functions | |
MessageImpl (bool is_event, DebugEvent event, bool running, Handle< JSObject > exec_state, Handle< JSObject > event_data, Handle< String > response_json, v8::Debug::ClientData *client_data) | |
Private Attributes | |
bool | is_event_ |
DebugEvent | event_ |
bool | running_ |
Handle< JSObject > | exec_state_ |
Handle< JSObject > | event_data_ |
Handle< String > | response_json_ |
v8::Debug::ClientData * | client_data_ |
|
private |
|
virtual |
Client data passed with the corresponding request if any.
This is the client_data data value passed into Debug::SendCommand along with the request that led to the message or NULL if the message is an event. The debugger takes ownership of the data and will delete it even if there is no message handler.
Implements v8::Debug::Message.
Definition at line 3234 of file debug.cc.
References client_data_.
|
virtual |
|
virtual |
Get the context active when the debug event happened.
Note this is not the current active context as the JavaScript part of the debugger is running in its own context which is entered at this point.
Implements v8::Debug::Message.
Definition at line 3225 of file debug.cc.
References DCHECK, event_data_, v8::internal::GetDebugEventContext(), and v8::Handle< T >::IsEmpty().
|
virtual |
Implements v8::Debug::Message.
Definition at line 3195 of file debug.cc.
References event_data_, and v8::Utils::ToLocal().
|
virtual |
Access to execution state and event data.
Don't store these cross callbacks as their content becomes invalid. These objects are from the debugger event that started the debug message loop.
Implements v8::Debug::Message.
Definition at line 3185 of file debug.cc.
References exec_state_, and v8::Utils::ToLocal().
|
virtual |
|
virtual |
Get the debugger protocol JSON.
Implements v8::Debug::Message.
Definition at line 3200 of file debug.cc.
References v8::EscapableHandleScope::Escape(), event_data_, v8::internal::Object::GetProperty(), IsEvent(), NULL, response_json_, and v8::Utils::ToLocal().
|
virtual |
|
virtual |
|
static |
Definition at line 3127 of file debug.cc.
References NULL.
Referenced by v8::internal::Debug::NotifyMessageHandler().
|
static |
Definition at line 3137 of file debug.cc.
Referenced by v8::internal::Debug::NotifyMessageHandler().
|
virtual |
Indicate whether this is a response to a continue command which will start the VM running after this is processed.
Implements v8::Debug::Message.
Definition at line 3180 of file debug.cc.
References running_.
|
private |
Definition at line 245 of file debug.h.
Referenced by GetClientData().
|
private |
Definition at line 240 of file debug.h.
Referenced by GetEvent().
Definition at line 243 of file debug.h.
Referenced by GetEventContext(), GetEventData(), and GetJSON().
Definition at line 242 of file debug.h.
Referenced by GetExecutionState(), and GetIsolate().
|
private |
Definition at line 239 of file debug.h.
Referenced by IsEvent(), and IsResponse().
|
private |
Definition at line 241 of file debug.h.
Referenced by WillStartRunning().