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_H_ | 5 #ifndef V8_DEBUG_H_ |
6 #define V8_DEBUG_H_ | 6 #define V8_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 684 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
695 | 695 |
696 private: | 696 private: |
697 Isolate* isolate() { return debug_->isolate_; } | 697 Isolate* isolate() { return debug_->isolate_; } |
698 | 698 |
699 Debug* debug_; | 699 Debug* debug_; |
700 DebugScope* prev_; // Previous scope if entered recursively. | 700 DebugScope* prev_; // Previous scope if entered recursively. |
701 StackFrame::Id break_frame_id_; // Previous break frame id. | 701 StackFrame::Id break_frame_id_; // Previous break frame id. |
702 int break_id_; // Previous break id. | 702 int break_id_; // Previous break id. |
703 bool failed_; // Did the debug context fail to load? | 703 bool failed_; // Did the debug context fail to load? |
704 SaveContext save_; // Saves previous context. | 704 SaveContext save_; // Saves previous context. |
705 PostponeInterruptsScope no_termination_exceptons_; | |
706 }; | 705 }; |
707 | 706 |
708 | 707 |
709 // Stack allocated class for disabling break. | 708 // Stack allocated class for disabling break. |
710 class DisableBreak BASE_EMBEDDED { | 709 class DisableBreak BASE_EMBEDDED { |
711 public: | 710 public: |
712 explicit DisableBreak(Debug* debug, bool disable_break) | 711 explicit DisableBreak(Debug* debug, bool disable_break) |
713 : debug_(debug), old_state_(debug->break_disabled_) { | 712 : debug_(debug), old_state_(debug->break_disabled_) { |
714 debug_->break_disabled_ = disable_break; | 713 debug_->break_disabled_ = disable_break; |
715 } | 714 } |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
758 // several frames above. | 757 // several frames above. |
759 // There is no calling conventions here, because it never actually gets | 758 // There is no calling conventions here, because it never actually gets |
760 // called, it only gets returned to. | 759 // called, it only gets returned to. |
761 static void GenerateFrameDropperLiveEdit(MacroAssembler* masm); | 760 static void GenerateFrameDropperLiveEdit(MacroAssembler* masm); |
762 }; | 761 }; |
763 | 762 |
764 | 763 |
765 } } // namespace v8::internal | 764 } } // namespace v8::internal |
766 | 765 |
767 #endif // V8_DEBUG_H_ | 766 #endif // V8_DEBUG_H_ |
OLD | NEW |