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

Unified Diff: src/inspector/v8-debugger.h

Issue 2723273002: [inspector] introduced Debugger.scheduleStepIntoAsync (Closed)
Patch Set: fixed tests Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/inspector/js_protocol.json ('k') | src/inspector/v8-debugger.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/inspector/v8-debugger.h
diff --git a/src/inspector/v8-debugger.h b/src/inspector/v8-debugger.h
index c45c76f7f922a33f05052f4bfa7f53e1bb0fc83d..693298ad586110aebeab98f5fb42a105a4a8fb1c 100644
--- a/src/inspector/v8-debugger.h
+++ b/src/inspector/v8-debugger.h
@@ -130,8 +130,9 @@ class V8Debugger : public v8::debug::DebugDelegate {
void registerAsyncTaskIfNeeded(void* task);
// 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 createdByUser) override;
void ScriptCompiled(v8::Local<v8::debug::Script> script,
bool has_compile_error) override;
void BreakProgramRequested(v8::Local<v8::Context> paused_context,
@@ -145,6 +146,12 @@ class V8Debugger : public v8::debug::DebugDelegate {
const v8::debug::Location& start,
const v8::debug::Location& end) override;
+ int currentContextGroupId();
+ void handleAsyncTaskStepping(v8::Local<v8::Context> context,
+ v8::debug::PromiseDebugActionType type,
+ void* task, void* parentTask,
+ bool createdByUser);
+
v8::Isolate* m_isolate;
V8InspectorImpl* m_inspector;
int m_enableCount;
@@ -171,6 +178,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::HashMap<void*, void*> m_firstNextTask;
+ void* m_taskWithScheduledBreak = nullptr;
v8::debug::ExceptionBreakState m_pauseOnExceptionsState;
« no previous file with comments | « src/inspector/js_protocol.json ('k') | src/inspector/v8-debugger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698