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

Unified Diff: Source/core/inspector/AsyncCallStackTracker.cpp

Issue 297683002: Remove DevTools instrumentation of Blink promises. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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 | « Source/core/inspector/AsyncCallStackTracker.h ('k') | Source/core/inspector/InspectorDebuggerAgent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « Source/core/inspector/AsyncCallStackTracker.h ('k') | Source/core/inspector/InspectorDebuggerAgent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698