| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 1793 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1804 // Clear the various stepping setup. | 1804 // Clear the various stepping setup. |
| 1805 ClearOneShot(); | 1805 ClearOneShot(); |
| 1806 ClearStepIn(); | 1806 ClearStepIn(); |
| 1807 ClearStepOut(); | 1807 ClearStepOut(); |
| 1808 ClearStepNext(); | 1808 ClearStepNext(); |
| 1809 | 1809 |
| 1810 // Clear multiple step counter. | 1810 // Clear multiple step counter. |
| 1811 thread_local_.step_count_ = 0; | 1811 thread_local_.step_count_ = 0; |
| 1812 } | 1812 } |
| 1813 | 1813 |
| 1814 |
| 1814 // Clears all the one-shot break points that are currently set. Normally this | 1815 // Clears all the one-shot break points that are currently set. Normally this |
| 1815 // function is called each time a break point is hit as one shot break points | 1816 // function is called each time a break point is hit as one shot break points |
| 1816 // are used to support stepping. | 1817 // are used to support stepping. |
| 1817 void Debug::ClearOneShot() { | 1818 void Debug::ClearOneShot() { |
| 1818 // The current implementation just runs through all the breakpoints. When the | 1819 // The current implementation just runs through all the breakpoints. When the |
| 1819 // last break point for a function is removed that function is automatically | 1820 // last break point for a function is removed that function is automatically |
| 1820 // removed from the list. | 1821 // removed from the list. |
| 1821 | 1822 |
| 1822 DebugInfoListNode* node = debug_info_list_; | 1823 DebugInfoListNode* node = debug_info_list_; |
| 1823 while (node != NULL) { | 1824 while (node != NULL) { |
| (...skipping 2035 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3859 { | 3860 { |
| 3860 Locker locker(reinterpret_cast<v8::Isolate*>(isolate_)); | 3861 Locker locker(reinterpret_cast<v8::Isolate*>(isolate_)); |
| 3861 isolate_->debugger()->CallMessageDispatchHandler(); | 3862 isolate_->debugger()->CallMessageDispatchHandler(); |
| 3862 } | 3863 } |
| 3863 } | 3864 } |
| 3864 } | 3865 } |
| 3865 | 3866 |
| 3866 #endif // ENABLE_DEBUGGER_SUPPORT | 3867 #endif // ENABLE_DEBUGGER_SUPPORT |
| 3867 | 3868 |
| 3868 } } // namespace v8::internal | 3869 } } // namespace v8::internal |
| OLD | NEW |