Lines Matching defs:key
57 IdentityMapFindResult<uintptr_t> FindOrInsertEntry(Address key);
58 RawEntry FindEntry(Address key) const;
59 RawEntry InsertEntry(Address key);
60 bool DeleteEntry(Address key, uintptr_t* deleted_value);
78 int Lookup(Address key) const;
79 std::pair<int, bool> LookupOrInsert(Address key);
117 // Searches this map for the given key using the object's address
121 IdentityMapFindResult<V> FindOrInsert(Handle<Object> key) {
122 return FindOrInsert(*key);
124 IdentityMapFindResult<V> FindOrInsert(Object key) {
125 auto raw = FindOrInsertEntry(key.ptr());
129 // Searches this map for the given key using the object's address
133 V* Find(Handle<Object> key) const { return Find(*key); }
134 V* Find(Object key) const {
135 return reinterpret_cast<V*>(FindEntry(key.ptr()));
138 // Insert the value for the given key. The key must not have previously
140 void Insert(Handle<Object> key, V v) { Insert(*key, v); }
141 void Insert(Object key, V v) {
142 *reinterpret_cast<V*>(InsertEntry(key.ptr())) = v;
145 bool Delete(Handle<Object> key, V* deleted_value) {
146 return Delete(*key, deleted_value);
148 bool Delete(Object key, V* deleted_value) {
150 bool deleted_something = DeleteEntry(key.ptr(), &v);
169 Object key() const { return Object(map_->KeyAtIndex(index_)); }