Lines Matching refs:contextId
76 return contextGroupId(InspectedContext::contextId(context)); in contextGroupId()
79 int V8InspectorImpl::contextGroupId(int contextId) const { in contextGroupId()
80 auto it = m_contextIdToGroupIdMap.find(contextId); in contextGroupId()
175 int contextId) const { in getContext()
176 if (!groupId || !contextId) return nullptr; in getContext()
181 ContextByIdMap::iterator contextIt = contextGroupIt->second->find(contextId); in getContext()
187 InspectedContext* V8InspectorImpl::getContext(int contextId) const { in getContext()
188 return getContext(contextGroupId(contextId), contextId); in getContext()
192 int groupId, v8::Maybe<int> contextId) { in contextById() argument
193 if (contextId.IsNothing()) { in contextById()
198 InspectedContext* context = getContext(contextId.FromJust()); in contextById()
203 int contextId = ++m_lastContextId; in contextCreated() local
204 InspectedContext* context = new InspectedContext(this, info, contextId); in contextCreated()
205 m_contextIdToGroupIdMap[contextId] = info.contextGroupId; in contextCreated()
216 DCHECK(contextById->find(contextId) == contextById->cend()); in contextCreated()
217 (*contextById)[contextId].reset(context); in contextCreated()
226 int contextId = InspectedContext::contextId(context); in contextDestroyed() local
228 contextCollected(groupId, contextId); in contextDestroyed()
231 void V8InspectorImpl::contextCollected(int groupId, int contextId) { in contextCollected() argument
232 m_contextIdToGroupIdMap.erase(contextId); in contextCollected()
236 storageIt->second->contextDestroyed(contextId); in contextCollected()
238 InspectedContext* inspectedContext = getContext(groupId, contextId); in contextCollected()
244 discardInspectedContext(groupId, contextId); in contextCollected()
275 InspectedContext::contextId(context), exception, exceptionId); in exceptionThrown()
342 int contextId) { in discardInspectedContext() argument
343 if (!getContext(contextGroupId, contextId)) return; in discardInspectedContext()
344 m_contexts[contextGroupId]->erase(contextId); in discardInspectedContext()
370 for (auto& contextId : ids) { in forEachContext() local
373 auto contextIt = it->second->find(contextId); in forEachContext()