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

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

Issue 2069823003: [wasm] Enable wasm frame inspection for debugging (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@split-wasm-debug
Patch Set: rebase & address andreas' comments Created 4 years, 6 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 | « no previous file | src/debug/debug.cc » ('j') | src/debug/debug.cc » ('J')
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"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 }; 62 };
63 63
64 64
65 class BreakLocation { 65 class BreakLocation {
66 public: 66 public:
67 // Find the break point at the supplied address, or the closest one before 67 // Find the break point at the supplied address, or the closest one before
68 // the address. 68 // the address.
69 static BreakLocation FromCodeOffset(Handle<DebugInfo> debug_info, int offset); 69 static BreakLocation FromCodeOffset(Handle<DebugInfo> debug_info, int offset);
70 70
71 static BreakLocation FromFrame(Handle<DebugInfo> debug_info, 71 static BreakLocation FromFrame(Handle<DebugInfo> debug_info,
72 JavaScriptFrame* frame); 72 StandardFrame* frame);
73 73
74 static void AllForStatementPosition(Handle<DebugInfo> debug_info, 74 static void AllForStatementPosition(Handle<DebugInfo> debug_info,
75 int statement_position, 75 int statement_position,
76 List<BreakLocation>* result_out); 76 List<BreakLocation>* result_out);
77 77
78 static BreakLocation FromPosition(Handle<DebugInfo> debug_info, int position, 78 static BreakLocation FromPosition(Handle<DebugInfo> debug_info, int position,
79 BreakPositionAlignment alignment); 79 BreakPositionAlignment alignment);
80 80
81 bool IsDebugBreak() const; 81 bool IsDebugBreak() const;
82 82
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
484 int position); 484 int position);
485 485
486 static Handle<Object> GetSourceBreakLocations( 486 static Handle<Object> GetSourceBreakLocations(
487 Handle<SharedFunctionInfo> shared, 487 Handle<SharedFunctionInfo> shared,
488 BreakPositionAlignment position_aligment); 488 BreakPositionAlignment position_aligment);
489 489
490 // Check whether a global object is the debug global object. 490 // Check whether a global object is the debug global object.
491 bool IsDebugGlobal(JSGlobalObject* global); 491 bool IsDebugGlobal(JSGlobalObject* global);
492 492
493 // Check whether this frame is just about to return. 493 // Check whether this frame is just about to return.
494 bool IsBreakAtReturn(JavaScriptFrame* frame); 494 bool IsBreakAtReturn(StandardFrame* frame);
495 495
496 // Support for LiveEdit 496 // Support for LiveEdit
497 void FramesHaveBeenDropped(StackFrame::Id new_break_frame_id, 497 void FramesHaveBeenDropped(StackFrame::Id new_break_frame_id,
498 LiveEdit::FrameDropMode mode); 498 LiveEdit::FrameDropMode mode);
499 499
500 // Threading support. 500 // Threading support.
501 char* ArchiveDebug(char* to); 501 char* ArchiveDebug(char* to);
502 char* RestoreDebug(char* from); 502 char* RestoreDebug(char* from);
503 static int ArchiveSpacePerThread(); 503 static int ArchiveSpacePerThread();
504 void FreeThreadResources() { } 504 void FreeThreadResources() { }
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
812 Handle<Code> code); 812 Handle<Code> code);
813 static bool DebugBreakSlotIsPatched(Address pc); 813 static bool DebugBreakSlotIsPatched(Address pc);
814 static void ClearDebugBreakSlot(Isolate* isolate, Address pc); 814 static void ClearDebugBreakSlot(Isolate* isolate, Address pc);
815 }; 815 };
816 816
817 817
818 } // namespace internal 818 } // namespace internal
819 } // namespace v8 819 } // namespace v8
820 820
821 #endif // V8_DEBUG_DEBUG_H_ 821 #endif // V8_DEBUG_DEBUG_H_
OLDNEW
« no previous file with comments | « no previous file | src/debug/debug.cc » ('j') | src/debug/debug.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698