Lines Matching full:index
36 int32_t index = obj->GetHashIndex(value, size); in Add() local
37 if (index >= 0) { in Add()
40 index ^= JSAPILightWeightSet::HASH_REBELLION; in Add()
41 if (index < size) { in Add()
42 obj->AdjustArray(thread, hashArray, index, size, true); in Add()
43 obj->AdjustArray(thread, valueArray, index, size, true); in Add()
54 hashArray->Set(thread, index, JSTaggedValue(hashCode)); in Add()
55 valueArray->Set(thread, index, value.GetTaggedValue()); in Add()
61 JSTaggedValue JSAPILightWeightSet::Get(const uint32_t index) in Get() argument
64 return valueArray->Get(index); in Get()
81 int32_t index = BinarySearchHashes(hashCode, size); in GetHashIndex() local
82 if (index < 0) { in GetHashIndex()
83 return index; in GetHashIndex()
86 … if (index < size && (JSTaggedValue::SameValue(valueArray->Get(index), value.GetTaggedValue()))) { in GetHashIndex()
87 return index; in GetHashIndex()
90 int32_t right = index; in GetHashIndex()
97 int32_t left = index - 1; in GetHashIndex()
176 JSTaggedValue JSAPILightWeightSet::GetValueAt(int32_t index) in GetValueAt() argument
179 if (index < 0 || index >= size) { in GetValueAt()
183 return values->Get(index); in GetValueAt()
186 JSTaggedValue JSAPILightWeightSet::GetHashAt(int32_t index) in GetHashAt() argument
189 if (index < 0 || index >= size) { in GetHashAt()
193 return values->Get(index); in GetHashAt()
229 int32_t index = GetHashIndex(value, size); in Has() local
230 if (index < 0) { in Has()
239 int32_t index = BinarySearchHashes(hashCode.GetTaggedValue().GetNumber(), size); in HasHash() local
240 if (index < 0) { in HasHash()
343 int32_t index = GetHashIndex(value, size); in GetIndexOf() local
344 return index; in GetIndexOf()
351 int32_t index = GetHashIndex(value, size); in Remove() local
352 if (index < 0) { in Remove()
355 JSTaggedValue result = valueArray->Get(index); in Remove()
356 RemoveAt(thread, index); in Remove()
360 bool JSAPILightWeightSet::RemoveAt(JSThread *thread, int32_t index) in RemoveAt() argument
363 if (index < 0 || index >= static_cast<int32_t>(size)) { in RemoveAt()
368 RemoveValue(thread, hashArray, static_cast<uint32_t>(index)); in RemoveAt()
369 RemoveValue(thread, valueArray, static_cast<uint32_t>(index)); in RemoveAt()
375 uint32_t index) in RemoveValue() argument
378 ASSERT(index < len); in RemoveValue()
380 factory->RemoveElementByIndex(taggedArray, index, len); in RemoveValue()
443 for (uint32_t index = 0; index < size; index++) { in Clear() local
444 hashArray->Set(thread, index, JSTaggedValue::Hole()); in Clear()
445 valueArray->Set(thread, index, JSTaggedValue::Hole()); in Clear()