Searched refs:hashcode (Results 1 – 10 of 10) sorted by relevance
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_test_suite/intrinsics/ |
| D | string_hashcode.ets | 113 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/ |
| D | regexp_parser_cache.cpp | 41 auto hashcode = EcmaStringAccessor(pattern).GetHashcode(); in GetHash() local 42 return (hashcode ^ flags) % CACHE_SIZE; in GetHash()
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | ecma_string_table.cpp | 76 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()
|
| D | ecma_string.h | 188 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/ |
| D | protobufSnapshotGenerator.cpp | 75 uint32_t hashCode = protoCache.hashcode(); in GetCacheContext()
|
| /arkcompiler/runtime_core/static_core/runtime/include/coretypes/ |
| D | string.h | 327 void SetHashcode(uint32_t hashcode) in SetHashcode() argument 329 hashcode_ = hashcode; in SetHashcode()
|
| /arkcompiler/runtime_core/static_core/irtoc/scripts/ |
| D | string_helpers.irt | 286 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/ |
| D | mcr_circuit_builder.cpp | 1080 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/ |
| D | Char.ets | 129 * $_hashCode(char) returns a hashcode of the char. 140 * $_hashCode() returns a hashcode of the underlying char.
|
| D | String.ets | 415 * Computes the hashcode for this String. 417 * @returns hashcode value of this String
|