| 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 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 namespace v8 { | 25 namespace v8 { |
| 26 namespace internal { | 26 namespace internal { |
| 27 | 27 |
| 28 | 28 |
| 29 // Forward declarations. | 29 // Forward declarations. |
| 30 class DebugScope; | 30 class DebugScope; |
| 31 | 31 |
| 32 | 32 |
| 33 // Step actions. NOTE: These values are in macros.py as well. | 33 // Step actions. NOTE: These values are in macros.py as well. |
| 34 enum StepAction { | 34 enum StepAction : int8_t { |
| 35 StepNone = -1, // Stepping not prepared. | 35 StepNone = -1, // Stepping not prepared. |
| 36 StepOut = 0, // Step out of the current function. | 36 StepOut = 0, // Step out of the current function. |
| 37 StepNext = 1, // Step to the next statement in the current function. | 37 StepNext = 1, // Step to the next statement in the current function. |
| 38 StepIn = 2, // Step into new functions invoked or the next statement | 38 StepIn = 2, // Step into new functions invoked or the next statement |
| 39 // in the current function. | 39 // in the current function. |
| 40 StepMin = 3, // Perform a minimum step in the current function. | 40 StepMin = 3, // Perform a minimum step in the current function. |
| 41 StepInMin = 4, // Step into new functions invoked or perform a minimum step | 41 StepInMin = 4, // Step into new functions invoked or perform a minimum step |
| 42 // in the current function. | 42 // in the current function. |
| 43 StepFrame = 5 // Step into a new frame or return to previous frame. | 43 StepFrame = 5 // Step into a new frame or return to previous frame. |
| 44 }; | 44 }; |
| (...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 495 | 495 |
| 496 Address after_break_target_address() { | 496 Address after_break_target_address() { |
| 497 return reinterpret_cast<Address>(&after_break_target_); | 497 return reinterpret_cast<Address>(&after_break_target_); |
| 498 } | 498 } |
| 499 | 499 |
| 500 Address restarter_frame_function_pointer_address() { | 500 Address restarter_frame_function_pointer_address() { |
| 501 Object*** address = &thread_local_.restarter_frame_function_pointer_; | 501 Object*** address = &thread_local_.restarter_frame_function_pointer_; |
| 502 return reinterpret_cast<Address>(address); | 502 return reinterpret_cast<Address>(address); |
| 503 } | 503 } |
| 504 | 504 |
| 505 Address step_in_fp_addr() { | 505 Address last_step_action_addr() { |
| 506 return reinterpret_cast<Address>(&thread_local_.step_into_fp_); | 506 return reinterpret_cast<Address>(&thread_local_.last_step_action_); |
| 507 } | 507 } |
| 508 | 508 |
| 509 StepAction last_step_action() { return thread_local_.last_step_action_; } | 509 StepAction last_step_action() { return thread_local_.last_step_action_; } |
| 510 | 510 |
| 511 private: | 511 private: |
| 512 explicit Debug(Isolate* isolate); | 512 explicit Debug(Isolate* isolate); |
| 513 | 513 |
| 514 void UpdateState(); | 514 void UpdateState(); |
| 515 void Unload(); | 515 void Unload(); |
| 516 void SetNextBreakId() { | 516 void SetNextBreakId() { |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 761 | 761 |
| 762 static void PatchDebugBreakSlot(Address pc, Handle<Code> code); | 762 static void PatchDebugBreakSlot(Address pc, Handle<Code> code); |
| 763 static void ClearDebugBreakSlot(Address pc); | 763 static void ClearDebugBreakSlot(Address pc); |
| 764 }; | 764 }; |
| 765 | 765 |
| 766 | 766 |
| 767 } // namespace internal | 767 } // namespace internal |
| 768 } // namespace v8 | 768 } // namespace v8 |
| 769 | 769 |
| 770 #endif // V8_DEBUG_DEBUG_H_ | 770 #endif // V8_DEBUG_DEBUG_H_ |
| OLD | NEW |