Home
last modified time | relevance | path

Searched refs:methodOffset (Results 1 – 25 of 52) sorted by relevance

123

/arkcompiler/ets_runtime/ecmascript/compiler/type_inference/
Dglobal_type_infer.h24 GlobalTypeInfer(PassContext *ctx, const uint32_t methodOffset, const CString &recordName,
33 inline MethodTypeInfer *GetTypeInfer(const uint32_t methodOffset) const in GetTypeInfer() argument
35 auto it = typeInfers_.find(methodOffset); in GetTypeInfer()
42 inline bool IsLegalMethod(const uint32_t methodOffset) const in IsLegalMethod() argument
44 return (methodOffset != 0); in IsLegalMethod()
47 void NewTypeInfer(const uint32_t methodOffset);
48 void CollectNamespaceMethod(const uint32_t methodOffset);
49 void CollectNamespaceMethods(const uint32_t methodOffset);
Dglobal_type_infer.cpp19 GlobalTypeInfer::GlobalTypeInfer(PassContext *ctx, const uint32_t methodOffset, const CString &reco… in GlobalTypeInfer() argument
21 …jsPandaFile_(ctx_->GetJSPandaFile()), bcInfo_(ctx->GetBytecodeInfo()), methodOffset_(methodOffset), in GlobalTypeInfer()
26 CollectNamespaceMethods(methodOffset); in GlobalTypeInfer()
56 void GlobalTypeInfer::NewTypeInfer(const uint32_t methodOffset) in NewTypeInfer() argument
60 MethodInfo &methodInfo = methodList.at(methodOffset); in NewTypeInfer()
63 auto methodLiteral = jsPandaFile_->FindMethodLiteral(methodOffset); in NewTypeInfer()
81 typeInfers_.insert(std::make_pair(methodOffset, typeInfer)); in NewTypeInfer()
84 void GlobalTypeInfer::CollectNamespaceMethod(const uint32_t methodOffset) in CollectNamespaceMethod() argument
87 MethodInfo &methodInfo = methodList.at(methodOffset); in CollectNamespaceMethod()
99 void GlobalTypeInfer::CollectNamespaceMethods(const uint32_t methodOffset) in CollectNamespaceMethods() argument
[all …]
Dinitialization_analysis.cpp94 auto methodOffset = acc_.TryGetMethodOffset(gate); in CollectInitializationType() local
95 JSTaggedValue propKey = tsManager_->GetStringFromConstantPool(methodOffset, index); in CollectInitializationType()
118 auto methodOffset = acc_.TryGetMethodOffset(gate); in CollectInitializationInfo() local
119 JSTaggedValue propKey = tsManager_->GetStringFromConstantPool(methodOffset, index); in CollectInitializationInfo()
/arkcompiler/ets_runtime/ecmascript/compiler/
Dpgo_bc_info.h40 uint32_t methodOffset; member
53 void IterateValByMethodOffset(uint32_t methodOffset, Type type, const Callback &cb) const in IterateValByMethodOffset() argument
55 if (methodOffsetToValVec_.find(methodOffset) != methodOffsetToValVec_.end()) { in IterateValByMethodOffset()
56 const ValVec &valVec = methodOffsetToValVec_.at(methodOffset); in IterateValByMethodOffset()
64 void IterateValByMethodOffsetAndType(uint32_t methodOffset, const Callback &cb) const in IterateValByMethodOffsetAndType() argument
66 if (methodOffsetToValVec_.find(methodOffset) != methodOffsetToValVec_.end()) { in IterateValByMethodOffsetAndType()
67 const ValVec &valVec = methodOffsetToValVec_.at(methodOffset); in IterateValByMethodOffsetAndType()
96 void IterateInfoAndType(uint32_t methodOffset, const Callback &cb) const in IterateInfoAndType() argument
100 infos_[idx].IterateValByMethodOffset(methodOffset, type, cb); in IterateInfoAndType()
105 void IterateInfoByType(uint32_t methodOffset, Type type, const Callback &cb) const in IterateInfoByType() argument
[all …]
Dpgo_bc_info.cpp21 auto it = methodOffsetToValVec_.find(detail.methodOffset); in Record()
23 methodOffsetToValVec_[detail.methodOffset] = in Record()
66 uint32_t methodOffset = method->GetMethodId().GetOffset(); in Record() local
70 … Record(InfoDetail {recordName, methodOffset, bcIndex, bcOffset, cpIndex}, Type::OBJ_LITERAL); in Record()
73 … Record(InfoDetail {recordName, methodOffset, bcIndex, bcOffset, cpIndex}, Type::ARRAY_LITERAL); in Record()
75 Record(InfoDetail {recordName, methodOffset, bcIndex, bcOffset, 0}, Type::EMPTY_ARRAY); in Record()
77 Record(InfoDetail {recordName, methodOffset, bcIndex, bcOffset, 0}, Type::CALL_TARGET); in Record()
79 Record(InfoDetail {recordName, methodOffset, bcIndex, bcOffset, 0}, Type::CLASS); in Record()
81 Record(InfoDetail {recordName, methodOffset, bcIndex, bcOffset, 0}, Type::FUNCTION); in Record()
Dbytecode_info_collector.h435 bool IsSkippedMethod(uint32_t methodOffset) const in IsSkippedMethod() argument
437 if (skippedMethods_.find(methodOffset) == skippedMethods_.end()) { in IsSkippedMethod()
448 void AddSkippedMethod(uint32_t methodOffset) in AddSkippedMethod() argument
450 skippedMethods_.insert(methodOffset); in AddSkippedMethod()
453 void EraseSkippedMethod(uint32_t methodOffset) in EraseSkippedMethod() argument
455 if (skippedMethods_.find(methodOffset) != skippedMethods_.end()) { in EraseSkippedMethod()
456 skippedMethods_.erase(methodOffset); in EraseSkippedMethod()
472 bool FindMethodOffsetToRecordName(uint32_t methodOffset) in FindMethodOffsetToRecordName() argument
474 return methodOffsetToRecordName_.find(methodOffset) != methodOffsetToRecordName_.end(); in FindMethodOffsetToRecordName()
477 void AddMethodOffsetToRecordName(uint32_t methodOffset, CString recordName) in AddMethodOffsetToRecordName() argument
[all …]
Dcompilation_driver.h84 uint32_t methodOffset, in CompileMethod() argument
89 SetCurrentConstantPool(methodOffset); in CompileMethod()
90 cb(bytecodeInfo_.GetRecordName(index), methodName, methodLiteral, methodOffset, in CompileMethod()
181 void AddDependList(const CString &recordName, uint32_t methodOffset, in AddDependList() argument
191 auto &methodInfo = methodList.at(methodOffset); in AddDependList()
204 bool VerifyAndMarkCurMethod(uint32_t methodOffset, std::unordered_set<EntityId> &newMethodSet) in VerifyAndMarkCurMethod() argument
207 if (methodOffset == MethodInfo::DEFAULT_OUTMETHOD_OFFSET) { in VerifyAndMarkCurMethod()
212 auto iter = methodList.find(methodOffset); in VerifyAndMarkCurMethod()
223 panda_file::File::EntityId methodId(methodOffset); in VerifyAndMarkCurMethod()
269 uint32_t methodOffset = methodId.GetOffset(); in SearchForCompilation() local
[all …]
Dbytecode_info_collector.cpp110 auto methodOffset = methodId.GetOffset(); in ProcessClasses() local
113 jsPandaFile_->UpdateMainMethodIndex(methodOffset, recordName); in ProcessClasses()
132 auto it = processedMethod.find(methodOffset); in ProcessClasses()
136 recordName, methodOffset, classConstructIndexes); in ProcessClasses()
137 … processedMethod[methodOffset] = std::make_pair(methodPcInfos.size() - 1, methodOffset); in ProcessClasses()
144 SetMethodPcInfoIndex(methodOffset, processedMethod[methodOffset]); in ProcessClasses()
189 auto methodOffset = methodId.GetOffset(); in ProcessMethod() local
208 recordName, methodOffset, classConstructIndexes); in ProcessMethod()
209 processedMethod[methodOffset] = std::make_pair(methodPcInfos.size() - 1, methodOffset); in ProcessMethod()
215 SetMethodPcInfoIndex(methodOffset, processedMethod[methodOffset]); in ProcessMethod()
[all …]
Dtype_recorder.cpp50 uint32_t methodOffset = fieldId.GetOffset(); in LoadTypes() local
51 TypeAnnotationExtractor annoExtractor(jsPandaFile, methodOffset); in LoadTypes()
55 &thisGT, tsManager, methodOffset](const int32_t bcIdx, const uint32_t typeId) { in LoadTypes()
60 TypeLocation loc(jsPandaFile, methodOffset, bcIdx); in LoadTypes()
75 auto methodIter = methodList.find(methodOffset); in LoadTypes()
157 uint32_t methodOffset = methodLiteral->GetMethodId().GetOffset(); in CreateTypesForPGO() local
159 …bcInfo->IterateInfoAndType(methodOffset, [this, &typeParser, methodOffset, &recordName, &jsPandaFi… in CreateTypesForPGO()
197 TypeLocation loc(jsPandaFile, methodOffset, bcIdx); in CreateTypesForPGO()
202 …STypeRef gt = typeParser.CreatePGOGT(TSTypeParser::PGOInfo { jsPandaFile, recordName, methodOffset, in CreateTypesForPGO()
214 uint32_t methodOffset = methodLiteral->GetMethodId().GetOffset(); in BindPgoTypeToGateType() local
[all …]
Dpass_manager.cpp57 uint32_t methodOffset, in Compile()
62 … LOG_COMPILER(INFO) << "JIT Compile Method Start: " << methodName << ", " << methodOffset << "\n"; in Compile()
71 tsManager->SetCurConstantPool(jsPandaFile, methodOffset); in Compile()
94 TimeScope timeScope("BytecodeToCircuit", methodName, methodOffset, log_); in Compile()
99 methodLiteral, methodOffset, vm_->GetNativeAreaAllocator(), decoder, passOptions_); in Compile()
219 uint32_t methodOffset, in Compile()
229 tsManager->SetCurConstantPool(jsPandaFile, methodOffset); in Compile()
253 TimeScope timeScope("BytecodeToCircuit", methodName, methodOffset, log_); in Compile()
258 … methodLiteral, methodOffset, vm_->GetNativeAreaAllocator(), decoder, passOptions_); in Compile()
Dtype_info_accessors.cpp333 auto methodOffset = acc_.TryGetMethodOffset(gate_); in GetAccessorFuncGT() local
334 auto prop = tsManager_->GetStringFromConstantPool(methodOffset, propIndex); in GetAccessorFuncGT()
343 auto methodOffset = acc_.TryGetMethodOffset(gate_); in GetAccessorPlr() local
344 auto prop = tsManager_->GetStringFromConstantPool(methodOffset, propIndex); in GetAccessorPlr()
381 uint32_t methodOffset = 0; in GetCallMethodId() local
383 methodOffset = GetFuncMethodOffsetFromPGO(); in GetCallMethodId()
384 if (methodOffset == base::PGO_POLY_INLINE_REP) { in GetCallMethodId()
385 methodOffset = 0; in GetCallMethodId()
386 return methodOffset; in GetCallMethodId()
389 if (methodOffset == 0) { in GetCallMethodId()
[all …]
Dts_hcr_opt_pass.cpp95 auto methodOffset = acc_.TryGetMethodOffset(gate); in IsSingleCharString() local
96 JSTaggedValue str = GetStringFromCP(methodOffset, strId); in IsSingleCharString()
119 auto methodOffset = acc_.TryGetMethodOffset(gate); in ConvertConstSingleCharToInt32() local
120 JSTaggedValue str = tsManager_->GetStringFromConstantPool(methodOffset, strId); in ConvertConstSingleCharToInt32()
Daot_compiler_preprocessor.cpp211 uint32_t methodOffset = method.first; in GenerateGlobalTypes() local
212 tsManager->SetCurConstantPool(jsPandaFile, methodOffset); in GenerateGlobalTypes()
213 CString recordName = MethodLiteral::GetRecordName(jsPandaFile, EntityId(methodOffset)); in GenerateGlobalTypes()
214 auto methodLiteral = jsPandaFile->FindMethodLiteral(methodOffset); in GenerateGlobalTypes()
215 auto &methodInfo = methodList.at(methodOffset); in GenerateGlobalTypes()
221 bcInfo->IterateInfoByType(methodOffset, PGOBCInfo::Type::ARRAY_LITERAL, in GenerateGlobalTypes()
Dts_hcr_opt_pass.h50 JSTaggedValue GetStringFromCP(uint32_t methodOffset, uint32_t cpIdx) const in GetStringFromCP() argument
52 return tsManager_->GetStringFromConstantPool(methodOffset, cpIdx); in GetStringFromCP()
Dts_inline_lowering.cpp58 uint32_t methodOffset = 0; in GetInlinedMethodId() local
62 methodOffset = tsManager_->GetFuncMethodOffset(gt); in GetInlinedMethodId()
64 if (methodOffset == 0) { in GetInlinedMethodId()
67 methodOffset = pgoType.GetCallMethodId(); in GetInlinedMethodId()
70 acc_.UpdateMethodOffset(gate, methodOffset); in GetInlinedMethodId()
123 uint32_t methodOffset = info.GetCallMethodId(); in TryInline() local
124 if (methodOffset == 0 || ctx_->IsSkippedMethod(methodOffset)) { in TryInline()
127 if (IsRecursiveFunc(info, methodOffset)) { in TryInline()
130 inlinedMethod = ctx_->GetJSPandaFile()->FindMethodLiteral(methodOffset); in TryInline()
135 auto &methodInfo = bytecodeInfo.GetMethodList().at(methodOffset); in TryInline()
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/pgo_type/
Dpgo_type_location.h31 explicit PGOTypeLocation(const JSPandaFile *jsPandaFile, uint32_t methodOffset, in PGOTypeLocation() argument
33 … : abcName_(jsPandaFile->GetNormalizedFileDesc()), methodOffset_(methodOffset), bcIdx_(bcIdx) {} in PGOTypeLocation()
34 explicit PGOTypeLocation(const CString &abcName, uint32_t methodOffset, in PGOTypeLocation() argument
36 : abcName_(abcName), methodOffset_(methodOffset), bcIdx_(bcIdx) {} in PGOTypeLocation()
Dpgo_type_parser.cpp26 const PGOHClassGenerator &generator, uint32_t methodOffset) in Parse() argument
31 bcInfo->IterateInfoByType(methodOffset, type_, in Parse()
32 [this, jsPandaFile, &typeRecorder, &generator, methodOffset]( in Parse()
39 PGOTypeLocation loc(jsPandaFile, methodOffset, bcIdx); in Parse()
234 collector.IterateAllMethods([this, jsPandaFile, &collector](uint32_t methodOffset) { in CreatePGOType() argument
235 PGOTypeRecorder typeRecorder(decoder_, jsPandaFile, methodOffset); in CreatePGOType()
238 parser->Parse(collector, typeRecorder, generator, methodOffset); in CreatePGOType()
Dpgo_type_manager.cpp34 …TypeManager::GetConstantPoolIDByMethodOffset(const JSPandaFile *jsPandaFile, uint32_t methodOffset) in GetConstantPoolIDByMethodOffset() argument
37 panda_file::File::EntityId(methodOffset)); in GetConstantPoolIDByMethodOffset()
159 void PGOTypeManager::SetCurConstantPool(const JSPandaFile *jsPandaFile, uint32_t methodOffset) in SetCurConstantPool() argument
161 curCPID_ = GetConstantPoolIDByMethodOffset(jsPandaFile, methodOffset); in SetCurConstantPool()
Dpgo_type_recorder.cpp26 const PGOProfilerDecoder &decoder, const JSPandaFile *jsPandaFile, uint32_t methodOffset) in PGOTypeRecorder() argument
40 const CString recordName = MethodLiteral::GetRecordName(jsPandaFile, EntityId(methodOffset)); in PGOTypeRecorder()
41 auto methodLiteral = jsPandaFile->FindMethodLiteral(methodOffset); in PGOTypeRecorder()
Dpgo_type_manager.h28 …tic int32_t GetConstantPoolIDByMethodOffset(const JSPandaFile *jsPandaFile, uint32_t methodOffset);
38 void SetCurConstantPool(const JSPandaFile *jsPandaFile, uint32_t methodOffset);
/arkcompiler/ets_runtime/ecmascript/compiler/aot_snapshot/
Dsnapshot_constantpool_data.cpp71 … auto methodOffset = JSHandle<JSFunction>(valueHandle)->GetCallTarget()->GetMethodId().GetOffset(); in CollectLiteralInfo() local
72 if (skippedMethods.find(methodOffset) != skippedMethods.end()) { in CollectLiteralInfo()
75 methodOffsetVec.emplace_back(methodOffset); in CollectLiteralInfo()
83 auto methodOffset = methodOffsetVec[i]; in CollectLiteralInfo() local
84 aotLiteralInfo->SetObjectToCache(thread_, i, JSTaggedValue(methodOffset)); in CollectLiteralInfo()
126 uint32_t methodOffset = cp->GetEntityId(data.constantPoolIdx_).GetOffset(); in StoreDataToGlobalData() local
134 ProfileType pt(abcId, methodOffset, ProfileType::Kind::ClassId, true); in StoreDataToGlobalData()
143 if (skippedMethods.find(methodOffset) == skippedMethods.end()) { in StoreDataToGlobalData()
144 aotLiteralInfo->SetObjectToCache(thread_, 0, JSTaggedValue(methodOffset)); in StoreDataToGlobalData()
252 uint32_t methodOffset = method->GetMethodId().GetOffset(); in Record() local
[all …]
Dsnapshot_global_data.cpp50 uint32_t methodOffset = static_cast<uint32_t>(methodOffsetVal.GetInt()); in Resolve() local
53 << methodOffset << ") "; in Resolve()
55 AnFileInfo::FuncEntryIndexKey key = std::make_pair(name, methodOffset); in Resolve()
/arkcompiler/ets_runtime/ecmascript/jspandafile/
Dtype_literal_extractor.cpp36 static uint32_t GetMethodAnnoOffset(const JSPandaFile *jsPandaFile, uint32_t methodOffset, const ch… in GetMethodAnnoOffset() argument
39 EntityId methodId(methodOffset); in GetMethodAnnoOffset()
231 …tionExtractor::TypeAnnotationExtractor(const JSPandaFile *jsPandaFile, const uint32_t methodOffset) in TypeAnnotationExtractor() argument
233 ProcessTypeAnnotation(jsPandaFile, methodOffset); in TypeAnnotationExtractor()
237 …tationExtractor::ProcessTypeAnnotation(const JSPandaFile *jsPandaFile, const uint32_t methodOffset) in ProcessTypeAnnotation() argument
239 uint32_t annoOffset = GetMethodAnnoOffset(jsPandaFile, methodOffset, TYPE_ANNO_ELEMENT_NAME); in ProcessTypeAnnotation()
336 uint32_t methodOffset = jsPandaFile->GetMainMethodIndex(recordName); in ProcessExportTable() local
337 uint32_t annoOffset = GetMethodAnnoOffset(jsPandaFile, methodOffset, name); in ProcessExportTable()
/arkcompiler/ets_runtime/ecmascript/ts_types/
Dglobal_type_info.h81 explicit TypeLocation(const JSPandaFile *jsPandaFile, uint32_t methodOffset, in TypeLocation() argument
83 : jsPandaFile_(jsPandaFile), methodOffset_(methodOffset), bcIdx_(bcIdx) {} in TypeLocation()
Dts_manager.h226 void PUBLIC_API SetFuncMethodOffset(GlobalTSTypeRef gt, uint32_t methodOffset);
324 inline void StoreNamespaceType(const uint32_t methodOffset, const kungfu::GateType type) in StoreNamespaceType() argument
326 methodOffsetToType_.insert(std::make_pair(methodOffset, type)); in StoreNamespaceType()
329 inline kungfu::GateType GetNamespaceObjType(const uint32_t methodOffset) const in GetNamespaceObjType() argument
331 ASSERT(HasInferredNamespaceType(methodOffset)); in GetNamespaceObjType()
332 return methodOffsetToType_.at(methodOffset); in GetNamespaceObjType()
335 inline bool HasInferredNamespaceType(const uint32_t methodOffset) const in HasInferredNamespaceType() argument
337 return methodOffsetToType_.find(methodOffset) != methodOffsetToType_.end(); in HasInferredNamespaceType()
494 void PUBLIC_API SetCurConstantPool(const JSPandaFile *jsPandaFile, uint32_t methodOffset);
496 … PUBLIC_API GetConstantPoolIDByMethodOffset(const JSPandaFile *jsPandaFile, uint32_t methodOffset);

123