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

Side by Side Diff: src/debug.h

Issue 1009903002: Revert of Remove kind field from StackHandler. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « src/arm64/macro-assembler-arm64.cc ('k') | src/debug.cc » ('j') | 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 #ifndef V8_DEBUG_H_ 5 #ifndef V8_DEBUG_H_
6 #define V8_DEBUG_H_ 6 #define V8_DEBUG_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/arguments.h" 9 #include "src/arguments.h"
10 #include "src/assembler.h" 10 #include "src/assembler.h"
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 // 418 //
419 // This class controls the debug info for all functions which currently have 419 // This class controls the debug info for all functions which currently have
420 // active breakpoints in them. This debug info is held in the heap root object 420 // active breakpoints in them. This debug info is held in the heap root object
421 // debug_info which is a FixedArray. Each entry in this list is of class 421 // debug_info which is a FixedArray. Each entry in this list is of class
422 // DebugInfo. 422 // DebugInfo.
423 class Debug { 423 class Debug {
424 public: 424 public:
425 // Debug event triggers. 425 // Debug event triggers.
426 void OnDebugBreak(Handle<Object> break_points_hit, bool auto_continue); 426 void OnDebugBreak(Handle<Object> break_points_hit, bool auto_continue);
427 427
428 void OnThrow(Handle<Object> exception); 428 void OnThrow(Handle<Object> exception, bool uncaught);
429 void OnPromiseReject(Handle<JSObject> promise, Handle<Object> value); 429 void OnPromiseReject(Handle<JSObject> promise, Handle<Object> value);
430 void OnCompileError(Handle<Script> script); 430 void OnCompileError(Handle<Script> script);
431 void OnBeforeCompile(Handle<Script> script); 431 void OnBeforeCompile(Handle<Script> script);
432 void OnAfterCompile(Handle<Script> script); 432 void OnAfterCompile(Handle<Script> script);
433 void OnPromiseEvent(Handle<JSObject> data); 433 void OnPromiseEvent(Handle<JSObject> data);
434 void OnAsyncTaskEvent(Handle<JSObject> data); 434 void OnAsyncTaskEvent(Handle<JSObject> data);
435 435
436 // API facing. 436 // API facing.
437 void SetEventListener(Handle<Object> callback, Handle<Object> data); 437 void SetEventListener(Handle<Object> callback, Handle<Object> data);
438 void SetMessageHandler(v8::Debug::MessageHandler handler); 438 void SetMessageHandler(v8::Debug::MessageHandler handler);
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
588 thread_local_.break_id_ = ++thread_local_.break_count_; 588 thread_local_.break_id_ = ++thread_local_.break_count_;
589 } 589 }
590 590
591 // Check whether there are commands in the command queue. 591 // Check whether there are commands in the command queue.
592 inline bool has_commands() const { return !command_queue_.IsEmpty(); } 592 inline bool has_commands() const { return !command_queue_.IsEmpty(); }
593 inline bool ignore_events() const { return is_suppressed_ || !is_active_; } 593 inline bool ignore_events() const { return is_suppressed_ || !is_active_; }
594 inline bool break_disabled() const { 594 inline bool break_disabled() const {
595 return break_disabled_ || in_debug_event_listener_; 595 return break_disabled_ || in_debug_event_listener_;
596 } 596 }
597 597
598 void OnException(Handle<Object> exception, Handle<Object> promise); 598 void OnException(Handle<Object> exception, bool uncaught,
599 Handle<Object> promise);
599 600
600 // Constructors for debug event objects. 601 // Constructors for debug event objects.
601 MUST_USE_RESULT MaybeHandle<Object> MakeJSObject( 602 MUST_USE_RESULT MaybeHandle<Object> MakeJSObject(
602 const char* constructor_name, 603 const char* constructor_name,
603 int argc, 604 int argc,
604 Handle<Object> argv[]); 605 Handle<Object> argv[]);
605 MUST_USE_RESULT MaybeHandle<Object> MakeExecutionState(); 606 MUST_USE_RESULT MaybeHandle<Object> MakeExecutionState();
606 MUST_USE_RESULT MaybeHandle<Object> MakeBreakEvent( 607 MUST_USE_RESULT MaybeHandle<Object> MakeBreakEvent(
607 Handle<Object> break_points_hit); 608 Handle<Object> break_points_hit);
608 MUST_USE_RESULT MaybeHandle<Object> MakeExceptionEvent( 609 MUST_USE_RESULT MaybeHandle<Object> MakeExceptionEvent(
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
840 // several frames above. 841 // several frames above.
841 // There is no calling conventions here, because it never actually gets 842 // There is no calling conventions here, because it never actually gets
842 // called, it only gets returned to. 843 // called, it only gets returned to.
843 static void GenerateFrameDropperLiveEdit(MacroAssembler* masm); 844 static void GenerateFrameDropperLiveEdit(MacroAssembler* masm);
844 }; 845 };
845 846
846 847
847 } } // namespace v8::internal 848 } } // namespace v8::internal
848 849
849 #endif // V8_DEBUG_H_ 850 #endif // V8_DEBUG_H_
OLDNEW
« no previous file with comments | « src/arm64/macro-assembler-arm64.cc ('k') | src/debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698