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.h146 typename Collection::value_type::second_type& LookupOrInsert( in LookupOrInsert() function
153 typename Collection::value_type::second_type& LookupOrInsert( in LookupOrInsert() function
157 return LookupOrInsert(collection, in LookupOrInsert()
/external/v8/src/compiler/
Drefs-map.cc25 RefsMap::Entry* RefsMap::LookupOrInsert(const Address& key) { in LookupOrInsert() function in v8::internal::compiler::RefsMap
26 return UnderlyingMap::LookupOrInsert(key, RefsMap::Hash(key), in LookupOrInsert()
Drefs-map.h44 Entry* LookupOrInsert(const Address& key);
Dbytecode-liveness-map.cc26 .LookupOrInsert(offset, OffsetHash(offset), in InitializeLiveness()
Dstate-values-utils.cc122 ZoneHashMap::Entry* lookup = hash_map_.LookupOrInsert(&key, hash); in GetValuesNodeFromCache()
/external/v8/src/base/
Dhashmap.h70 Entry* LookupOrInsert(const Key& key, uint32_t hash);
76 Entry* LookupOrInsert(const Key& key, uint32_t hash, const Func& value_func);
89 Entry* LookupOrInsert(const LookupKey& lookup_key, uint32_t hash,
222 TemplateHashMapImpl<Key, Value, MatchFun, AllocationPolicy>::LookupOrInsert( in LookupOrInsert() function
224 return LookupOrInsert(key, hash, []() { return Value(); }); in LookupOrInsert()
231 TemplateHashMapImpl<Key, Value, MatchFun, AllocationPolicy>::LookupOrInsert( in LookupOrInsert() function
233 return LookupOrInsert( in LookupOrInsert()
241 TemplateHashMapImpl<Key, Value, MatchFun, AllocationPolicy>::LookupOrInsert( in LookupOrInsert() function
568 return Iterator(this, this->LookupOrInsert(key, key->Hash()));
/external/v8/src/snapshot/
Droots-serializer.cc30 if (!object_cache_index_map_.LookupOrInsert(heap_object, &index)) { in SerializeInObjectCache()
Dserializer.h105 return impl_.LookupOrInsert(reinterpret_cast<void*>(code_address), in FindOrCreateEntry()
144 bool LookupOrInsert(Handle<HeapObject> obj, int* index_out) { in LookupOrInsert() function
/external/v8/src/interpreter/
Dconstant-array-builder.cc244 .LookupOrInsert(reinterpret_cast<intptr_t>(raw_string), in Insert()
252 .LookupOrInsert(reinterpret_cast<intptr_t>(bigint.c_str()), in Insert()
260 .LookupOrInsert(reinterpret_cast<intptr_t>(scope), in Insert()
Dbytecode-generator.cc1019 Accessors<PropertyT>* LookupOrInsert(Literal* key) { in LookupOrInsert() function in v8::internal::interpreter::__anonbda690ea0111::AccessorTable
2230 DCHECK_NULL(private_accessors.LookupOrInsert(key)->getter); in BuildClassLiteral()
2231 private_accessors.LookupOrInsert(key)->getter = property; in BuildClassLiteral()
2236 DCHECK_NULL(private_accessors.LookupOrInsert(key)->setter); in BuildClassLiteral()
2237 private_accessors.LookupOrInsert(key)->setter = property; in BuildClassLiteral()
2751 accessor_table.LookupOrInsert(key)->getter = property; in VisitObjectLiteral()
2756 accessor_table.LookupOrInsert(key)->setter = property; in VisitObjectLiteral()
/external/v8/src/utils/
Daddress-map.h27 LookupOrInsert(key, Hash(key))->value = index; in Set()
Didentity-map.cc144 std::pair<int, bool> IdentityMapBase::LookupOrInsert(Address key) { in LookupOrInsert() function in v8::internal::IdentityMapBase
175 auto lookup_result = LookupOrInsert(key); in FindOrInsertEntry()
Didentity-map.h77 std::pair<int, bool> LookupOrInsert(Address key);
/external/protobuf/src/google/protobuf/stubs/
Dmap_util.h396 LookupOrInsert(Collection* const collection,
404 LookupOrInsert(Collection* const collection,
407 return LookupOrInsert(
429 LookupOrInsert(count_map, *it,
/external/v8/src/profiler/
Dstrings-storage.cc137 return names_.LookupOrInsert(const_cast<char*>(str), hash); in GetEntry()
Dallocation-tracker.cc241 base::HashMap::Entry* entry = id_to_function_info_index_.LookupOrInsert( in AddFunctionInfo()
Dheap-snapshot-generator.cc326 base::HashMap::Entry* to_entry = entries_map_.LookupOrInsert( in MoveObject()
376 base::HashMap::Entry* entry = entries_map_.LookupOrInsert( in FindOrAddEntry()
2323 strings_.LookupOrInsert(const_cast<char*>(s), StringHash(s)); in GetStringId()
/external/v8/src/ast/
Dast-value-factory.cc361 AstRawStringMap::Entry* entry = string_table_.LookupOrInsert( in GetString()
Dast.cc342 ZoneHashMap::Entry* entry = table.LookupOrInsert(literal, hash); in CalculateEmitStore()
Dscopes.cc59 Entry* p = ZoneHashMap::LookupOrInsert(const_cast<AstRawString*>(name), in Declare()
80 Entry* p = ZoneHashMap::LookupOrInsert(const_cast<AstRawString*>(name), in Add()
/external/tensorflow/tensorflow/core/kernels/
Dbarrier_ops.cc328 &gtl::LookupOrInsert(&incomplete_, keys_vec(i), PersistentTuple()); in InsertOneLocked()
/external/v8/src/debug/
Ddebug-coverage.cc27 Entry* entry = LookupOrInsert(key, Hash(key), []() { return 0; }); in Add()
/external/tensorflow/tensorflow/compiler/xla/service/
Dhlo_instruction.h357 string LookupOrInsert(const string& old_name) { in LookupOrInsert() function
/external/v8/src/objects/
Dkeys.cc1252 auto entry = unchecked_result_keys.LookupOrInsert(key, key->Hash()); in CollectOwnJSProxyKeys()

12