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