OLD | NEW |
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 #ifndef V8_DEBUG_H_ | 5 #ifndef V8_DEBUG_H_ |
6 #define V8_DEBUG_H_ | 6 #define V8_DEBUG_H_ |
7 | 7 |
8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
9 #include "src/arguments.h" | 9 #include "src/arguments.h" |
10 #include "src/assembler.h" | 10 #include "src/assembler.h" |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 Handle<JSObject> exec_state, | 278 Handle<JSObject> exec_state, |
279 Handle<JSObject> event_data, | 279 Handle<JSObject> event_data, |
280 Handle<String> response_json, | 280 Handle<String> response_json, |
281 v8::Debug::ClientData* client_data); | 281 v8::Debug::ClientData* client_data); |
282 | 282 |
283 // Implementation of interface v8::Debug::Message. | 283 // Implementation of interface v8::Debug::Message. |
284 virtual bool IsEvent() const; | 284 virtual bool IsEvent() const; |
285 virtual bool IsResponse() const; | 285 virtual bool IsResponse() const; |
286 virtual DebugEvent GetEvent() const; | 286 virtual DebugEvent GetEvent() const; |
287 virtual bool WillStartRunning() const; | 287 virtual bool WillStartRunning() const; |
288 virtual v8::Handle<v8::Object> GetExecutionState() const; | 288 virtual v8::Local<v8::Object> GetExecutionState() const; |
289 virtual v8::Handle<v8::Object> GetEventData() const; | 289 virtual v8::Local<v8::Object> GetEventData() const; |
290 virtual v8::Handle<v8::String> GetJSON() const; | 290 virtual v8::Local<v8::String> GetJSON() const; |
291 virtual v8::Handle<v8::Context> GetEventContext() const; | 291 virtual v8::Local<v8::Context> GetEventContext() const; |
292 virtual v8::Debug::ClientData* GetClientData() const; | 292 virtual v8::Debug::ClientData* GetClientData() const; |
293 virtual v8::Isolate* GetIsolate() const; | 293 virtual v8::Isolate* GetIsolate() const; |
294 | 294 |
295 private: | 295 private: |
296 MessageImpl(bool is_event, | 296 MessageImpl(bool is_event, |
297 DebugEvent event, | 297 DebugEvent event, |
298 bool running, | 298 bool running, |
299 Handle<JSObject> exec_state, | 299 Handle<JSObject> exec_state, |
300 Handle<JSObject> event_data, | 300 Handle<JSObject> event_data, |
301 Handle<String> response_json, | 301 Handle<String> response_json, |
(...skipping 11 matching lines...) Expand all Loading... |
313 | 313 |
314 // Details of the debug event delivered to the debug event listener. | 314 // Details of the debug event delivered to the debug event listener. |
315 class EventDetailsImpl : public v8::Debug::EventDetails { | 315 class EventDetailsImpl : public v8::Debug::EventDetails { |
316 public: | 316 public: |
317 EventDetailsImpl(DebugEvent event, | 317 EventDetailsImpl(DebugEvent event, |
318 Handle<JSObject> exec_state, | 318 Handle<JSObject> exec_state, |
319 Handle<JSObject> event_data, | 319 Handle<JSObject> event_data, |
320 Handle<Object> callback_data, | 320 Handle<Object> callback_data, |
321 v8::Debug::ClientData* client_data); | 321 v8::Debug::ClientData* client_data); |
322 virtual DebugEvent GetEvent() const; | 322 virtual DebugEvent GetEvent() const; |
323 virtual v8::Handle<v8::Object> GetExecutionState() const; | 323 virtual v8::Local<v8::Object> GetExecutionState() const; |
324 virtual v8::Handle<v8::Object> GetEventData() const; | 324 virtual v8::Local<v8::Object> GetEventData() const; |
325 virtual v8::Handle<v8::Context> GetEventContext() const; | 325 virtual v8::Local<v8::Context> GetEventContext() const; |
326 virtual v8::Handle<v8::Value> GetCallbackData() const; | 326 virtual v8::Local<v8::Value> GetCallbackData() const; |
327 virtual v8::Debug::ClientData* GetClientData() const; | 327 virtual v8::Debug::ClientData* GetClientData() const; |
328 private: | 328 private: |
329 DebugEvent event_; // Debug event causing the break. | 329 DebugEvent event_; // Debug event causing the break. |
330 Handle<JSObject> exec_state_; // Current execution state. | 330 Handle<JSObject> exec_state_; // Current execution state. |
331 Handle<JSObject> event_data_; // Data associated with the event. | 331 Handle<JSObject> event_data_; // Data associated with the event. |
332 Handle<Object> callback_data_; // User data passed with the callback | 332 Handle<Object> callback_data_; // User data passed with the callback |
333 // when it was registered. | 333 // when it was registered. |
334 v8::Debug::ClientData* client_data_; // Data passed to DebugBreakForCommand. | 334 v8::Debug::ClientData* client_data_; // Data passed to DebugBreakForCommand. |
335 }; | 335 }; |
336 | 336 |
(...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
826 // several frames above. | 826 // several frames above. |
827 // There is no calling conventions here, because it never actually gets | 827 // There is no calling conventions here, because it never actually gets |
828 // called, it only gets returned to. | 828 // called, it only gets returned to. |
829 static void GenerateFrameDropperLiveEdit(MacroAssembler* masm); | 829 static void GenerateFrameDropperLiveEdit(MacroAssembler* masm); |
830 }; | 830 }; |
831 | 831 |
832 | 832 |
833 } } // namespace v8::internal | 833 } } // namespace v8::internal |
834 | 834 |
835 #endif // V8_DEBUG_H_ | 835 #endif // V8_DEBUG_H_ |
OLD | NEW |