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 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
447 Address suspended_generator_address() { | 447 Address suspended_generator_address() { |
448 return reinterpret_cast<Address>(&thread_local_.suspended_generator_); | 448 return reinterpret_cast<Address>(&thread_local_.suspended_generator_); |
449 } | 449 } |
450 | 450 |
451 Address restart_fp_address() { | 451 Address restart_fp_address() { |
452 return reinterpret_cast<Address>(&thread_local_.restart_fp_); | 452 return reinterpret_cast<Address>(&thread_local_.restart_fp_); |
453 } | 453 } |
454 | 454 |
455 StepAction last_step_action() { return thread_local_.last_step_action_; } | 455 StepAction last_step_action() { return thread_local_.last_step_action_; } |
456 | 456 |
457 void set_non_breakable_async_events(bool value) { | |
458 thread_local_.non_breakable_async_events_ = value; | |
459 } | |
460 | |
457 DebugFeatureTracker* feature_tracker() { return &feature_tracker_; } | 461 DebugFeatureTracker* feature_tracker() { return &feature_tracker_; } |
458 | 462 |
459 private: | 463 private: |
460 explicit Debug(Isolate* isolate); | 464 explicit Debug(Isolate* isolate); |
461 | 465 |
462 void UpdateState(); | 466 void UpdateState(); |
463 void UpdateHookOnFunctionCall(); | 467 void UpdateHookOnFunctionCall(); |
464 void Unload(); | 468 void Unload(); |
465 void SetNextBreakId() { | 469 void SetNextBreakId() { |
466 thread_local_.break_id_ = ++thread_local_.break_count_; | 470 thread_local_.break_id_ = ++thread_local_.break_count_; |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
615 // Value of the accumulator at the point of entering the debugger. | 619 // Value of the accumulator at the point of entering the debugger. |
616 Object* return_value_; | 620 Object* return_value_; |
617 | 621 |
618 // The suspended generator object to track when stepping. | 622 // The suspended generator object to track when stepping. |
619 Object* suspended_generator_; | 623 Object* suspended_generator_; |
620 | 624 |
621 // The new frame pointer to drop to when restarting a frame. | 625 // The new frame pointer to drop to when restarting a frame. |
622 Address restart_fp_; | 626 Address restart_fp_; |
623 | 627 |
624 int async_task_count_; | 628 int async_task_count_; |
629 bool non_breakable_async_events_; | |
Yang
2017/01/30 13:30:14
Can we have a comment here?
kozy
2017/01/30 16:58:00
Removed.
| |
625 }; | 630 }; |
626 | 631 |
627 // Storage location for registers when handling debug break calls | 632 // Storage location for registers when handling debug break calls |
628 ThreadLocal thread_local_; | 633 ThreadLocal thread_local_; |
629 | 634 |
630 Isolate* isolate_; | 635 Isolate* isolate_; |
631 | 636 |
632 friend class Isolate; | 637 friend class Isolate; |
633 friend class DebugScope; | 638 friend class DebugScope; |
634 friend class DisableBreak; | 639 friend class DisableBreak; |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
750 Handle<Code> code); | 755 Handle<Code> code); |
751 static bool DebugBreakSlotIsPatched(Address pc); | 756 static bool DebugBreakSlotIsPatched(Address pc); |
752 static void ClearDebugBreakSlot(Isolate* isolate, Address pc); | 757 static void ClearDebugBreakSlot(Isolate* isolate, Address pc); |
753 }; | 758 }; |
754 | 759 |
755 | 760 |
756 } // namespace internal | 761 } // namespace internal |
757 } // namespace v8 | 762 } // namespace v8 |
758 | 763 |
759 #endif // V8_DEBUG_DEBUG_H_ | 764 #endif // V8_DEBUG_DEBUG_H_ |
OLD | NEW |