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, bool auto_continue) { | 2555 void Debug::OnDebugBreak(Handle<Object> break_points_hit, |
| 2556 bool auto_continue) { |
2556 // The caller provided for DebugScope. | 2557 // The caller provided for DebugScope. |
2557 AssertDebugContext(); | 2558 AssertDebugContext(); |
2558 // Bail out if there is no listener for this event | 2559 // Bail out if there is no listener for this event |
2559 if (ignore_events()) return; | 2560 if (ignore_events()) return; |
2560 | 2561 |
2561 HandleScope scope(isolate_); | 2562 HandleScope scope(isolate_); |
2562 // Create the event data object. | 2563 // Create the event data object. |
2563 Handle<Object> event_data; | 2564 Handle<Object> event_data; |
2564 // Bail out and don't call debugger if exception. | 2565 // Bail out and don't call debugger if exception. |
2565 if (!MakeBreakEvent(break_points_hit).ToHandle(&event_data)) return; | 2566 if (!MakeBreakEvent(break_points_hit).ToHandle(&event_data)) return; |
(...skipping 797 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3363 } | 3364 } |
3364 | 3365 |
3365 | 3366 |
3366 void LockingCommandMessageQueue::Clear() { | 3367 void LockingCommandMessageQueue::Clear() { |
3367 base::LockGuard<base::Mutex> lock_guard(&mutex_); | 3368 base::LockGuard<base::Mutex> lock_guard(&mutex_); |
3368 queue_.Clear(); | 3369 queue_.Clear(); |
3369 } | 3370 } |
3370 | 3371 |
3371 } // namespace internal | 3372 } // namespace internal |
3372 } // namespace v8 | 3373 } // namespace v8 |
OLD | NEW |