| 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 #include "src/debug/debug.h" | 5 #include "src/debug/debug.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "src/api.h" | 9 #include "src/api.h" |
| 10 #include "src/arguments.h" | 10 #include "src/arguments.h" |
| (...skipping 918 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 929 ClearOneShot(); | 929 ClearOneShot(); |
| 930 | 930 |
| 931 // Iterate through the JavaScript stack looking for handlers. | 931 // Iterate through the JavaScript stack looking for handlers. |
| 932 JavaScriptFrameIterator it(isolate_); | 932 JavaScriptFrameIterator it(isolate_); |
| 933 while (!it.done()) { | 933 while (!it.done()) { |
| 934 JavaScriptFrame* frame = it.frame(); | 934 JavaScriptFrame* frame = it.frame(); |
| 935 if (frame->LookupExceptionHandlerInTable(nullptr, nullptr) > 0) break; | 935 if (frame->LookupExceptionHandlerInTable(nullptr, nullptr) > 0) break; |
| 936 it.Advance(); | 936 it.Advance(); |
| 937 } | 937 } |
| 938 | 938 |
| 939 if (last_step_action() == StepNext) { | 939 if (last_step_action() == StepNext || last_step_action() == StepOut) { |
| 940 while (!it.done()) { | 940 while (!it.done()) { |
| 941 Address current_fp = it.frame()->UnpaddedFP(); | 941 Address current_fp = it.frame()->UnpaddedFP(); |
| 942 if (current_fp >= thread_local_.target_fp_) break; | 942 if (current_fp >= thread_local_.target_fp_) break; |
| 943 it.Advance(); | 943 it.Advance(); |
| 944 } | 944 } |
| 945 } | 945 } |
| 946 | 946 |
| 947 // Find the closest Javascript frame we can flood with one-shots. | 947 // Find the closest Javascript frame we can flood with one-shots. |
| 948 while (!it.done() && | 948 while (!it.done() && |
| 949 !it.frame()->function()->shared()->IsSubjectToDebugging()) { | 949 !it.frame()->function()->shared()->IsSubjectToDebugging()) { |
| (...skipping 1613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2563 } | 2563 } |
| 2564 | 2564 |
| 2565 | 2565 |
| 2566 void LockingCommandMessageQueue::Clear() { | 2566 void LockingCommandMessageQueue::Clear() { |
| 2567 base::LockGuard<base::Mutex> lock_guard(&mutex_); | 2567 base::LockGuard<base::Mutex> lock_guard(&mutex_); |
| 2568 queue_.Clear(); | 2568 queue_.Clear(); |
| 2569 } | 2569 } |
| 2570 | 2570 |
| 2571 } // namespace internal | 2571 } // namespace internal |
| 2572 } // namespace v8 | 2572 } // namespace v8 |
| OLD | NEW |