Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: src/debug/debug.h

Issue 2423713003: [inspector] introduce debug-interface.h (Closed)
Patch Set: move impl to api.cc Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/api.cc ('k') | src/debug/debug.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 516 matching lines...) Expand 10 before | Expand all | Expand 10 after
820 Handle<Code> code); 821 Handle<Code> code);
821 static bool DebugBreakSlotIsPatched(Address pc); 822 static bool DebugBreakSlotIsPatched(Address pc);
822 static void ClearDebugBreakSlot(Isolate* isolate, Address pc); 823 static void ClearDebugBreakSlot(Isolate* isolate, Address pc);
823 }; 824 };
824 825
825 826
826 } // namespace internal 827 } // namespace internal
827 } // namespace v8 828 } // namespace v8
828 829
829 #endif // V8_DEBUG_DEBUG_H_ 830 #endif // V8_DEBUG_DEBUG_H_
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/debug/debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698