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 20 matching lines...) Expand all Loading... |
31 class DebugScope; | 31 class DebugScope; |
32 | 32 |
33 | 33 |
34 // Step actions. NOTE: These values are in macros.py as well. | 34 // Step actions. NOTE: These values are in macros.py as well. |
35 enum StepAction : int8_t { | 35 enum StepAction : int8_t { |
36 StepNone = -1, // Stepping not prepared. | 36 StepNone = -1, // Stepping not prepared. |
37 StepOut = 0, // Step out of the current function. | 37 StepOut = 0, // Step out of the current function. |
38 StepNext = 1, // Step to the next statement in the current function. | 38 StepNext = 1, // Step to the next statement in the current function. |
39 StepIn = 2, // Step into new functions invoked or the next statement | 39 StepIn = 2, // Step into new functions invoked or the next statement |
40 // in the current function. | 40 // in the current function. |
41 StepFrame = 3 // Step into a new frame or return to previous frame. | 41 StepFrame = 3, // Step into a new frame or return to previous frame. |
| 42 |
| 43 LastStepAction = StepFrame |
42 }; | 44 }; |
43 | 45 |
44 | |
45 // Type of exception break. NOTE: These values are in macros.py as well. | 46 // Type of exception break. NOTE: These values are in macros.py as well. |
46 enum ExceptionBreakType { | 47 enum ExceptionBreakType { |
47 BreakException = 0, | 48 BreakException = 0, |
48 BreakUncaughtException = 1 | 49 BreakUncaughtException = 1 |
49 }; | 50 }; |
50 | 51 |
51 | 52 |
52 // Type of exception break. | 53 // Type of exception break. |
53 enum BreakLocatorType { ALL_BREAK_LOCATIONS, CALLS_AND_RETURNS }; | 54 enum BreakLocatorType { ALL_BREAK_LOCATIONS, CALLS_AND_RETURNS }; |
54 | 55 |
(...skipping 756 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
811 Handle<Code> code); | 812 Handle<Code> code); |
812 static bool DebugBreakSlotIsPatched(Address pc); | 813 static bool DebugBreakSlotIsPatched(Address pc); |
813 static void ClearDebugBreakSlot(Isolate* isolate, Address pc); | 814 static void ClearDebugBreakSlot(Isolate* isolate, Address pc); |
814 }; | 815 }; |
815 | 816 |
816 | 817 |
817 } // namespace internal | 818 } // namespace internal |
818 } // namespace v8 | 819 } // namespace v8 |
819 | 820 |
820 #endif // V8_DEBUG_DEBUG_H_ | 821 #endif // V8_DEBUG_DEBUG_H_ |
OLD | NEW |