Home
last modified time | relevance | path

Searched refs:Hash (Results 1 - 25 of 76) sorted by relevance

1234

/arkcompiler/ets_frontend/ets2panda/compiler/scripts/
H A Dsignatures.rb20 DEFINES = Hash.new()
21 SIGNATURES = Hash.new()
22 BUILTINS = Hash.new()
23 PRIMITIVES = Hash.new()
24 TYPEDESCRIPTORS = Hash.new()
25 DYNAMIC = Hash.new()
28 refs = Hash.new()
/arkcompiler/runtime_core/static_core/runtime/include/mem/
H A Dpanda_containers.h69 template <class Key, class Hash = std::hash<Key>, class KeyEqual = std::equal_to<Key>>
70 using PandaUnorderedSet = std::unordered_set<Key, Hash, KeyEqual, mem::AllocatorAdapter<Key>>;
72 template <class Key, class Hash = std::hash<Key>, class KeyEqual = std::equal_to<Key>>
73 using PandaUnorderedSetTL = std::unordered_set<Key, Hash, KeyEqual, mem::AllocatorAdapter<Key, mem::AllocScope::LOCAL>>;
107 template <class Key, class T, class Hash = std::hash<Key>, class KeyEqual = std::equal_to<Key>>
108 using PandaUnorderedMap = std::unordered_map<Key, T, Hash, KeyEqual, mem::AllocatorAdapter<std::pair<const Key, T>>>;
110 template <class Key, class T, class Hash = std::hash<Key>, class KeyEqual = std::equal_to<Key>>
112 std::unordered_map<Key, T, Hash, KeyEqual, mem::AllocatorAdapter<std::pair<const Key, T>, mem::AllocScope::LOCAL>>;
114 template <class Key, class Value, class Hash = std::hash<Key>, class KeyEqual = std::equal_to<Key>>
116 std::unordered_multimap<Key, Value, Hash, KeyEqua
[all...]
/arkcompiler/ets_runtime/ecmascript/mem/
H A Dc_containers.h49 template<class Key, class Value, class Hash = std::hash<Key>, class KeyEqual = std::equal_to<Key>>
51 std::unordered_multimap<Key, Value, Hash, KeyEqual, CAddressAllocator<std::pair<const Key, Value>>>;
62 template<class Key, class T, class Hash = std::hash<Key>, class KeyEqual = std::equal_to<Key>>
63 using CUnorderedMap = std::unordered_map<Key, T, Hash, KeyEqual, CAddressAllocator<std::pair<const Key, T>>>;
65 template<class Key, class Hash = std::hash<Key>, class KeyEqual = std::equal_to<Key>>
66 using CUnorderedSet = std::unordered_set<Key, Hash, KeyEqual, CAddressAllocator<Key>>;
H A Dchunk_containers.h94 template<typename K, typename V, typename Hash = std::hash<K>, typename KeyEqual = std::equal_to<K>>
95 class PUBLIC_API ChunkUnorderedMap : public std::unordered_map<K, V, Hash, KeyEqual,
100 : std::unordered_map<K, V, Hash, KeyEqual, ChunkAllocator<std::pair<const K, V>>>( in ChunkUnorderedMap()
101 bucket_count, Hash(), KeyEqual(), ChunkAllocator<std::pair<const K, V>>(chunk)) in ChunkUnorderedMap()
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/intrinsics/helpers/
H A Dets_to_string_cache.cpp255 template <typename T, typename Derived, typename Hash>
256 uint32_t EtsToStringCache<T, Derived, Hash>::GetIndex(T number)
258 auto index = Hash()(number);
263 template <typename T, typename Derived, typename Hash>
264 std::pair<EtsString *, ToStringResult> EtsToStringCache<T, Derived, Hash>::FinishUpdate(
290 template <typename T, typename Derived, typename Hash>
291 std::pair<EtsString *, ToStringResult> EtsToStringCache<T, Derived, Hash>::GetOrCacheImpl(EtsCoroutine *coro, T number)
319 template <typename T, typename Derived, typename Hash>
320 EtsString *EtsToStringCache<T, Derived, Hash>::CacheAndGetNoCheck(EtsCoroutine *coro, T number, ObjectHeader *elem, in CacheAndGetNoCheck()
328 template <typename T, typename Derived, typename Hash>
[all...]
/arkcompiler/ets_runtime/ecmascript/patch/
H A Dpatch_loader.h38 struct Hash { struct
57 struct Hash { struct
75 struct Hash { struct
93 CUnorderedMap<PatchMethodIndex, MethodLiteral*, PatchMethodIndex::Hash> patchMethodLiterals;
95 CUnorderedMap<BaseMethodIndex, MethodLiteral *, BaseMethodIndex::Hash> baseMethodInfo;
101 CUnorderedMap<ReplacedMethod, CString, ReplacedMethod::Hash> replacedPatchMethods;
/arkcompiler/runtime_core/libpandabase/utils/
H A Darena_containers.h52 template <class Key, class T, class Hash = std::hash<Key>, class KeyEqual = std::equal_to<Key>,
55 std::unordered_multimap<Key, T, Hash, KeyEqual, ArenaAllocatorAdapter<std::pair<const Key, T>, use_oom_handler>>;
56 template <class Key, class T, class Hash = std::hash<Key>, class KeyEqual = std::equal_to<Key>,
59 std::unordered_map<Key, T, Hash, KeyEqual, ArenaAllocatorAdapter<std::pair<const Key, T>, false>>;
64 template <class Key, class Hash = std::hash<Key>, class KeyEqual = std::equal_to<Key>, bool use_oom_handler = false>
65 using ArenaUnorderedSet = std::unordered_set<Key, Hash, KeyEqual, ArenaAllocatorAdapter<Key, use_oom_handler>>;
H A Dhash.h32 // Hash class alias with the default seed inside.
33 using Hash = DefaultHash<DEFAULT_SEED>;
36 * \brief Create 32 bits Hash from \param key via \param seed.
44 return Hash::GetHash32WithSeed(key, len, seed); in GetHash32WithSeed()
48 * \brief Create 32 bits Hash from \param key.
55 return Hash::GetHash32(key, len); in GetHash32()
59 * \brief Create 32 bits Hash from MUTF8 \param string.
65 return Hash::GetHash32String(mutf8_string); in GetHash32String()
69 * \brief Create 32 bits Hash from MUTF8 \param string.
76 return Hash in GetHash32StringWithSeed()
[all...]
/arkcompiler/runtime_core/static_core/libpandabase/utils/
H A Darena_containers.h55 template <class Key, class T, class Hash = std::hash<Key>, class KeyEqual = std::equal_to<Key>,
58 std::unordered_multimap<Key, T, Hash, KeyEqual, ArenaAllocatorAdapter<std::pair<const Key, T>, USE_OOM_HANDLER>>;
59 template <class Key, class T, class Hash = std::hash<Key>, class KeyEqual = std::equal_to<Key>,
62 std::unordered_map<Key, T, Hash, KeyEqual, ArenaAllocatorAdapter<std::pair<const Key, T>, false>>;
67 template <class Key, class Hash = std::hash<Key>, class KeyEqual = std::equal_to<Key>, bool USE_OOM_HANDLER = false>
68 using ArenaUnorderedSet = std::unordered_set<Key, Hash, KeyEqual, ArenaAllocatorAdapter<Key, USE_OOM_HANDLER>>;
H A Dhash.h31 // Hash class alias with the default seed inside.
32 using Hash = DefaultHash<DEFAULT_SEED>;
35 * @brief Create 32 bits Hash from @param key via @param seed.
43 return Hash::GetHash32WithSeed(key, len, seed); in GetHash32WithSeed()
47 * @brief Create 32 bits Hash from @param key.
54 return Hash::GetHash32(key, len); in GetHash32()
58 * @brief Create 32 bits Hash from MUTF8 @param string.
64 return Hash::GetHash32String(mutf8String); in GetHash32String()
68 * @brief Create 32 bits Hash from MUTF8 @param string.
75 return Hash in GetHash32StringWithSeed()
[all...]
/arkcompiler/runtime_core/static_core/irtoc/lang/
H A Dregmap.rb40 elsif other.is_a? Hash
50 elsif other.is_a? Hash
60 elsif other.is_a? Hash
/arkcompiler/ets_runtime/ecmascript/tests/
H A Dtagged_hash_array_test.cpp57 int keyHash = TaggedNode::Hash(thread, hashKey.GetTaggedValue()); in HWTEST_F_L0()
78 int keyHash = TaggedNode::Hash(thread, hashKey.GetTaggedValue()); in HWTEST_F_L0()
97 auto keyHash = TaggedNode::Hash(thread, treeKey.GetTaggedValue()); in HashCommon1()
114 auto keyHash = TaggedNode::Hash(thread, listKey.GetTaggedValue()); in HashCommon2()
142 auto keyHash = TaggedNode::Hash(thread, myKey4.GetTaggedValue()); in HWTEST_F_L0()
177 auto keyHash = TaggedNode::Hash(thread, myKey5.GetTaggedValue()); in HWTEST_F_L0()
212 auto keyHash = TaggedNode::Hash(thread, myKey5.GetTaggedValue()); in HWTEST_F_L0()
216 keyHash = TaggedNode::Hash(thread, myKey4.GetTaggedValue()); in HWTEST_F_L0()
221 keyHash = TaggedNode::Hash(thread, myKey5.GetTaggedValue()); in HWTEST_F_L0()
246 auto keyHash = TaggedNode::Hash(threa in HWTEST_F_L0()
[all...]
H A Dsymbol_table_test.cpp82 * FunctionPoints: Hash
91 EXPECT_EQ(SymbolTable::Hash(jsObJect.GetTaggedValue()), JSSymbol::ComputeHash()); in HWTEST_F_L0()
96 EXPECT_EQ(SymbolTable::Hash(nameStringUtf8Obj1.GetTaggedValue()), 1026U); // 1026 = (1 << 5 - 1 + 2) << 5 - 2 + 3 in HWTEST_F_L0()
101 EXPECT_EQ(SymbolTable::Hash(nameStringUtf8Obj2.GetTaggedValue()), 106079U); in HWTEST_F_L0()
108 * FunctionPoints: Hash
119 EXPECT_EQ(SymbolTable::Hash(nameStringUtf16Obj1.GetTaggedValue()), 1026U); // 1026 = (1 << 5 - 1 + 2) << 5 - 2 + 3 in HWTEST_F_L0()
124 EXPECT_EQ(SymbolTable::Hash(nameStringUtf16Obj2.GetTaggedValue()), 33U); // 33 = (0 << 5 - 0 + 1) << 5 - 1 + 2 in HWTEST_F_L0()
H A Drb_tree_node_test.cpp48 int hash = TaggedNode::Hash(thread, factory->NewFromStdString(iKey).GetTaggedValue()); in RBTreeNodeInit()
63 int hash = TaggedNode::Hash(thread, key.GetTaggedValue()); in RBTreeValueCheck()
79 int hash = TaggedNode::Hash(thread, factory->NewFromStdString(k).GetTaggedValue()); in HWTEST_F_L0()
111 int hash = TaggedNode::Hash(thread, key.GetTaggedValue()); in HWTEST_F_L0()
122 int hash = TaggedNode::Hash(thread, key.GetTaggedValue()); in HWTEST_F_L0()
/arkcompiler/runtime_core/templates/
H A Dplugin_options.rb57 cur_hash[key] = Hash.new()
69 @plugins = Hash.new()
79 @plugins[h_plugin_lang] = Hash.new()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/mempool/include/
H A Dmempool_allocator.h187 template <typename T, typename Hash = std::hash<T>, typename Equal = std::equal_to<T>>
188 using MapleUnorderedSet = std::unordered_set<T, Hash, Equal, MapleAllocatorAdapter<T>>;
199 template <typename K, typename V, typename Hash = std::hash<K>, typename Equal = std::equal_to<K>>
200 using MapleUnorderedMap = std::unordered_map<K, V, Hash, Equal, MapleAllocatorAdapter<std::pair<const K, V>>>;
202 template <typename K, typename V, typename Hash = std::hash<K>, typename Equal = std::equal_to<K>>
203 using MapleUnorderedMultiMap = std::unordered_multimap<K, V, Hash, Equal, MapleAllocatorAdapter<std::pair<const K, V>>>;
/arkcompiler/runtime_core/static_core/libpandabase/taskmanager/utils/
H A Dtask_time_stats.cpp77 auto propHash = TaskProperties::Hash()(prop); in CollectLifeAndExecutionTimes()
119 auto propHash = TaskProperties::Hash()(prop); in GetStatisticsForProperties()
145 auto propHash = TaskProperties::Hash()(prop); in GetCountOfTasksWithProperties()
/arkcompiler/runtime_core/static_core/templates/
H A Dplugin_options.rb85 cur_hash[key] = Hash.new()
97 @plugins = Hash.new()
106 @plugins[h_plugin_lang] = Hash.new()
/arkcompiler/ets_frontend/ets2panda/lexer/scripts/
H A Dkeywords.rb27 tree = Hash.new()
57 @extensions = Hash.new()
64 @extensions[extension.name] = Hash.new()
/arkcompiler/ets_runtime/ecmascript/ic/
H A Dproperties_cache.h32 int hash = Hash(jsHclass, key); in Get()
41 int hash = Hash(jsHclass, key); in Set()
117 static inline int Hash(JSHClass *cls, JSTaggedValue key) in Hash() function in panda::ecmascript::PropertiesCache
/arkcompiler/toolchain/tooling/test/client_utils/
H A Dtest_util.h33 template<class Key, class T, class Hash = std::hash<Key>, class KeyEqual = std::equal_to<Key>>
34 using CUnorderedMap = panda::ecmascript::CUnorderedMap<Key, T, Hash, KeyEqual>;
/arkcompiler/ets_runtime/ecmascript/js_api/
H A Djs_api_hashmap.cpp32 int hash = TaggedNode::Hash(thread, key); in HasKey()
95 int hash = TaggedNode::Hash(thread, key); in Replace()
119 int hash = TaggedNode::Hash(thread, key.GetTaggedValue()); in Set()
135 int hash = TaggedNode::Hash(thread, key); in Get()
216 uint32_t hash = static_cast<uint32_t>(TaggedNode::Hash(thread, key)); in Remove()
H A Djs_api_hashset.cpp40 int hash = TaggedNode::Hash(thread, value); in Has()
54 int hash = TaggedNode::Hash(thread, value.GetTaggedValue()); in Add()
94 uint32_t hash = static_cast<uint32_t>(TaggedNode::Hash(thread, key)); in Remove()
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/tools/generate-es-checked/src/
H A Dtypes.rb19 r.kind_of?(Hash) && r["__kind"] == "num" ||
26 r.kind_of?(Hash) && r["__kind"] == "str"
65 if rb_obj.kind_of?(Hash) && rb_obj["__kind"] == "bigint"
/arkcompiler/ets_runtime/ecmascript/
H A Dtagged_dictionary.h44 static int PUBLIC_API Hash(const JSTaggedValue &key);
45 static int Hash(const uint8_t* str, int strSize);
114 static int PUBLIC_API Hash(const JSTaggedValue &key);
179 static int32_t Hash(const JSTaggedValue &key) in Hash() function in panda::ecmascript::PointerToIndexDictionary

Completed in 11 milliseconds

1234