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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 return type_ == DEBUGGER_STATEMENT; | 90 return type_ == DEBUGGER_STATEMENT; |
91 } | 91 } |
92 inline bool HasBreakPoint() const { | 92 inline bool HasBreakPoint() const { |
93 return debug_info_->HasBreakPoint(code_offset_); | 93 return debug_info_->HasBreakPoint(code_offset_); |
94 } | 94 } |
95 | 95 |
96 Handle<Object> BreakPointObjects() const; | 96 Handle<Object> BreakPointObjects() const; |
97 | 97 |
98 void SetBreakPoint(Handle<Object> break_point_object); | 98 void SetBreakPoint(Handle<Object> break_point_object); |
99 void ClearBreakPoint(Handle<Object> break_point_object); | 99 void ClearBreakPoint(Handle<Object> break_point_object); |
100 void ReapplyBreakPoint(); | |
101 | 100 |
102 void SetOneShot(); | 101 void SetOneShot(); |
103 void ClearOneShot(); | 102 void ClearOneShot(); |
104 | 103 |
105 inline int position() const { return position_; } | 104 inline int position() const { return position_; } |
106 inline int statement_position() const { return statement_position_; } | 105 inline int statement_position() const { return statement_position_; } |
107 | 106 |
108 inline int code_offset() const { return code_offset_; } | 107 inline int code_offset() const { return code_offset_; } |
109 inline Isolate* isolate() { return debug_info_->GetIsolate(); } | 108 inline Isolate* isolate() { return debug_info_->GetIsolate(); } |
110 | 109 |
(...skipping 701 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
812 Handle<Code> code); | 811 Handle<Code> code); |
813 static bool DebugBreakSlotIsPatched(Address pc); | 812 static bool DebugBreakSlotIsPatched(Address pc); |
814 static void ClearDebugBreakSlot(Isolate* isolate, Address pc); | 813 static void ClearDebugBreakSlot(Isolate* isolate, Address pc); |
815 }; | 814 }; |
816 | 815 |
817 | 816 |
818 } // namespace internal | 817 } // namespace internal |
819 } // namespace v8 | 818 } // namespace v8 |
820 | 819 |
821 #endif // V8_DEBUG_DEBUG_H_ | 820 #endif // V8_DEBUG_DEBUG_H_ |
OLD | NEW |