| 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" |
| 11 #include "src/base/atomicops.h" | 11 #include "src/base/atomicops.h" |
| 12 #include "src/base/hashmap.h" | 12 #include "src/base/hashmap.h" |
| 13 #include "src/base/platform/platform.h" | 13 #include "src/base/platform/platform.h" |
| 14 #include "src/debug/debug-interface.h" |
| 14 #include "src/execution.h" | 15 #include "src/execution.h" |
| 15 #include "src/factory.h" | 16 #include "src/factory.h" |
| 16 #include "src/flags.h" | 17 #include "src/flags.h" |
| 17 #include "src/frames.h" | 18 #include "src/frames.h" |
| 18 #include "src/globals.h" | 19 #include "src/globals.h" |
| 19 #include "src/runtime/runtime.h" | 20 #include "src/runtime/runtime.h" |
| 20 #include "src/source-position-table.h" | 21 #include "src/source-position-table.h" |
| 21 #include "src/string-stream.h" | 22 #include "src/string-stream.h" |
| 22 #include "src/v8threads.h" | 23 #include "src/v8threads.h" |
| 23 | 24 |
| (...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 DebugEvent event_; // Debug event causing the break. | 284 DebugEvent event_; // Debug event causing the break. |
| 284 bool running_; // Will the VM start running after this event? | 285 bool running_; // Will the VM start running after this event? |
| 285 Handle<JSObject> exec_state_; // Current execution state. | 286 Handle<JSObject> exec_state_; // Current execution state. |
| 286 Handle<JSObject> event_data_; // Data associated with the event. | 287 Handle<JSObject> event_data_; // Data associated with the event. |
| 287 Handle<String> response_json_; // Response JSON if message holds a response. | 288 Handle<String> response_json_; // Response JSON if message holds a response. |
| 288 v8::Debug::ClientData* client_data_; // Client data passed with the request. | 289 v8::Debug::ClientData* client_data_; // Client data passed with the request. |
| 289 }; | 290 }; |
| 290 | 291 |
| 291 | 292 |
| 292 // Details of the debug event delivered to the debug event listener. | 293 // Details of the debug event delivered to the debug event listener. |
| 293 class EventDetailsImpl : public v8::Debug::EventDetails { | 294 class EventDetailsImpl : public v8::DebugInterface::EventDetails { |
| 294 public: | 295 public: |
| 295 EventDetailsImpl(DebugEvent event, | 296 EventDetailsImpl(DebugEvent event, |
| 296 Handle<JSObject> exec_state, | 297 Handle<JSObject> exec_state, |
| 297 Handle<JSObject> event_data, | 298 Handle<JSObject> event_data, |
| 298 Handle<Object> callback_data, | 299 Handle<Object> callback_data, |
| 299 v8::Debug::ClientData* client_data); | 300 v8::Debug::ClientData* client_data); |
| 300 virtual DebugEvent GetEvent() const; | 301 virtual DebugEvent GetEvent() const; |
| 301 virtual v8::Local<v8::Object> GetExecutionState() const; | 302 virtual v8::Local<v8::Object> GetExecutionState() const; |
| 302 virtual v8::Local<v8::Object> GetEventData() const; | 303 virtual v8::Local<v8::Object> GetEventData() const; |
| 303 virtual v8::Local<v8::Context> GetEventContext() const; | 304 virtual v8::Local<v8::Context> GetEventContext() const; |
| (...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 818 Handle<Code> code); | 819 Handle<Code> code); |
| 819 static bool DebugBreakSlotIsPatched(Address pc); | 820 static bool DebugBreakSlotIsPatched(Address pc); |
| 820 static void ClearDebugBreakSlot(Isolate* isolate, Address pc); | 821 static void ClearDebugBreakSlot(Isolate* isolate, Address pc); |
| 821 }; | 822 }; |
| 822 | 823 |
| 823 | 824 |
| 824 } // namespace internal | 825 } // namespace internal |
| 825 } // namespace v8 | 826 } // namespace v8 |
| 826 | 827 |
| 827 #endif // V8_DEBUG_DEBUG_H_ | 828 #endif // V8_DEBUG_DEBUG_H_ |
| OLD | NEW |