| 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 735 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 746 Handle<Object> return_value_; // Previous result. | 746 Handle<Object> return_value_; // Previous result. |
| 747 bool failed_; // Did the debug context fail to load? | 747 bool failed_; // Did the debug context fail to load? |
| 748 SaveContext save_; // Saves previous context. | 748 SaveContext save_; // Saves previous context. |
| 749 PostponeInterruptsScope no_termination_exceptons_; | 749 PostponeInterruptsScope no_termination_exceptons_; |
| 750 }; | 750 }; |
| 751 | 751 |
| 752 | 752 |
| 753 // Stack allocated class for disabling break. | 753 // Stack allocated class for disabling break. |
| 754 class DisableBreak BASE_EMBEDDED { | 754 class DisableBreak BASE_EMBEDDED { |
| 755 public: | 755 public: |
| 756 explicit DisableBreak(Debug* debug, bool disable_break) | 756 explicit DisableBreak(Debug* debug) |
| 757 : debug_(debug), | 757 : debug_(debug), |
| 758 previous_break_disabled_(debug->break_disabled_), | 758 previous_break_disabled_(debug->break_disabled_), |
| 759 previous_in_debug_event_listener_(debug->in_debug_event_listener_) { | 759 previous_in_debug_event_listener_(debug->in_debug_event_listener_) { |
| 760 debug_->break_disabled_ = disable_break; | 760 debug_->break_disabled_ = true; |
| 761 debug_->in_debug_event_listener_ = disable_break; | 761 debug_->in_debug_event_listener_ = true; |
| 762 } | 762 } |
| 763 ~DisableBreak() { | 763 ~DisableBreak() { |
| 764 debug_->break_disabled_ = previous_break_disabled_; | 764 debug_->break_disabled_ = previous_break_disabled_; |
| 765 debug_->in_debug_event_listener_ = previous_in_debug_event_listener_; | 765 debug_->in_debug_event_listener_ = previous_in_debug_event_listener_; |
| 766 } | 766 } |
| 767 | 767 |
| 768 private: | 768 private: |
| 769 Debug* debug_; | 769 Debug* debug_; |
| 770 bool previous_break_disabled_; | 770 bool previous_break_disabled_; |
| 771 bool previous_in_debug_event_listener_; | 771 bool previous_in_debug_event_listener_; |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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_ |
| OLD | NEW |