Home
last modified time | relevance | path

Searched refs:LookupOrInsert (Results 1 – 25 of 34) sorted by relevance

12

/external/tensorflow/tensorflow/core/lib/gtl/
Dmap_util_test.cc41 TEST(MapUtil, LookupOrInsert) { in TEST() argument
47 EXPECT_EQ("xyz", gtl::LookupOrInsert(&m, "foo", "xyz")); in TEST()
48 EXPECT_EQ("xyz", gtl::LookupOrInsert(&m, "foo", "abc")); in TEST()
Dmap_util.h143 typename Collection::value_type::second_type& LookupOrInsert( in LookupOrInsert() function
150 typename Collection::value_type::second_type& LookupOrInsert( in LookupOrInsert() function
154 return LookupOrInsert(collection, in LookupOrInsert()
/external/v8/src/base/
Dhashmap.h57 Entry* LookupOrInsert(const Key& key, uint32_t hash,
64 Entry* LookupOrInsert(const Key& key, uint32_t hash, const Func& value_func,
171 TemplateHashMapImpl<Key, Value, MatchFun, AllocationPolicy>::LookupOrInsert( in LookupOrInsert() function
173 return LookupOrInsert(key, hash, []() { return Value(); }, allocator); in LookupOrInsert()
180 TemplateHashMapImpl<Key, Value, MatchFun, AllocationPolicy>::LookupOrInsert( in LookupOrInsert() function
493 return Iterator(this, this->LookupOrInsert(key, key->Hash(), allocator));
/external/v8/src/compiler/
Dbytecode-liveness-map.cc26 .LookupOrInsert(offset, OffsetHash(offset), in InitializeLiveness()
Dstate-values-utils.cc122 hash_map_.LookupOrInsert(&key, hash, ZoneAllocationPolicy(zone())); in GetValuesNodeFromCache()
/external/v8/src/interpreter/
Dconstant-array-builder.cc231 .LookupOrInsert(reinterpret_cast<intptr_t>(raw_string), in Insert()
240 .LookupOrInsert(reinterpret_cast<intptr_t>(bigint.c_str()), in Insert()
249 .LookupOrInsert(reinterpret_cast<intptr_t>(scope), in Insert()
/external/v8/src/
Didentity-map.cc131 int IdentityMapBase::LookupOrInsert(Object* key) { in LookupOrInsert() function in v8::internal::IdentityMapBase
169 int index = LookupOrInsert(key); in GetEntry()
Daddress-map.h26 LookupOrInsert(key, Hash(key))->value = index; in Set()
Didentity-map.h65 int LookupOrInsert(Object* key);
Dkeys.cc902 auto entry = unchecked_result_keys.LookupOrInsert(key, key->Hash(), alloc); in CollectOwnJSProxyKeys()
/external/protobuf/src/google/protobuf/stubs/
Dmap_util.h395 LookupOrInsert(Collection* const collection,
403 LookupOrInsert(Collection* const collection,
406 return LookupOrInsert(
428 LookupOrInsert(count_map, *it,
/external/v8/src/snapshot/
Dstartup-serializer.h42 bool LookupOrInsert(HeapObject* obj, int* index_out) { in LookupOrInsert() function
Dreferences.h172 LookupOrInsert(key, Hash(key))->value = reference; in Add()
Dstartup-serializer.cc100 if (!partial_cache_index_map_.LookupOrInsert(heap_object, &index)) { in PartialSnapshotCacheIndex()
Dserializer.h99 return impl_.LookupOrInsert(reinterpret_cast<void*>(code_address), in FindOrCreateEntry()
/external/v8/src/profiler/
Dstrings-storage.cc111 return names_.LookupOrInsert(const_cast<char*>(str), hash); in GetEntry()
Dallocation-tracker.cc248 base::HashMap::Entry* entry = id_to_function_info_index_.LookupOrInsert( in AddFunctionInfo()
Dheap-snapshot-generator.cc351 base::HashMap::Entry* to_entry = entries_map_.LookupOrInsert( in MoveObject()
401 base::HashMap::Entry* entry = entries_map_.LookupOrInsert( in FindOrAddEntry()
554 entries_.LookupOrInsert(thing, Hash(thing)); in Pair()
576 entries_.LookupOrInsert(object, HeapEntriesMap::Hash(object)); in Insert()
594 entries_.LookupOrInsert(object, HeapEntriesMap::Hash(object)); in SetTag()
2694 strings_.LookupOrInsert(const_cast<char*>(s), StringHash(s)); in GetStringId()
/external/tensorflow/tensorflow/core/kernels/
Dlookup_table_op.h238 const V& previous_value = gtl::LookupOrInsert(table_.get(), key, value); in DoInsert()
Dbarrier_ops.cc328 &gtl::LookupOrInsert(&incomplete_, keys_vec(i), PersistentTuple()); in InsertOneLocked()
/external/v8/src/ast/
Dast-value-factory.cc287 base::HashMap::Entry* entry = string_table_.LookupOrInsert(&key, key.Hash()); in GetString()
Dscopes.cc59 ZoneHashMap::LookupOrInsert(const_cast<AstRawString*>(name), name->Hash(), in Declare()
74 ZoneHashMap::LookupOrInsert(const_cast<AstRawString*>(name), name->Hash(), in DeclareName()
93 ZoneHashMap::LookupOrInsert(const_cast<AstRawString*>(name), name->Hash(), in Add()
126 ZoneHashMap::LookupOrInsert(const_cast<AstRawString*>(name), name->Hash(), in Declare()
Dast.cc370 ZoneHashMap::Entry* entry = table.LookupOrInsert(literal, hash, allocator); in CalculateEmitStore()
/external/v8/src/debug/
Ddebug-coverage.cc26 Entry* entry = LookupOrInsert(key, Hash(key), []() { return 0; }); in Add()
/external/v8/src/libsampler/
Dsampler.cc250 sampler_map_.LookupOrInsert(ThreadKey(thread_id), in AddSampler()

12