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

Side by Side Diff: Source/core/inspector/InspectorDebuggerAgent.cpp

Issue 818673004: Explicitly dispose of async call chains. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 12 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/inspector/AsyncCallChainMap.h ('k') | Source/core/inspector/V8AsyncCallTracker.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2013 Google Inc. All rights reserved. 3 * Copyright (C) 2013 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 , m_recursionLevelForStepFrame(0) 128 , m_recursionLevelForStepFrame(0)
129 , m_skipAllPauses(false) 129 , m_skipAllPauses(false)
130 , m_skipContentScripts(false) 130 , m_skipContentScripts(false)
131 , m_cachedSkipStackGeneration(0) 131 , m_cachedSkipStackGeneration(0)
132 , m_promiseTracker(PromiseTracker::create()) 132 , m_promiseTracker(PromiseTracker::create())
133 , m_maxAsyncCallStackDepth(0) 133 , m_maxAsyncCallStackDepth(0)
134 , m_currentAsyncCallChain(nullptr) 134 , m_currentAsyncCallChain(nullptr)
135 , m_nestedAsyncCallCount(0) 135 , m_nestedAsyncCallCount(0)
136 , m_performingAsyncStepIn(false) 136 , m_performingAsyncStepIn(false)
137 { 137 {
138 m_v8AsyncCallTracker = adoptPtrWillBeNoop(new V8AsyncCallTracker(this)); 138 m_v8AsyncCallTracker = V8AsyncCallTracker::create(this);
139 } 139 }
140 140
141 InspectorDebuggerAgent::~InspectorDebuggerAgent() 141 InspectorDebuggerAgent::~InspectorDebuggerAgent()
142 { 142 {
143 #if !ENABLE(OILPAN) 143 #if !ENABLE(OILPAN)
144 ASSERT(!m_instrumentingAgents->inspectorDebuggerAgent()); 144 ASSERT(!m_instrumentingAgents->inspectorDebuggerAgent());
145 #endif 145 #endif
146 } 146 }
147 147
148 void InspectorDebuggerAgent::init() 148 void InspectorDebuggerAgent::init()
(...skipping 1415 matching lines...) Expand 10 before | Expand all | Expand 10 after
1564 visitor->trace(m_v8AsyncCallTracker); 1564 visitor->trace(m_v8AsyncCallTracker);
1565 visitor->trace(m_promiseTracker); 1565 visitor->trace(m_promiseTracker);
1566 visitor->trace(m_asyncOperationsForStepInto); 1566 visitor->trace(m_asyncOperationsForStepInto);
1567 visitor->trace(m_currentAsyncCallChain); 1567 visitor->trace(m_currentAsyncCallChain);
1568 visitor->trace(m_asyncCallTrackingListeners); 1568 visitor->trace(m_asyncCallTrackingListeners);
1569 #endif 1569 #endif
1570 InspectorBaseAgent::trace(visitor); 1570 InspectorBaseAgent::trace(visitor);
1571 } 1571 }
1572 1572
1573 } // namespace blink 1573 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/inspector/AsyncCallChainMap.h ('k') | Source/core/inspector/V8AsyncCallTracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698