| Index: Source/core/inspector/AsyncCallStackTracker.cpp
|
| diff --git a/Source/core/inspector/AsyncCallStackTracker.cpp b/Source/core/inspector/AsyncCallStackTracker.cpp
|
| index 473d65e803d271216a1ef44625a3d09ec9464e93..572e56ff0d53233c8541c6d47819f35aeb58d6f5 100644
|
| --- a/Source/core/inspector/AsyncCallStackTracker.cpp
|
| +++ b/Source/core/inspector/AsyncCallStackTracker.cpp
|
| @@ -48,8 +48,6 @@ static const char setIntervalName[] = "setInterval";
|
| static const char requestAnimationFrameName[] = "requestAnimationFrame";
|
| static const char xhrSendName[] = "XMLHttpRequest.send";
|
| static const char enqueueMutationRecordName[] = "Mutation";
|
| -static const char promiseResolved[] = "Promise.resolve";
|
| -static const char promiseRejected[] = "Promise.reject";
|
|
|
| }
|
|
|
| @@ -133,7 +131,6 @@ public:
|
| HashMap<EventTarget*, EventListenerAsyncCallChainVectorHashMap> m_eventTargetCallChains;
|
| HashMap<EventTarget*, RefPtr<AsyncCallChain> > m_xhrCallChains;
|
| HashMap<MutationObserver*, RefPtr<AsyncCallChain> > m_mutationObserverCallChains;
|
| - HashMap<ExecutionContextTask*, RefPtr<AsyncCallChain> > m_promiseTaskCallChains;
|
| };
|
|
|
| static XMLHttpRequest* toXmlHttpRequest(EventTarget* eventTarget)
|
| @@ -369,30 +366,6 @@ void AsyncCallStackTracker::willDeliverMutationRecords(ExecutionContext* context
|
| setCurrentAsyncCallChain(nullptr);
|
| }
|
|
|
| -void AsyncCallStackTracker::didPostPromiseTask(ExecutionContext* context, ExecutionContextTask* task, bool isResolved, const ScriptValue& callFrames)
|
| -{
|
| - ASSERT(context);
|
| - ASSERT(isEnabled());
|
| - if (validateCallFrames(callFrames)) {
|
| - ExecutionContextData* data = createContextDataIfNeeded(context);
|
| - data->m_promiseTaskCallChains.set(task, createAsyncCallChain(isResolved ? promiseResolved : promiseRejected, callFrames));
|
| - } else if (m_currentAsyncCallChain) {
|
| - // Propagate async call stack to the re-posted task to update a derived Promise.
|
| - ExecutionContextData* data = createContextDataIfNeeded(context);
|
| - data->m_promiseTaskCallChains.set(task, m_currentAsyncCallChain);
|
| - }
|
| -}
|
| -
|
| -void AsyncCallStackTracker::willPerformPromiseTask(ExecutionContext* context, ExecutionContextTask* task)
|
| -{
|
| - ASSERT(context);
|
| - ASSERT(isEnabled());
|
| - if (ExecutionContextData* data = m_executionContextDataMap.get(context))
|
| - setCurrentAsyncCallChain(data->m_promiseTaskCallChains.take(task));
|
| - else
|
| - setCurrentAsyncCallChain(nullptr);
|
| -}
|
| -
|
| void AsyncCallStackTracker::didFireAsyncCall()
|
| {
|
| clearCurrentAsyncCallChain();
|
|
|