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

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

Issue 2816373004: [inspector] don't enter to debugger context for PromiseEventOccurred (Closed)
Patch Set: Created 3 years, 8 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 | « no previous file | 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/assembler.h" 9 #include "src/assembler.h"
10 #include "src/base/atomicops.h" 10 #include "src/base/atomicops.h"
(...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after
609 609
610 friend Handle<FixedArray> GetDebuggedFunctions(); // In test-debug.cc 610 friend Handle<FixedArray> GetDebuggedFunctions(); // In test-debug.cc
611 friend void CheckDebuggerUnloaded(bool check_functions); // In test-debug.cc 611 friend void CheckDebuggerUnloaded(bool check_functions); // In test-debug.cc
612 612
613 DISALLOW_COPY_AND_ASSIGN(Debug); 613 DISALLOW_COPY_AND_ASSIGN(Debug);
614 }; 614 };
615 615
616 class LegacyDebugDelegate : public v8::debug::DebugDelegate { 616 class LegacyDebugDelegate : public v8::debug::DebugDelegate {
617 public: 617 public:
618 explicit LegacyDebugDelegate(Isolate* isolate) : isolate_(isolate) {} 618 explicit LegacyDebugDelegate(Isolate* isolate) : isolate_(isolate) {}
619 void PromiseEventOccurred(v8::Local<v8::Context> context, 619 void PromiseEventOccurred(v8::debug::PromiseDebugActionType type, int id,
620 v8::debug::PromiseDebugActionType type, int id,
621 int parent_id, bool created_by_user) override; 620 int parent_id, bool created_by_user) override;
622 void ScriptCompiled(v8::Local<v8::debug::Script> script, 621 void ScriptCompiled(v8::Local<v8::debug::Script> script,
623 bool has_compile_error) override; 622 bool has_compile_error) override;
624 void BreakProgramRequested(v8::Local<v8::Context> paused_context, 623 void BreakProgramRequested(v8::Local<v8::Context> paused_context,
625 v8::Local<v8::Object> exec_state, 624 v8::Local<v8::Object> exec_state,
626 v8::Local<v8::Value> break_points_hit) override; 625 v8::Local<v8::Value> break_points_hit) override;
627 void ExceptionThrown(v8::Local<v8::Context> paused_context, 626 void ExceptionThrown(v8::Local<v8::Context> paused_context,
628 v8::Local<v8::Object> exec_state, 627 v8::Local<v8::Object> exec_state,
629 v8::Local<v8::Value> exception, 628 v8::Local<v8::Value> exception,
630 v8::Local<v8::Value> promise, bool is_uncaught) override; 629 v8::Local<v8::Value> promise, bool is_uncaught) override;
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
807 Handle<Code> code); 806 Handle<Code> code);
808 static bool DebugBreakSlotIsPatched(Address pc); 807 static bool DebugBreakSlotIsPatched(Address pc);
809 static void ClearDebugBreakSlot(Isolate* isolate, Address pc); 808 static void ClearDebugBreakSlot(Isolate* isolate, Address pc);
810 }; 809 };
811 810
812 811
813 } // namespace internal 812 } // namespace internal
814 } // namespace v8 813 } // namespace v8
815 814
816 #endif // V8_DEBUG_DEBUG_H_ 815 #endif // V8_DEBUG_DEBUG_H_
OLDNEW
« no previous file with comments | « no previous file | src/debug/debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698