/arkcompiler/ets_frontend/es2panda/util/ |
H A D | programCache.h | 24 uint32_t hashCode { 0 }; 32 ProgramCache(uint32_t hashCode, panda::pandasm::Program program) : hashCode(hashCode), program(std::move(program)) in ProgramCache() 36 ProgramCache(uint32_t hashCode, panda::pandasm::Program program, bool needUpdateCache) in ProgramCache() 37 : hashCode(hashCode), program(std::move(program)), needUpdateCache(needUpdateCache) in ProgramCache()
|
H A D | moduleHelpers.cpp | 39 if (cacheProgramInfo != nullptr && cacheProgramInfo->hashCode == hash) { in CompileNpmModuleEntryList()
|
/arkcompiler/ets_frontend/merge_abc/src/ |
H A D | protobufSnapshotGenerator.cpp | 76 uint32_t hashCode = protoCache.hashcode(); in GetCacheContext() local 77 auto *programCache = allocator->New<panda::es2panda::util::ProgramCache>(hashCode, std::move(*program)); in GetCacheContext() 86 protoCache.set_hashcode(programCache->hashCode); in UpdateCacheFile()
|
/arkcompiler/ets_runtime/ecmascript/js_api/ |
H A D | js_api_lightweightset.cpp | 32 uint32_t hashCode = obj->Hash(thread, value.GetTaggedValue()); in Add() local 54 hashArray->Set(thread, index, JSTaggedValue(hashCode)); in Add() 80 uint32_t hashCode = Hash(thread, value.GetTaggedValue()); in GetHashIndex() local 81 int32_t index = BinarySearchHashes(hashCode, size); in GetHashIndex() 91 while (right < size && (hashArray->Get(right).GetNumber() == hashCode)) { in GetHashIndex() 98 while (left >= 0 && ((hashArray->Get(left).GetNumber() == hashCode))) { in GetHashIndex() 212 uint32_t hashCode = hashes->Get(j).GetNumber(); in HasAll() local 213 if (destHashCode == hashCode) { in HasAll() 236 bool JSAPILightWeightSet::HasHash(const JSHandle<JSTaggedValue> &hashCode) in HasHash() argument 239 int32_t index = BinarySearchHashes(hashCode in HasHash() [all...] |
H A D | js_api_lightweightset.h | 56 bool HasHash(const JSHandle<JSTaggedValue> &hashCode);
|
/arkcompiler/runtime_core/static_core/runtime/ |
H A D | string_table.cpp | 95 uint32_t hashCode = coretypes::String::ComputeHashcodeMutf8(utf8Data, utf16Length, canBeCompressed); in GetString() local 97 for (auto it = table_.find(hashCode); it != table_.end(); it++) { in GetString() 109 uint32_t hashCode = coretypes::String::ComputeHashcodeUtf16(const_cast<uint16_t *>(utf16Data), utf16Length); in GetString() local 111 for (auto it = table_.find(hashCode); it != table_.end(); it++) { in GetString() 144 uint32_t hashCode = string->GetHashcode(); in InternString() local 147 for (auto it = table_.find(hashCode); it != table_.end(); it++) { in InternString() 153 table_.insert(std::pair<uint32_t, coretypes::String *>(hashCode, string)); in InternString()
|
/arkcompiler/ets_runtime/test/moduletest/mapget/ |
H A D | mapget.js | 44 let irHash = ArkTools.hashCode(key); 45 let rtHash = ArkTools.hashCode(key, true);
|
/arkcompiler/ets_runtime/ecmascript/ |
H A D | ecma_string.cpp | 510 uint32_t hashCode; in CalculateAllConcatHashCode() local 516 firstString->HashIntegerString(firstLength, &hashCode, 0); in CalculateAllConcatHashCode() 517 secondString->HashIntegerString(secondLength, &hashCode, hashCode); in CalculateAllConcatHashCode() 518 return hashCode; in CalculateAllConcatHashCode() 520 hashCode = EcmaString::CalculateConcatHashCode(firstString, secondString); in CalculateAllConcatHashCode() 521 hashCode = MixHashcode(hashCode, NOT_INTEGER); in CalculateAllConcatHashCode() 522 return hashCode; in CalculateAllConcatHashCode()
|
H A D | object_factory.cpp | 4107 uint32_t hashCode = EcmaStringAccessor::ComputeHashcodeUtf8(utf8Data, utf8Len, canBeCompress); in NewFromUtf8WithoutStringTable() local 4108 str->SetMixHashcode(hashCode); in NewFromUtf8WithoutStringTable() 4144 uint32_t hashCode = EcmaStringAccessor::ComputeHashcodeUtf16(const_cast<uint16_t *>(utf16Data), utf16Len); in NewFromUtf16WithoutStringTable() local 4145 str->SetMixHashcode(hashCode); in NewFromUtf16WithoutStringTable() 4173 uint32_t hashCode = EcmaStringAccessor::ComputeHashcodeUtf8(utf8Data, utf8Len, canBeCompress); in NewFromUtf8WithoutStringTable() local 4174 str->SetMixHashcode(hashCode); in NewFromUtf8WithoutStringTable() 4193 uint32_t hashCode = EcmaStringAccessor::ComputeHashcodeUtf16(const_cast<uint16_t *>(utf16Data), utf16Len); in NewFromUtf16WithoutStringTable() local 4194 str->SetMixHashcode(hashCode); in NewFromUtf16WithoutStringTable()
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/include/ |
H A D | mir_function.h | 802 return hashCode; in GetHashCode() 806 hashCode = newHashCode; in SetHashCode() 1428 uint16 hashCode = 0; // for methodmetadata order member in maple::MIRFunction
|
/arkcompiler/ets_frontend/es2panda/compiler/core/ |
H A D | compileQueue.cpp | 94 if (cacheProgramInfo != nullptr && cacheProgramInfo->hashCode == src_->hash) { in RetrieveProgramFromCacheFiles()
|
/arkcompiler/ets_runtime/ecmascript/compiler/ |
H A D | mcr_circuit_builder.cpp | 1318 GateRef hashCode = ZExtInt32ToInt64(Load(VariableType::INT32(), string, IntPtr(EcmaString::MIX_HASHCODE_OFFSET))); in TryGetHashcodeFromString() local 1319 BRANCH_CIR2(Int64Equal(hashCode, Int64(0)), &noRawHashcode, &storeHash); in TryGetHashcodeFromString() 1327 result = hashCode; in TryGetHashcodeFromString()
|
/arkcompiler/runtime_core/static_core/libllvmbackend/lowering/ |
H A D | llvm_ir_constructor.cpp | 868 auto hashCode = builder_.CreateLoad(builder_.getInt32Ty(), gep); in EmitStringHashCode() local 869 auto isZero = builder_.CreateICmpEQ(hashCode, llvm::Constant::getNullValue(hashCode->getType())); in EmitStringHashCode() 885 auto result = builder_.CreatePHI(hashCode->getType(), 2U); in EmitStringHashCode() 886 result->addIncoming(hashCode, fastPath); in EmitStringHashCode()
|