Home
last modified time | relevance | path

Searched refs:hash (Results 1 – 25 of 70) sorted by relevance

123

/ark/runtime_core/libpandabase/utils/
Dmurmur3_hash.h93 uint32_t hash = seed; in MurmurHash3() local
111 hash ^= k1; in MurmurHash3()
112 hash = Rotl(hash, MAIN_SECOND_SHIFT); in MurmurHash3()
113 hash = hash * MAIN_MULTIPLICATOR + MAIN_CONSTANT; in MurmurHash3()
129 hash ^= k1; in MurmurHash3()
134 hash ^= len; in MurmurHash3()
135 hash = Finalize(hash); in MurmurHash3()
137 return hash; in MurmurHash3()
143 uint32_t hash = seed; in MurmurHash3String() local
172 hash ^= k1; in MurmurHash3String()
[all …]
Dhash.h91 uint32_t hash = PseudoFnvHashItem(static_cast<uint32_t>(item1), seed); variable
93 return PseudoFnvHashItem(static_cast<uint32_t>(item1 >> FOUR_BYTES), hash);
100 inline uint32_t PseudoFnvHashString(const uint8_t *str, uint32_t hash = FNV_INITIAL_SEED)
116 hash = PseudoFnvHashItem(word32, hash);
121 hash = PseudoFnvHashItem(*str, hash);
125 return hash;
129 uint32_t FnvHash(const Container &data, uint32_t hash = FNV_INITIAL_SEED)
132 hash = PseudoFnvHashItem(value, hash);
134 return hash;
Darena_containers.h52 template <class Key, class T, class Hash = std::hash<Key>, class KeyEqual = std::equal_to<Key>,
56 template <class Key, class T, class Hash = std::hash<Key>, class KeyEqual = std::equal_to<Key>,
62 …ArenaUnorderedMap<Key1, ArenaUnorderedMap<Key2, T, std::hash<Key2>, std::equal_to<Key2>, use_oom_h…
63 std::hash<Key1>, std::equal_to<Key1>, use_oom_handler>;
64 template <class Key, class Hash = std::hash<Key>, class KeyEqual = std::equal_to<Key>, bool use_oom…
/ark/js_runtime/ecmascript/ic/
Dproperties_cache-inl.h25 int hash = Hash(jsHclass, key); in Get() local
26 PropertyKey &prop = keys_[hash]; in Get()
28 return keys_[hash].results_; in Get()
35 int hash = Hash(jsHclass, key); in Set() local
36 PropertyKey &prop = keys_[hash]; in Set()
39 keys_[hash].results_ = index; in Set()
/ark/runtime_core/runtime/
Dmark_word.cpp40 inline MarkWord MarkWord::DecodeFromHashConfigured(uint32_t hash) in DecodeFromHashConfigured() argument
44 markWordSize hash_in_place = (static_cast<markWordSize>(hash) & HASH_MASK) << HASH_SHIFT; in DecodeFromHashConfigured()
49 inline MarkWord MarkWord::DecodeFromHashConfigured<false>(uint32_t hash) in DecodeFromHashConfigured() argument
51 (void)hash; in DecodeFromHashConfigured()
56 MarkWord MarkWord::DecodeFromHash(uint32_t hash) in DecodeFromHash() argument
58 return DecodeFromHashConfigured<CONFIG_IS_HASH_IN_OBJ_HEADER>(hash); in DecodeFromHash()
/ark/runtime_core/verification/debug/handlers/
Dconfig_handler_allowlist.cpp87 uint32_t hash; in RegisterConfigHandlerAllowlist() local
89hash = Method::GetClassNameHashFromString(reinterpret_cast<const uint8_t *>(c.c_str())); in RegisterConfigHandlerAllowlist()
91 << "', hash 0x" << std::hex << hash; in RegisterConfigHandlerAllowlist()
93hash = Method::GetFullNameHashFromString(reinterpret_cast<const uint8_t *>(c.c_str())); in RegisterConfigHandlerAllowlist()
95 << "', hash 0x" << std::hex << hash; in RegisterConfigHandlerAllowlist()
97 AddAllowlistMethodConfig(kind, hash); in RegisterConfigHandlerAllowlist()
Dconfig_handler_breakpoints.cpp108 uint32_t hash = in RegisterConfigHandlerBreakpoints() local
114 LOG_VERIFIER_DEBUG_BREAKPOINT_ADDED_INFO(c.Method, hash, o); in RegisterConfigHandlerBreakpoints()
115 AddBreakpointConfig({Component::VERIFIER, hash, o}); in RegisterConfigHandlerBreakpoints()
/ark/js_runtime/ecmascript/
Decma_string.cpp396 uint32_t hash = hashSeed; in ComputeHashForData() local
405 hash = (hash << SHIFT) - hash + c; in ComputeHashForData()
407 return static_cast<int32_t>(hash); in ComputeHashForData()
415 uint32_t hash = 0; in ComputeHashForUtf8() local
418hash = (hash << SHIFT) - hash + *utf8Data++; // NOLINT(cppcoreguidelines-pro-bounds-pointer-arith… in ComputeHashForUtf8()
420 return static_cast<int32_t>(hash); in ComputeHashForUtf8()
425 uint32_t hash; in ComputeHashcode() local
428 hash = ComputeHashForData(GetDataUtf8(), GetLength(), hashSeed); in ComputeHashcode()
430 hash = ComputeHashForData(GetDataUtf16(), GetLength(), hashSeed); in ComputeHashcode()
434 hash = ComputeHashForData(GetDataUtf16(), GetLength(), hashSeed); in ComputeHashcode()
[all …]
Dlinked_hash_table.cpp45 int hash = LinkedHash::Hash(key.GetTaggedValue()); in Insert() local
54 int bucket = newTable->HashToBucket(hash); in Insert()
69 int hash = LinkedHash::Hash(key.GetTaggedValue()); in InsertWeakRef() local
78 int bucket = newTable->HashToBucket(hash); in InsertWeakRef()
285 int32_t hash = ECMAObject::Cast(key.GetHeapObject())->GetHash(); in Hash() local
286 if (hash == 0) { in Hash()
288hash = GetHash32(reinterpret_cast<uint8_t *>(&keyValue), sizeof(keyValue) / sizeof(uint8_t)); in Hash()
289 ECMAObject::Cast(key.GetHeapObject())->SetHash(hash); in Hash()
291 return hash; in Hash()
Dtagged_hash_table-inl.h96 int hash = Derived::Hash(key); in FindEntry() local
98 for (int entry = GetFirstPosition(hash, size);; entry = GetNextPosition(entry, count++, size)) { in FindEntry()
192 int hash = Derived::Hash(key.GetTaggedValue()); in Insert() local
200 newTable->AddElement(thread, newTable->FindInsertIndex(hash), key, value); in Insert()
231 int hash = Derived::Hash(k); in Rehash() local
232 int insertionIndex = Derived::GetKeyIndex(newTable->FindInsertIndex(hash)); in Rehash()
326 int TaggedHashTable<Derived>::FindInsertIndex(int hash) in FindInsertIndex() argument
331 for (int entry = GetFirstPosition(hash, size);; entry = GetNextPosition(entry, count++, size)) { in FindInsertIndex()
352 int hash = Derived::Hash(key.GetTaggedValue()); in PutIfAbsent() local
366 entry = newTable->FindInsertIndex(hash); in PutIfAbsent()
[all …]
Dtransitions_dictionary.h48 int hash = 0; in Hash() local
50 hash = EcmaString::Cast(key.GetTaggedObject())->GetHashcode(); in Hash()
52 hash = JSSymbol::Cast(key.GetTaggedObject())->GetHashField(); in Hash()
55 return hash + metaDataHash; in Hash()
/ark/js_runtime/ecmascript/regexp/
Dregexp_parser_cache.cpp46 size_t hash = GetHash(pattern, flags); in GetCache() local
47 ParserKey &info = info_[hash]; in GetCache()
57 size_t hash = GetHash(pattern, flags); in SetCache() local
58 ParserKey &info = info_[hash]; in SetCache()
/ark/runtime_core/runtime/tests/
Dmark_word_test.cpp172 void CheckHashed(uint32_t hash, bool isMarkedForGC, bool isReadBarrierSet = false) const in CheckHashed() argument
176 ASSERT_EQ(mw_.GetHash(), hash) << " seed = " << paramGetter_.GetSeed(); in CheckHashed()
198 void DecodeHash(uint32_t hash) in DecodeHash() argument
200 mw_ = mw_.DecodeFromHash(hash); in DecodeHash()
225 auto hash = paramGetter_.GetHash(); in DecodeAndCheckHashed() local
226 DecodeHash(hash); in DecodeAndCheckHashed()
227 CheckHashed(hash, isMarkedForGC, isReadBarrierSet); in DecodeAndCheckHashed()
455 auto hash = paramGetter.GetHash(); in CheckMarkingWithGC() local
456 wrapper.DecodeHash(hash); in CheckMarkingWithGC()
459 wrapper.CheckHashed(hash, true); in CheckMarkingWithGC()
[all …]
/ark/runtime_core/dprof/libstorage/dprof/
Dstorage.h33 …static std::unique_ptr<AppData> CreateByParams(const std::string &name, uint64_t hash, uint32_t pi…
46 return common_info_.hash; in GetHash()
67 uint64_t hash; member
92 std::string MakeAppPath(const std::string &name, uint64_t hash, uint32_t pid) const;
Dstorage.cpp29 std::unique_ptr<AppData> AppData::CreateByParams(const std::string &name, uint64_t hash, uint32_t p… in CreateByParams() argument
35 appData->common_info_.hash = hash; in CreateByParams()
211 std::string AppDataStorage::MakeAppPath(const std::string &name, uint64_t hash, uint32_t pid) const in MakeAppPath() argument
217 str << storage_dir_ << "/" << name << "@" << pid << "@" << hash; in MakeAppPath()
/ark/runtime_core/verification/util/
Dmisc.h26 struct hash<std::pair<T1, T2>> {
29 return std::hash<T1> {}(pair.first) ^ std::hash<T2> {}(pair.second);
Dabstract_index.h81 friend struct std::hash;
89 struct hash<panda::verifier::AbstractIndex<Int, Friend>> {
/ark/runtime_core/verification/debug/
Dconfig_load.cpp108 void MethodIdCalculationHandler(uint32_t class_hash, uint32_t hash, uintptr_t id) in MethodIdCalculationHandler() argument
110 debug::BreakpointMethodIdCalculationHandler(class_hash, hash, id); in MethodIdCalculationHandler()
111 debug::AllowlistMethodIdCalculationHandler(class_hash, hash, id); in MethodIdCalculationHandler()
/ark/runtime_core/runtime/coretypes/
Dstring.cpp591 uint32_t hash = 0; in ComputeHashForData() local
600 hash = (hash << SHIFT) - hash + c; in ComputeHashForData()
602 return static_cast<int32_t>(hash); in ComputeHashForData()
607 uint32_t hash = 0; in ComputeHashForMutf8() local
610hash = (hash << SHIFT) - hash + *mutf8_data++; // NOLINT(cppcoreguidelines-pro-bounds-pointer-ari… in ComputeHashForMutf8()
612 return static_cast<int32_t>(hash); in ComputeHashForMutf8()
617 uint32_t hash; in ComputeHashcode() local
620 hash = ComputeHashForData(GetDataMUtf8(), GetLength()); in ComputeHashcode()
622 hash = ComputeHashForData(GetDataUtf16(), GetLength()); in ComputeHashcode()
626 hash = ComputeHashForData(GetDataUtf16(), GetLength()); in ComputeHashcode()
[all …]
/ark/runtime_core/runtime/include/mem/
Dpanda_containers.h70 template <class Key, class Hash = std::hash<Key>, class KeyEqual = std::equal_to<Key>>
73 template <class Key, class Hash = std::hash<Key>, class KeyEqual = std::equal_to<Key>>
101 template <class Key, class T, class Hash = std::hash<Key>, class KeyEqual = std::equal_to<Key>>
104 template <class Key, class T, class Hash = std::hash<Key>, class KeyEqual = std::equal_to<Key>>
108 template <class Key, class Value, class Hash = std::hash<Key>, class KeyEqual = std::equal_to<Key>>
112 template <class Key, class Value, class Hash = std::hash<Key>, class KeyEqual = std::equal_to<Key>>
/ark/runtime_core/dprof/libdprof/dprof/
Dprofiling_data.h26 …rofilingData(const std::string &appName, uint64_t hash, uint32_t pid) : app_name_(appName), hash_( in ProfilingData() argument
/ark/js_runtime/ecmascript/mem/
Dc_containers.h46 template<class Key, class Value, class Hash = std::hash<Key>, class KeyEqual = std::equal_to<Key>>
59 template<class Key, class T, class Hash = std::hash<Key>, class KeyEqual = std::equal_to<Key>>
62 template<class Key, class Hash = std::hash<Key>, class KeyEqual = std::equal_to<Key>>
/ark/runtime_core/dprof/converter/features/
Dhotness_counters.h37 uint64_t hash; member
88 << " hash=" << hcounters_info.hash << std::endl; in ShowText()
104 out_ << " \"hash\": \"" << hcounters_info.hash << "\"," << std::endl; in ShowJson()
/ark/js_runtime/ecmascript/tooling/base/
Dpt_script.h69 void SetHash(const std::string &hash) in SetHash() argument
71 hash_ = hash; in SetHash()
/ark/runtime_core/libpandabase/mem/
Dalloc_tracker.cpp56 size_t hash = 0; in CalcHash() local
57 std::hash<uintptr_t> addr_hash; in CalcHash()
59 hash |= addr_hash(addr); in CalcHash()
61 return hash; in CalcHash()

123