Home
last modified time | relevance | path

Searched refs:hashcode (Results 1 – 10 of 10) sorted by relevance

/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_test_suite/intrinsics/
Dstring_hashcode.ets113 let hashcode: int = compressable_strings_table[i].$_hashCode();
114 if (hashcode != compressable_hashcode_table[i]) {
115 console.println("Expected hashcode: " + compressable_hashcode_table[i] +
116 ", computed hashcode: " + hashcode +
124 let hashcode: int = uncompressable_strings_table[i].$_hashCode();
125 if (hashcode != uncompressable_hashcode_table[i]) {
126 console.println("Expected hashcode: " + uncompressable_hashcode_table[i] +
127 ", computed hashcode: " + hashcode +
138 console.println("hc_a hashcode: " + hc_a.$_hashCode());
143 console.println("hc_a hashcode: " + hc_a.$_hashCode());
[all …]
/arkcompiler/ets_runtime/ecmascript/regexp/
Dregexp_parser_cache.cpp41 auto hashcode = EcmaStringAccessor(pattern).GetHashcode(); in GetHash() local
42 return (hashcode ^ flags) % CACHE_SIZE; in GetHash()
/arkcompiler/ets_runtime/ecmascript/
Decma_string_table.cpp76 auto hashcode = EcmaStringAccessor(string).GetHashcode(); in GetString() local
77 auto range = table_.equal_range(hashcode); in GetString()
95 auto hashcode = EcmaStringAccessor(string).GetHashcode(); in InternString() local
96 table_.emplace(hashcode, string); in InternString()
314 auto hashcode = EcmaStringAccessor(outerString).GetHashcode(); in CheckStringTableValidity() local
315 auto range = table_.equal_range(hashcode); in CheckStringTableValidity()
Decma_string.h188 static inline uint32_t MixHashcode(uint32_t hashcode, bool isInteger) in MixHashcode() argument
190 return isInteger ? (hashcode | IS_INTEGER_MASK) : (hashcode & (~IS_INTEGER_MASK)); in MixHashcode()
193 inline void SetRawHashcode(uint32_t hashcode, bool isInteger = false)
196 SetMixHashcode(MixHashcode(hashcode, isInteger));
218 uint32_t hashcode = GetMixHashcode(); in TryGetHashCode() local
219 if (hashcode == 0 && GetLength() != 0) { in TryGetHashCode()
222 *hash = hashcode; in TryGetHashCode()
236 uint32_t hashcode = GetMixHashcode(); in GetHashcode() local
238 if (hashcode == 0 && GetLength() != 0) { in GetHashcode()
239 hashcode = ComputeHashcode(); in GetHashcode()
[all …]
/arkcompiler/ets_frontend/merge_abc/src/
DprotobufSnapshotGenerator.cpp75 uint32_t hashCode = protoCache.hashcode(); in GetCacheContext()
/arkcompiler/runtime_core/static_core/runtime/include/coretypes/
Dstring.h327 void SetHashcode(uint32_t hashcode) in SetHashcode() argument
329 hashcode_ = hashcode; in SetHashcode()
/arkcompiler/runtime_core/static_core/irtoc/scripts/
Dstring_helpers.irt286 hashcode := LoadI(str).Imm(Constants::STRING_HASHCODE_OFFSET).u32
291 StoreI(new_str, hashcode).Imm(Constants::STRING_HASHCODE_OFFSET).u32
904 hashcode := Phi(hash, hash2).u32
923 hashcode := Phi(hash, hash2).u32
/arkcompiler/ets_runtime/ecmascript/compiler/
Dmcr_circuit_builder.cpp1080 DEFVALUE(hashcode, env_, VariableType::INT32(), Int32(0)); in GetHashcodeFromString()
1081 hashcode = Load(VariableType::INT32(), value, IntPtr(EcmaString::MIX_HASHCODE_OFFSET)); in GetHashcodeFromString()
1082 Branch(Int32Equal(*hashcode, Int32(0)), &noRawHashcode, &exit); in GetHashcodeFromString()
1085 hashcode = GetInt32OfTInt( in GetHashcodeFromString()
1087 … Store(VariableType::INT32(), glue, value, IntPtr(EcmaString::MIX_HASHCODE_OFFSET), *hashcode); in GetHashcodeFromString()
1091 auto ret = *hashcode; in GetHashcodeFromString()
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/core/
DChar.ets129 * $_hashCode(char) returns a hashcode of the char.
140 * $_hashCode() returns a hashcode of the underlying char.
DString.ets415 * Computes the hashcode for this String.
417 * @returns hashcode value of this String