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_DEBUG_H_ | 5 #ifndef V8_DEBUG_DEBUG_H_ |
6 #define V8_DEBUG_DEBUG_H_ | 6 #define V8_DEBUG_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 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 Handle<JSObject> exec_state, | 298 Handle<JSObject> exec_state, |
299 Handle<JSObject> event_data, | 299 Handle<JSObject> event_data, |
300 Handle<Object> callback_data, | 300 Handle<Object> callback_data, |
301 v8::Debug::ClientData* client_data); | 301 v8::Debug::ClientData* client_data); |
302 virtual DebugEvent GetEvent() const; | 302 virtual DebugEvent GetEvent() const; |
303 virtual v8::Local<v8::Object> GetExecutionState() const; | 303 virtual v8::Local<v8::Object> GetExecutionState() const; |
304 virtual v8::Local<v8::Object> GetEventData() const; | 304 virtual v8::Local<v8::Object> GetEventData() const; |
305 virtual v8::Local<v8::Context> GetEventContext() const; | 305 virtual v8::Local<v8::Context> GetEventContext() const; |
306 virtual v8::Local<v8::Value> GetCallbackData() const; | 306 virtual v8::Local<v8::Value> GetCallbackData() const; |
307 virtual v8::Debug::ClientData* GetClientData() const; | 307 virtual v8::Debug::ClientData* GetClientData() const; |
| 308 virtual v8::Isolate* GetIsolate() const; |
| 309 |
308 private: | 310 private: |
309 DebugEvent event_; // Debug event causing the break. | 311 DebugEvent event_; // Debug event causing the break. |
310 Handle<JSObject> exec_state_; // Current execution state. | 312 Handle<JSObject> exec_state_; // Current execution state. |
311 Handle<JSObject> event_data_; // Data associated with the event. | 313 Handle<JSObject> event_data_; // Data associated with the event. |
312 Handle<Object> callback_data_; // User data passed with the callback | 314 Handle<Object> callback_data_; // User data passed with the callback |
313 // when it was registered. | 315 // when it was registered. |
314 v8::Debug::ClientData* client_data_; // Data passed to DebugBreakForCommand. | 316 v8::Debug::ClientData* client_data_; // Data passed to DebugBreakForCommand. |
315 }; | 317 }; |
316 | 318 |
317 | 319 |
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
797 Handle<Code> code); | 799 Handle<Code> code); |
798 static bool DebugBreakSlotIsPatched(Address pc); | 800 static bool DebugBreakSlotIsPatched(Address pc); |
799 static void ClearDebugBreakSlot(Isolate* isolate, Address pc); | 801 static void ClearDebugBreakSlot(Isolate* isolate, Address pc); |
800 }; | 802 }; |
801 | 803 |
802 | 804 |
803 } // namespace internal | 805 } // namespace internal |
804 } // namespace v8 | 806 } // namespace v8 |
805 | 807 |
806 #endif // V8_DEBUG_DEBUG_H_ | 808 #endif // V8_DEBUG_DEBUG_H_ |
OLD | NEW |