Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(41)

Side by Side Diff: src/debug.cc

Issue 255163004: Rename debug event enum to be consistent. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « include/v8-debug.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « include/v8-debug.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698