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 "v8.h" | 5 #include "v8.h" |
6 | 6 |
7 #include "api.h" | 7 #include "api.h" |
8 #include "arguments.h" | 8 #include "arguments.h" |
9 #include "bootstrapper.h" | 9 #include "bootstrapper.h" |
10 #include "code-stubs.h" | 10 #include "code-stubs.h" |
(...skipping 2651 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2662 | 2662 |
2663 // Enter the debugger. | 2663 // Enter the debugger. |
2664 EnterDebugger debugger(isolate_); | 2664 EnterDebugger debugger(isolate_); |
2665 if (debugger.FailedToEnter()) return; | 2665 if (debugger.FailedToEnter()) return; |
2666 | 2666 |
2667 // Clear all current stepping setup. | 2667 // Clear all current stepping setup. |
2668 debug->ClearStepping(); | 2668 debug->ClearStepping(); |
2669 | 2669 |
2670 // Determine event; | 2670 // Determine event; |
2671 DebugEvent event = promise->IsUndefined() | 2671 DebugEvent event = promise->IsUndefined() |
2672 ? v8::Exception : v8::UncaughtExceptionInPromise; | 2672 ? v8::Exception : v8::PendingExceptionInPromise; |
2673 | 2673 |
2674 // Create the event data object. | 2674 // Create the event data object. |
2675 Handle<Object> event_data; | 2675 Handle<Object> event_data; |
2676 // Bail out and don't call debugger if exception. | 2676 // Bail out and don't call debugger if exception. |
2677 if (!MakeExceptionEvent( | 2677 if (!MakeExceptionEvent( |
2678 exception, uncaught, promise).ToHandle(&event_data)) { | 2678 exception, uncaught, promise).ToHandle(&event_data)) { |
2679 return; | 2679 return; |
2680 } | 2680 } |
2681 | 2681 |
2682 // Process debug event. | 2682 // Process debug event. |
(...skipping 1037 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3720 already_signalled_ = false; | 3720 already_signalled_ = false; |
3721 } | 3721 } |
3722 { | 3722 { |
3723 Locker locker(reinterpret_cast<v8::Isolate*>(isolate_)); | 3723 Locker locker(reinterpret_cast<v8::Isolate*>(isolate_)); |
3724 isolate_->debugger()->CallMessageDispatchHandler(); | 3724 isolate_->debugger()->CallMessageDispatchHandler(); |
3725 } | 3725 } |
3726 } | 3726 } |
3727 } | 3727 } |
3728 | 3728 |
3729 } } // namespace v8::internal | 3729 } } // namespace v8::internal |
OLD | NEW |