diff options
| author | Leon Clarke <leonclarke@google.com> | 2010-06-03 12:02:55 +0100 |
|---|---|---|
| committer | Leon Clarke <leonclarke@google.com> | 2010-06-03 12:05:35 +0100 |
| commit | f7060e27768c550ace7ec48ad8c093466db52dfa (patch) | |
| tree | 43a297e3fcc3fd81c7637fcbe8b31b3d02fd337d /src/debug.h | |
| parent | f4f2cc060fdf724f592c425cced19bc9a3fc7e40 (diff) | |
| download | android_external_v8-f7060e27768c550ace7ec48ad8c093466db52dfa.tar.gz android_external_v8-f7060e27768c550ace7ec48ad8c093466db52dfa.tar.bz2 android_external_v8-f7060e27768c550ace7ec48ad8c093466db52dfa.zip | |
Update V8 to r4730 as required by WebKit r60469
Diffstat (limited to 'src/debug.h')
| -rw-r--r-- | src/debug.h | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/src/debug.h b/src/debug.h index e7ac94e3..e2eecb8b 100644 --- a/src/debug.h +++ b/src/debug.h @@ -524,6 +524,27 @@ class MessageImpl: public v8::Debug::Message { }; +// Details of the debug event delivered to the debug event listener. +class EventDetailsImpl : public v8::Debug::EventDetails { + public: + EventDetailsImpl(DebugEvent event, + Handle<JSObject> exec_state, + Handle<JSObject> event_data, + Handle<Object> callback_data); + virtual DebugEvent GetEvent() const; + virtual v8::Handle<v8::Object> GetExecutionState() const; + virtual v8::Handle<v8::Object> GetEventData() const; + virtual v8::Handle<v8::Context> GetEventContext() const; + virtual v8::Handle<v8::Value> GetCallbackData() const; + private: + DebugEvent event_; // Debug event causing the break. + Handle<JSObject> exec_state_; // Current execution state. + Handle<JSObject> event_data_; // Data associated with the event. + Handle<Object> callback_data_; // User data passed with the callback when + // it was registered. +}; + + // Message send by user to v8 debugger or debugger output message. // In addition to command text it may contain a pointer to some user data // which are expected to be passed along with the command reponse to message @@ -693,8 +714,9 @@ class Debugger { static void set_loading_debugger(bool v) { is_loading_debugger_ = v; } static bool is_loading_debugger() { return Debugger::is_loading_debugger_; } - private: static bool IsDebuggerActive(); + + private: static void ListenersChanged(); static Mutex* debugger_access_; // Mutex guarding debugger variables. |
