| 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 1181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1192 // Save reference to the code as we may need it to find out arguments | 1192 // Save reference to the code as we may need it to find out arguments |
| 1193 // count for 'step in' later. | 1193 // count for 'step in' later. |
| 1194 call_function_stub = Handle<Code>(maybe_call_function_stub); | 1194 call_function_stub = Handle<Code>(maybe_call_function_stub); |
| 1195 } | 1195 } |
| 1196 } | 1196 } |
| 1197 | 1197 |
| 1198 // If this is the last break code target step out is the only possibility. | 1198 // If this is the last break code target step out is the only possibility. |
| 1199 if (it.IsExit() || step_action == StepOut) { | 1199 if (it.IsExit() || step_action == StepOut) { |
| 1200 if (step_action == StepOut) { | 1200 if (step_action == StepOut) { |
| 1201 // Skip step_count frames starting with the current one. | 1201 // Skip step_count frames starting with the current one. |
| 1202 while(step_count-- > 0 && !frames_it.done()) { | 1202 while (step_count-- > 0 && !frames_it.done()) { |
| 1203 frames_it.Advance(); | 1203 frames_it.Advance(); |
| 1204 } | 1204 } |
| 1205 } else { | 1205 } else { |
| 1206 ASSERT(it.IsExit()); | 1206 ASSERT(it.IsExit()); |
| 1207 frames_it.Advance(); | 1207 frames_it.Advance(); |
| 1208 } | 1208 } |
| 1209 // Skip builtin functions on the stack. | 1209 // Skip builtin functions on the stack. |
| 1210 while(!frames_it.done() && | 1210 while (!frames_it.done() && |
| 1211 JSFunction::cast(frames_it.frame()->function())->IsBuiltin()) { | 1211 JSFunction::cast(frames_it.frame()->function())->IsBuiltin()) { |
| 1212 frames_it.Advance(); | 1212 frames_it.Advance(); |
| 1213 } | 1213 } |
| 1214 // Step out: If there is a JavaScript caller frame, we need to | 1214 // Step out: If there is a JavaScript caller frame, we need to |
| 1215 // flood it with breakpoints. | 1215 // flood it with breakpoints. |
| 1216 if (!frames_it.done()) { | 1216 if (!frames_it.done()) { |
| 1217 // Fill the function to return to with one-shot break points. | 1217 // Fill the function to return to with one-shot break points. |
| 1218 JSFunction* function = JSFunction::cast(frames_it.frame()->function()); | 1218 JSFunction* function = JSFunction::cast(frames_it.frame()->function()); |
| 1219 FloodWithOneShot(Handle<SharedFunctionInfo>(function->shared())); | 1219 FloodWithOneShot(Handle<SharedFunctionInfo>(function->shared())); |
| 1220 // Set target frame pointer. | 1220 // Set target frame pointer. |
| 1221 ActivateStepOut(frames_it.frame()); | 1221 ActivateStepOut(frames_it.frame()); |
| (...skipping 1500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2722 | 2722 |
| 2723 | 2723 |
| 2724 void LockingCommandMessageQueue::Clear() { | 2724 void LockingCommandMessageQueue::Clear() { |
| 2725 ScopedLock sl(lock_); | 2725 ScopedLock sl(lock_); |
| 2726 queue_.Clear(); | 2726 queue_.Clear(); |
| 2727 } | 2727 } |
| 2728 | 2728 |
| 2729 #endif // ENABLE_DEBUGGER_SUPPORT | 2729 #endif // ENABLE_DEBUGGER_SUPPORT |
| 2730 | 2730 |
| 2731 } } // namespace v8::internal | 2731 } } // namespace v8::internal |
| OLD | NEW |