Index: src/inspector/v8-debugger.h |
diff --git a/src/inspector/v8-debugger.h b/src/inspector/v8-debugger.h |
index c45c76f7f922a33f05052f4bfa7f53e1bb0fc83d..4c5f7928d8060a331a7e28bd85239c28755dedec 100644 |
--- a/src/inspector/v8-debugger.h |
+++ b/src/inspector/v8-debugger.h |
@@ -48,6 +48,8 @@ class V8Debugger : public v8::debug::DebugDelegate { |
void stepIntoStatement(); |
void stepOverStatement(); |
void stepOutOfFunction(); |
+ Response stepIntoScheduledCallback(); |
+ bool stepIntoScheduledCallbackAvailable(); |
Response setScriptSource( |
const String16& sourceID, v8::Local<v8::String> newSource, bool dryRun, |
@@ -129,9 +131,12 @@ class V8Debugger : public v8::debug::DebugDelegate { |
void asyncTaskCreated(void* task, void* parentTask); |
void registerAsyncTaskIfNeeded(void* task); |
+ void continueProgramImpl(); |
+ |
// v8::debug::DebugEventListener implementation. |
- void PromiseEventOccurred(v8::debug::PromiseDebugActionType type, int id, |
- int parentId) override; |
+ void PromiseEventOccurred(v8::Local<v8::Context> context, |
+ v8::debug::PromiseDebugActionType type, int id, |
+ int parentId, bool breakable) override; |
void ScriptCompiled(v8::Local<v8::debug::Script> script, |
bool has_compile_error) override; |
void BreakProgramRequested(v8::Local<v8::Context> paused_context, |
@@ -145,6 +150,11 @@ class V8Debugger : public v8::debug::DebugDelegate { |
const v8::debug::Location& start, |
const v8::debug::Location& end) override; |
+ int currentContextGroupId(); |
+ void steppingOnPromiseEvent(v8::Local<v8::Context> context, |
+ v8::debug::PromiseDebugActionType type, |
+ void* task, void* parentPtr); |
+ |
v8::Isolate* m_isolate; |
V8InspectorImpl* m_inspector; |
int m_enableCount; |
@@ -171,6 +181,8 @@ class V8Debugger : public v8::debug::DebugDelegate { |
std::vector<std::unique_ptr<V8StackTraceImpl>> m_currentStacks; |
protocol::HashMap<V8DebuggerAgentImpl*, int> m_maxAsyncCallStackDepthMap; |
protocol::HashMap<void*, void*> m_parentTask; |
+ protocol::HashSet<void*> m_tasksWithScheduledBreak; |
+ void* m_createdPromiseTask = nullptr; |
v8::debug::ExceptionBreakState m_pauseOnExceptionsState; |