Lines Matching refs:CurVNode
150 ValueProfNode *CurVNode = ValueCounters[CounterIndex]; in instrumentTargetValueImpl() local
154 while (CurVNode) { in instrumentTargetValueImpl()
155 if (TargetValue == CurVNode->Value) { in instrumentTargetValueImpl()
156 CurVNode->Count += CountValue; in instrumentTargetValueImpl()
159 if (CurVNode->Count < MinCount) { in instrumentTargetValueImpl()
160 MinCount = CurVNode->Count; in instrumentTargetValueImpl()
161 MinCountVNode = CurVNode; in instrumentTargetValueImpl()
163 PrevVNode = CurVNode; in instrumentTargetValueImpl()
164 CurVNode = CurVNode->Next; in instrumentTargetValueImpl()
198 CurVNode = MinCountVNode; in instrumentTargetValueImpl()
199 CurVNode->Value = TargetValue; in instrumentTargetValueImpl()
200 CurVNode->Count = CountValue; in instrumentTargetValueImpl()
207 CurVNode = allocateOneNode(); in instrumentTargetValueImpl()
208 if (!CurVNode) in instrumentTargetValueImpl()
210 CurVNode->Value = TargetValue; in instrumentTargetValueImpl()
211 CurVNode->Count += CountValue; in instrumentTargetValueImpl()
216 COMPILER_RT_BOOL_CMPXCHG(&ValueCounters[CounterIndex], 0, CurVNode); in instrumentTargetValueImpl()
218 Success = COMPILER_RT_BOOL_CMPXCHG(&(PrevVNode->Next), 0, CurVNode); in instrumentTargetValueImpl()
221 free(CurVNode); in instrumentTargetValueImpl()