Lines Matching refs:CurVNode
165 ValueProfNode *CurVNode = ValueCounters[CounterIndex]; in instrumentTargetValueImpl() local
169 while (CurVNode) { in instrumentTargetValueImpl()
170 if (TargetValue == CurVNode->Value) { in instrumentTargetValueImpl()
171 CurVNode->Count += CountValue; in instrumentTargetValueImpl()
174 if (CurVNode->Count < MinCount) { in instrumentTargetValueImpl()
175 MinCount = CurVNode->Count; in instrumentTargetValueImpl()
176 MinCountVNode = CurVNode; in instrumentTargetValueImpl()
178 PrevVNode = CurVNode; in instrumentTargetValueImpl()
179 CurVNode = CurVNode->Next; in instrumentTargetValueImpl()
213 CurVNode = MinCountVNode; in instrumentTargetValueImpl()
214 CurVNode->Value = TargetValue; in instrumentTargetValueImpl()
215 CurVNode->Count = CountValue; in instrumentTargetValueImpl()
222 CurVNode = allocateOneNode(); in instrumentTargetValueImpl()
223 if (!CurVNode) in instrumentTargetValueImpl()
225 CurVNode->Value = TargetValue; in instrumentTargetValueImpl()
226 CurVNode->Count += CountValue; in instrumentTargetValueImpl()
231 COMPILER_RT_BOOL_CMPXCHG(&ValueCounters[CounterIndex], 0, CurVNode); in instrumentTargetValueImpl()
233 Success = COMPILER_RT_BOOL_CMPXCHG(&(PrevVNode->Next), 0, CurVNode); in instrumentTargetValueImpl()
236 free(CurVNode); in instrumentTargetValueImpl()