Lines Matching full:entry
34 * 2.array[3,3+capacity] is buckets which store the position of entry
35 …ity+1,3+capacity + capacity*(entry_size+1)] is the entry stored in order, the last element of an e…
36 * is a number which point to next entry.
96 for (JSTaggedValue entry = GetElement(thread, BucketToIndex(bucket)); !entry.IsHole(); in FindElement() local
97 entry = GetNextEntry(thread, entry.GetInt())) { in FindElement()
98 JSTaggedValue element = GetKey(thread, entry.GetInt()); in FindElement()
106 return entry.GetInt(); in FindElement()
112 inline void RemoveEntry(const JSThread *thread, int entry) in RemoveEntry() argument
114 …ASSERT_PRINT(entry >= 0 && entry < Capacity(), "entry must be a non-negative integer less than cap… in RemoveEntry()
115 int index = static_cast<int>(EntryToIndex(entry)); in RemoveEntry()
123 inline void RemoveEntryFromGCThread(int entry) in RemoveEntryFromGCThread() argument
126 …ASSERT_PRINT(entry >= 0 && entry < Capacity(), "entry must be a non-negative integer less than cap… in RemoveEntryFromGCThread()
127 int index = static_cast<int>(EntryToIndex(entry)); in RemoveEntryFromGCThread()
181 inline JSTaggedValue GetKey(const JSThread *thread, int entry) const in GetKey() argument
183 int index = static_cast<int>(EntryToIndex(entry)); in GetKey()
187 inline JSTaggedValue GetValue(const JSThread *thread, int entry) const in GetValue() argument
189 int index = static_cast<int>(EntryToIndex(entry)) + HashObject::ENTRY_VALUE_INDEX; in GetValue()
223 inline int GetDeletedElementsAt(const JSThread *thread, int entry) const in GetDeletedElementsAt() argument
226 int currentEntry = entry - 1; in GetDeletedElementsAt()
228 return entry; in GetDeletedElementsAt()
251 … // store num_of_deleted_element before entry i; it will be used when iterator update. in Rehash()
287 inline void SetKey(const JSThread *thread, int entry, JSTaggedValue key) in SetKey() argument
289 int index = static_cast<int>(EntryToIndex(entry)); in SetKey()
293 inline void SetValue(const JSThread *thread, int entry, JSTaggedValue value) in SetValue() argument
295 int index = static_cast<int>(EntryToIndex(entry)) + HashObject::ENTRY_VALUE_INDEX; in SetValue()
299 inline JSTaggedValue GetNextEntry(const JSThread *thread, int entry) const in GetNextEntry() argument
301 int index = static_cast<int>(EntryToIndex(entry)) + HashObject::ENTRY_SIZE; in GetNextEntry()
305 inline void SetNextEntry(const JSThread *thread, int entry, JSTaggedValue nextEntry) in SetNextEntry() argument
307 int index = static_cast<int>(EntryToIndex(entry)) + HashObject::ENTRY_SIZE; in SetNextEntry()
321 // min entry = 0
322 inline uint32_t EntryToIndex(uint32_t entry) const in EntryToIndex() argument
324 … return ELEMENTS_START_INDEX + Capacity() + static_cast<int>(entry) * (HashObject::ENTRY_SIZE + 1); in EntryToIndex()
327 inline void InsertNewEntry(const JSThread *thread, int bucket, int entry) in InsertNewEntry() argument
331 SetNextEntry(thread, entry, previousEntry); in InsertNewEntry()
332 SetElement(thread, bucketIndex, JSTaggedValue(entry)); in InsertNewEntry()
335 inline int GetDeletedNum(const JSThread *thread, int entry) const in GetDeletedNum() argument
338 return GetNextEntry(thread, entry).GetInt(); in GetDeletedNum()
341 inline void SetDeletedNum(const JSThread *thread, int entry, JSTaggedValue num) in SetDeletedNum() argument
344 SetNextEntry(thread, entry, num); in SetDeletedNum()