| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 608 // Restore to the previous break state. | 608 // Restore to the previous break state. |
| 609 Debug::SetBreak(break_frame_id_, break_id_); | 609 Debug::SetBreak(break_frame_id_, break_id_); |
| 610 | 610 |
| 611 // Request preemption when leaving the last debugger entry and a preemption | 611 // Request preemption when leaving the last debugger entry and a preemption |
| 612 // had been recorded while debugging. This is to avoid starvation in some | 612 // had been recorded while debugging. This is to avoid starvation in some |
| 613 // debugging scenarios. | 613 // debugging scenarios. |
| 614 if (prev_ == NULL && Debug::preemption_pending()) { | 614 if (prev_ == NULL && Debug::preemption_pending()) { |
| 615 StackGuard::Preempt(); | 615 StackGuard::Preempt(); |
| 616 Debug::set_preemption_pending(false); | 616 Debug::set_preemption_pending(false); |
| 617 } | 617 } |
| 618 | 618 |
| 619 // Leaving this debugger entry. | 619 // Leaving this debugger entry. |
| 620 Debug::set_debugger_entry(prev_); | 620 Debug::set_debugger_entry(prev_); |
| 621 } | 621 } |
| 622 | 622 |
| 623 // Check whether the debugger could be entered. | 623 // Check whether the debugger could be entered. |
| 624 inline bool FailedToEnter() { return load_failed_; } | 624 inline bool FailedToEnter() { return load_failed_; } |
| 625 | 625 |
| 626 // Check whether there are any JavaScript frames on the stack. | 626 // Check whether there are any JavaScript frames on the stack. |
| 627 inline bool HasJavaScriptFrames() { return has_js_frames_; } | 627 inline bool HasJavaScriptFrames() { return has_js_frames_; } |
| 628 | 628 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 693 } | 693 } |
| 694 private: | 694 private: |
| 695 Debug::AddressId id_; | 695 Debug::AddressId id_; |
| 696 int reg_; | 696 int reg_; |
| 697 }; | 697 }; |
| 698 | 698 |
| 699 | 699 |
| 700 } } // namespace v8::internal | 700 } } // namespace v8::internal |
| 701 | 701 |
| 702 #endif // V8_V8_DEBUG_H_ | 702 #endif // V8_V8_DEBUG_H_ |
| OLD | NEW |