| 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/v8.h" | 5 #include "src/v8.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 2534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2545 // Create the compile state object. | 2545 // Create the compile state object. |
| 2546 Handle<Object> event_data; | 2546 Handle<Object> event_data; |
| 2547 // Bail out and don't call debugger if exception. | 2547 // Bail out and don't call debugger if exception. |
| 2548 if (!MakeCompileEvent(script, v8::CompileError).ToHandle(&event_data)) return; | 2548 if (!MakeCompileEvent(script, v8::CompileError).ToHandle(&event_data)) return; |
| 2549 | 2549 |
| 2550 // Process debug event. | 2550 // Process debug event. |
| 2551 ProcessDebugEvent(v8::CompileError, Handle<JSObject>::cast(event_data), true); | 2551 ProcessDebugEvent(v8::CompileError, Handle<JSObject>::cast(event_data), true); |
| 2552 } | 2552 } |
| 2553 | 2553 |
| 2554 | 2554 |
| 2555 void Debug::OnDebugBreak(Handle<Object> break_points_hit, | 2555 void Debug::OnDebugBreak(Handle<Object> break_points_hit, bool auto_continue) { |
| 2556 bool auto_continue) { | |
| 2557 // The caller provided for DebugScope. | 2556 // The caller provided for DebugScope. |
| 2558 AssertDebugContext(); | 2557 AssertDebugContext(); |
| 2559 // Bail out if there is no listener for this event | 2558 // Bail out if there is no listener for this event |
| 2560 if (ignore_events()) return; | 2559 if (ignore_events()) return; |
| 2561 | 2560 |
| 2562 HandleScope scope(isolate_); | 2561 HandleScope scope(isolate_); |
| 2563 // Create the event data object. | 2562 // Create the event data object. |
| 2564 Handle<Object> event_data; | 2563 Handle<Object> event_data; |
| 2565 // Bail out and don't call debugger if exception. | 2564 // Bail out and don't call debugger if exception. |
| 2566 if (!MakeBreakEvent(break_points_hit).ToHandle(&event_data)) return; | 2565 if (!MakeBreakEvent(break_points_hit).ToHandle(&event_data)) return; |
| (...skipping 797 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3364 } | 3363 } |
| 3365 | 3364 |
| 3366 | 3365 |
| 3367 void LockingCommandMessageQueue::Clear() { | 3366 void LockingCommandMessageQueue::Clear() { |
| 3368 base::LockGuard<base::Mutex> lock_guard(&mutex_); | 3367 base::LockGuard<base::Mutex> lock_guard(&mutex_); |
| 3369 queue_.Clear(); | 3368 queue_.Clear(); |
| 3370 } | 3369 } |
| 3371 | 3370 |
| 3372 } // namespace internal | 3371 } // namespace internal |
| 3373 } // namespace v8 | 3372 } // namespace v8 |
| OLD | NEW |