Lines Matching refs:item
73 const HandleWithStateReconstruction& item) { in save() argument
75 const auto& parents = item.states[state].parentHandles; in save()
91 const auto& item = mHandleReconstructions.get(handle.first)->states[handle.second]; in save() local
92 for (const auto& childHandle : item.childHandles) { in save()
105 auto item = mHandleReconstructions.get(handle.first)->states[handle.second]; in save() local
106 for (uint64_t apiRef : item.apiRefs) { in save()
124 auto item = mApiTrace.get(apiHandle); in save() local
127 totalApiTraceSize += item->traceBytes; // the actual trace in save()
137 auto item = mApiTrace.get(apiHandle); in save() local
138 for (auto createdHandle : item->createdHandles) { in save()
152 auto item = mApiTrace.get(apiHandle); in save() local
154 DEBUG_RECON("saving api handle 0x%lx op code %d\n", apiHandle, item->opCode); in save()
155 memcpy(apiTracePtr, &item->opCode, sizeof(uint32_t)); in save()
157 uint32_t traceBytesForSnapshot = item->traceBytes + 8; in save()
162 memcpy(apiTracePtr, item->trace.data(), item->traceBytes); in save()
163 apiTracePtr += item->traceBytes; in save()
271 auto item = mApiTrace.get(h); in destroyApiInfo() local
273 if (!item) return; in destroyApiInfo()
275 item->traceBytes = 0; in destroyApiInfo()
276 item->createdHandles.clear(); in destroyApiInfo()
355 auto item = mHandleReconstructions.get(toRemove[i]); in removeHandles() local
359 if (!item) continue; in removeHandles()
361 if (item->destroying) continue; in removeHandles()
362 item->destroying = true; in removeHandles()
365 for (const auto& state : item->states) { in removeHandles()
378 item->delayed_destroy = true; in removeHandles()
379 item->destroying = false; in removeHandles()
383 for (size_t j = 0; j < item->states.size(); j++) { in removeHandles()
384 for (const auto& parentHandle : item->states[j].parentHandles) { in removeHandles()
392 item->states[j].parentHandles.clear(); in removeHandles()
394 for (const auto& childHandle : item->states[j].childHandles) { in removeHandles()
399 item->states[j].childHandles.clear(); in removeHandles()
412 auto item = mHandleReconstructions.get(toProcess[i]); in forEachHandleAddApi() local
413 if (!item) continue; in forEachHandleAddApi()
415 item->states[state].apiRefs.push_back(apiHandle); in forEachHandleAddApi()
425 auto item = mHandleReconstructions.get(toProcess[i]); in forEachHandleDeleteApi() local
427 if (!item) continue; in forEachHandleDeleteApi()
429 for (auto& state : item->states) { in forEachHandleDeleteApi()
474 auto item = mApiTrace.get(apiHandle); in setCreatedHandlesForApi() local
476 if (!item) return; in setCreatedHandlesForApi()
478 item->createdHandles.insert(item->createdHandles.end(), created, created + count); in setCreatedHandlesForApi()
479 item->createdHandles.insert(item->createdHandles.end(), mExtraHandlesForNextApi.begin(), in setCreatedHandlesForApi()
495 auto item = mHandleModifications.get(toProcess[i]); in forEachHandleAddModifyApi() local
497 if (!item) continue; in forEachHandleAddModifyApi()
499 item->apiRefs.push_back(apiHandle); in forEachHandleAddModifyApi()
509 auto item = mHandleModifications.get(toProcess[i]); in forEachHandleClearModifyApi() local
511 if (!item) continue; in forEachHandleClearModifyApi()
513 item->apiRefs.clear(); in forEachHandleClearModifyApi()