Lines Matching refs:CurVNode
153 ValueProfNode *CurVNode = ValueCounters[CounterIndex]; in instrumentTargetValueImpl() local
157 while (CurVNode) { in instrumentTargetValueImpl()
158 if (TargetValue == CurVNode->Value) { in instrumentTargetValueImpl()
159 CurVNode->Count += CountValue; in instrumentTargetValueImpl()
162 if (CurVNode->Count < MinCount) { in instrumentTargetValueImpl()
163 MinCount = CurVNode->Count; in instrumentTargetValueImpl()
164 MinCountVNode = CurVNode; in instrumentTargetValueImpl()
166 PrevVNode = CurVNode; in instrumentTargetValueImpl()
167 CurVNode = CurVNode->Next; in instrumentTargetValueImpl()
201 CurVNode = MinCountVNode; in instrumentTargetValueImpl()
202 CurVNode->Value = TargetValue; in instrumentTargetValueImpl()
203 CurVNode->Count = CountValue; in instrumentTargetValueImpl()
210 CurVNode = allocateOneNode(); in instrumentTargetValueImpl()
211 if (!CurVNode) in instrumentTargetValueImpl()
213 CurVNode->Value = TargetValue; in instrumentTargetValueImpl()
214 CurVNode->Count += CountValue; in instrumentTargetValueImpl()
219 COMPILER_RT_BOOL_CMPXCHG(&ValueCounters[CounterIndex], 0, CurVNode); in instrumentTargetValueImpl()
221 Success = COMPILER_RT_BOOL_CMPXCHG(&(PrevVNode->Next), 0, CurVNode); in instrumentTargetValueImpl()
224 free(CurVNode); in instrumentTargetValueImpl()