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

Side by Side Diff: src/debug/debug.h

Issue 1833563002: [V8] Removed debugger V8::PromiseEvent (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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 | « include/v8-debug.h ('k') | src/debug/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_DEBUG_H_ 5 #ifndef V8_DEBUG_DEBUG_H_
6 #define V8_DEBUG_DEBUG_H_ 6 #define V8_DEBUG_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 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 class Debug { 404 class Debug {
405 public: 405 public:
406 // Debug event triggers. 406 // Debug event triggers.
407 void OnDebugBreak(Handle<Object> break_points_hit, bool auto_continue); 407 void OnDebugBreak(Handle<Object> break_points_hit, bool auto_continue);
408 408
409 void OnThrow(Handle<Object> exception); 409 void OnThrow(Handle<Object> exception);
410 void OnPromiseReject(Handle<JSObject> promise, Handle<Object> value); 410 void OnPromiseReject(Handle<JSObject> promise, Handle<Object> value);
411 void OnCompileError(Handle<Script> script); 411 void OnCompileError(Handle<Script> script);
412 void OnBeforeCompile(Handle<Script> script); 412 void OnBeforeCompile(Handle<Script> script);
413 void OnAfterCompile(Handle<Script> script); 413 void OnAfterCompile(Handle<Script> script);
414 void OnPromiseEvent(Handle<JSObject> data);
415 void OnAsyncTaskEvent(Handle<JSObject> data); 414 void OnAsyncTaskEvent(Handle<JSObject> data);
416 415
417 // API facing. 416 // API facing.
418 void SetEventListener(Handle<Object> callback, Handle<Object> data); 417 void SetEventListener(Handle<Object> callback, Handle<Object> data);
419 void SetMessageHandler(v8::Debug::MessageHandler handler); 418 void SetMessageHandler(v8::Debug::MessageHandler handler);
420 void EnqueueCommandMessage(Vector<const uint16_t> command, 419 void EnqueueCommandMessage(Vector<const uint16_t> command,
421 v8::Debug::ClientData* client_data = NULL); 420 v8::Debug::ClientData* client_data = NULL);
422 MUST_USE_RESULT MaybeHandle<Object> Call(Handle<Object> fun, 421 MUST_USE_RESULT MaybeHandle<Object> Call(Handle<Object> fun,
423 Handle<Object> data); 422 Handle<Object> data);
424 Handle<Context> GetDebugContext(); 423 Handle<Context> GetDebugContext();
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
562 // Constructors for debug event objects. 561 // Constructors for debug event objects.
563 MUST_USE_RESULT MaybeHandle<Object> MakeExecutionState(); 562 MUST_USE_RESULT MaybeHandle<Object> MakeExecutionState();
564 MUST_USE_RESULT MaybeHandle<Object> MakeBreakEvent( 563 MUST_USE_RESULT MaybeHandle<Object> MakeBreakEvent(
565 Handle<Object> break_points_hit); 564 Handle<Object> break_points_hit);
566 MUST_USE_RESULT MaybeHandle<Object> MakeExceptionEvent( 565 MUST_USE_RESULT MaybeHandle<Object> MakeExceptionEvent(
567 Handle<Object> exception, 566 Handle<Object> exception,
568 bool uncaught, 567 bool uncaught,
569 Handle<Object> promise); 568 Handle<Object> promise);
570 MUST_USE_RESULT MaybeHandle<Object> MakeCompileEvent( 569 MUST_USE_RESULT MaybeHandle<Object> MakeCompileEvent(
571 Handle<Script> script, v8::DebugEvent type); 570 Handle<Script> script, v8::DebugEvent type);
572 MUST_USE_RESULT MaybeHandle<Object> MakePromiseEvent(
573 Handle<JSObject> promise_event);
574 MUST_USE_RESULT MaybeHandle<Object> MakeAsyncTaskEvent( 571 MUST_USE_RESULT MaybeHandle<Object> MakeAsyncTaskEvent(
575 Handle<JSObject> task_event); 572 Handle<JSObject> task_event);
576 573
577 // Mirror cache handling. 574 // Mirror cache handling.
578 void ClearMirrorCache(); 575 void ClearMirrorCache();
579 576
580 MaybeHandle<Object> PromiseHasUserDefinedRejectHandler( 577 MaybeHandle<Object> PromiseHasUserDefinedRejectHandler(
581 Handle<JSObject> promise); 578 Handle<JSObject> promise);
582 579
583 void CallEventCallback(v8::DebugEvent event, 580 void CallEventCallback(v8::DebugEvent event,
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
787 Handle<Code> code); 784 Handle<Code> code);
788 static bool DebugBreakSlotIsPatched(Address pc); 785 static bool DebugBreakSlotIsPatched(Address pc);
789 static void ClearDebugBreakSlot(Isolate* isolate, Address pc); 786 static void ClearDebugBreakSlot(Isolate* isolate, Address pc);
790 }; 787 };
791 788
792 789
793 } // namespace internal 790 } // namespace internal
794 } // namespace v8 791 } // namespace v8
795 792
796 #endif // V8_DEBUG_DEBUG_H_ 793 #endif // V8_DEBUG_DEBUG_H_
OLDNEW
« no previous file with comments | « include/v8-debug.h ('k') | src/debug/debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698