Index: Source/core/inspector/InspectorDebuggerAgent.cpp |
diff --git a/Source/core/inspector/InspectorDebuggerAgent.cpp b/Source/core/inspector/InspectorDebuggerAgent.cpp |
index dfe81dd4afc9e02306e2894b7f22af48d828f4e3..00e7752d7c3f3dcda9eac797786403335d21d1cb 100644 |
--- a/Source/core/inspector/InspectorDebuggerAgent.cpp |
+++ b/Source/core/inspector/InspectorDebuggerAgent.cpp |
@@ -775,6 +775,24 @@ void InspectorDebuggerAgent::didDeliverMutationRecords() |
m_asyncCallStackTracker.didFireAsyncCall(); |
} |
+void InspectorDebuggerAgent::didPostPromiseTask(ExecutionContext* context, ExecutionContextTask* task, bool isFulfilled) |
+{ |
+ if (m_asyncCallStackTracker.isEnabled()) |
+ m_asyncCallStackTracker.didPostPromiseTask(context, task, isFulfilled, scriptDebugServer().currentCallFrames()); |
+} |
+ |
+void InspectorDebuggerAgent::willPerformPromiseTask(ExecutionContext* context, ExecutionContextTask* task) |
+{ |
+ if (m_asyncCallStackTracker.isEnabled()) |
+ m_asyncCallStackTracker.willPerformPromiseTask(context, task); |
+} |
+ |
+void InspectorDebuggerAgent::didPerformPromiseTask() |
+{ |
+ if (m_asyncCallStackTracker.isEnabled()) |
+ m_asyncCallStackTracker.didFireAsyncCall(); |
+} |
+ |
void InspectorDebuggerAgent::pause(ErrorString*) |
{ |
if (m_javaScriptPauseScheduled) |