• Home
  • Raw
  • Download

Lines Matching refs:keys_

21   DCHECK_NULL(keys_);  in ~IdentityMapBase()
25 if (keys_) { in Clear()
29 DeletePointerArray(reinterpret_cast<uintptr_t*>(keys_), capacity_); in Clear()
31 keys_ = nullptr; in Clear()
54 if (keys_[index] == address) return index; // Found. in ScanKeysFor()
55 if (keys_[index] == not_mapped) return -1; // Not found. in ScanKeysFor()
58 if (keys_[index] == address) return index; // Found. in ScanKeysFor()
59 if (keys_[index] == not_mapped) return -1; // Not found. in ScanKeysFor()
80 if (keys_[index] == address) return {index, true}; // Found. in InsertKey()
81 if (keys_[index] == not_mapped) { // Free entry. in InsertKey()
84 keys_[index] = address; in InsertKey()
96 DCHECK_NE(keys_[index], not_mapped); in DeleteIndex()
97 keys_[index] = not_mapped; in DeleteIndex()
112 Address key = keys_[next_index]; in DeleteIndex()
123 DCHECK_EQ(not_mapped, keys_[index]); in DeleteIndex()
125 std::swap(keys_[index], keys_[next_index]); in DeleteIndex()
202 keys_ = reinterpret_cast<Address*>(NewPointerArray(capacity_)); in InsertEntry()
204 for (int i = 0; i < capacity_; i++) keys_[i] = not_mapped; in InsertEntry()
209 heap_->RegisterStrongRoots("IdentityMapBase", FullObjectSlot(keys_), in InsertEntry()
210 FullObjectSlot(keys_ + capacity_)); in InsertEntry()
237 DCHECK_NE(keys_[index], ReadOnlyRoots(heap_).not_mapped_symbol().ptr()); in KeyAtIndex()
239 return keys_[index]; in KeyAtIndex()
245 DCHECK_NE(keys_[index], ReadOnlyRoots(heap_).not_mapped_symbol().ptr()); in EntryAtIndex()
256 if (keys_[index] != not_mapped) { in NextIndex()
274 if (keys_[i] == not_mapped) { in Rehash()
277 int pos = Hash(keys_[i]) & mask_; in Rehash()
280 reinsert.push_back(std::pair<Address, uintptr_t>(keys_[i], values_[i])); in Rehash()
281 keys_[i] = not_mapped; in Rehash()
301 Address* old_keys = keys_; in Resize()
309 keys_ = reinterpret_cast<Address*>(NewPointerArray(capacity_)); in Resize()
311 for (int i = 0; i < capacity_; i++) keys_[i] = not_mapped; in Resize()
324 heap_->UpdateStrongRoots(strong_roots_entry_, FullObjectSlot(keys_), in Resize()
325 FullObjectSlot(keys_ + capacity_)); in Resize()