| 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 "src/api.h" | 7 #include "src/api.h" |
| 8 #include "src/arguments.h" | 8 #include "src/arguments.h" |
| 9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
| 10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
| (...skipping 920 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 931 if (!frames_it.done()) { | 931 if (!frames_it.done()) { |
| 932 // Fill the function to return to with one-shot break points. | 932 // Fill the function to return to with one-shot break points. |
| 933 JSFunction* function = frames_it.frame()->function(); | 933 JSFunction* function = frames_it.frame()->function(); |
| 934 FloodWithOneShot(Handle<JSFunction>(function)); | 934 FloodWithOneShot(Handle<JSFunction>(function)); |
| 935 // Set target frame pointer. | 935 // Set target frame pointer. |
| 936 ActivateStepOut(frames_it.frame()); | 936 ActivateStepOut(frames_it.frame()); |
| 937 } | 937 } |
| 938 return; | 938 return; |
| 939 } | 939 } |
| 940 | 940 |
| 941 if (step_action != StepNext && step_action != StepMin) { | 941 if (step_action != StepNext) { |
| 942 // If there's restarter frame on top of the stack, just get the pointer | 942 // If there's restarter frame on top of the stack, just get the pointer |
| 943 // to function which is going to be restarted. | 943 // to function which is going to be restarted. |
| 944 if (thread_local_.restarter_frame_function_pointer_ != NULL) { | 944 if (thread_local_.restarter_frame_function_pointer_ != NULL) { |
| 945 Handle<JSFunction> restarted_function( | 945 Handle<JSFunction> restarted_function( |
| 946 JSFunction::cast(*thread_local_.restarter_frame_function_pointer_)); | 946 JSFunction::cast(*thread_local_.restarter_frame_function_pointer_)); |
| 947 FloodWithOneShot(restarted_function); | 947 FloodWithOneShot(restarted_function); |
| 948 } else if (location.IsStepInLocation()) { | 948 } else if (location.IsStepInLocation()) { |
| 949 // Find target function on the expression stack. | 949 // Find target function on the expression stack. |
| 950 // Expression stack looks like this (top to bottom): | 950 // Expression stack looks like this (top to bottom): |
| 951 // argN | 951 // argN |
| (...skipping 1650 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2602 } | 2602 } |
| 2603 | 2603 |
| 2604 | 2604 |
| 2605 void LockingCommandMessageQueue::Clear() { | 2605 void LockingCommandMessageQueue::Clear() { |
| 2606 base::LockGuard<base::Mutex> lock_guard(&mutex_); | 2606 base::LockGuard<base::Mutex> lock_guard(&mutex_); |
| 2607 queue_.Clear(); | 2607 queue_.Clear(); |
| 2608 } | 2608 } |
| 2609 | 2609 |
| 2610 } // namespace internal | 2610 } // namespace internal |
| 2611 } // namespace v8 | 2611 } // namespace v8 |
| OLD | NEW |