Home
last modified time | relevance | path

Searched refs:jsPandaFile (Results 1 – 25 of 91) sorted by relevance

1234

/arkcompiler/ets_runtime/ecmascript/jspandafile/
Djs_pandafile_manager.cpp48 std::shared_ptr<JSPandaFile> jsPandaFile; in LoadJSPandaFile() local
55 jsPandaFile = FindJSPandaFileWithChecksum(filename, pf->GetHeader()->checksum); in LoadJSPandaFile()
57 jsPandaFile = FindJSPandaFileUnlocked(filename); in LoadJSPandaFile()
59 if (jsPandaFile != nullptr) { in LoadJSPandaFile()
60 InsertJSPandaFileVmUnlocked(thread->GetEcmaVM(), jsPandaFile); in LoadJSPandaFile()
61 return jsPandaFile; in LoadJSPandaFile()
105 …std::shared_ptr<JSPandaFile> jsPandaFile = GenerateJSPandaFile(thread, pf.release(), filename, ent… in LoadJSPandaFile() local
108 GetJSPtExtractorAndExtract(jsPandaFile.get()); in LoadJSPandaFile()
111 return jsPandaFile; in LoadJSPandaFile()
124 std::shared_ptr<JSPandaFile> jsPandaFile; in LoadJSPandaFile() local
[all …]
Djs_pandafile_executor.cpp63 std::shared_ptr<JSPandaFile> jsPandaFile = in ExecuteFromFile() local
65 if (jsPandaFile == nullptr) { in ExecuteFromFile()
69 LoadAOTFilesForFile(vm, jsPandaFile.get()); in ExecuteFromFile()
74 if (!jsPandaFile->IsBundlePack() && !excuteFromJob && !vm->GetBundleName().empty()) { in ExecuteFromFile()
75 jsPandaFile->CheckIsRecordWithBundleName(entry); in ExecuteFromFile()
76 if (!jsPandaFile->IsRecordWithBundleName()) { in ExecuteFromFile()
82 bool hasRecord = jsPandaFile->CheckAndGetRecordInfo(entry, recordInfo); in ExecuteFromFile()
88 if (jsPandaFile->IsModule(recordInfo)) { in ExecuteFromFile()
92 if (jsPandaFile->IsBundlePack()) { in ExecuteFromFile()
109 return JSPandaFileExecutor::Execute(thread, jsPandaFile.get(), entry.c_str(), excuteFromJob); in ExecuteFromFile()
[all …]
Dmethod_literal.cpp32 void MethodLiteral::Initialize(const JSPandaFile *jsPandaFile) in Initialize() argument
34 const panda_file::File *pf = jsPandaFile->GetPandaFile(); in Initialize()
84 std::string MethodLiteral::ParseFunctionName(const JSPandaFile *jsPandaFile, EntityId methodId) in ParseFunctionName() argument
86 if (jsPandaFile == nullptr) { in ParseFunctionName()
90 std::string methodName(GetMethodName(jsPandaFile, methodId)); in ParseFunctionName()
99 const char *MethodLiteral::GetMethodName(const JSPandaFile *jsPandaFile, EntityId methodId) in GetMethodName() argument
101 if (jsPandaFile == nullptr) { in GetMethodName()
105 const panda_file::File *pf = jsPandaFile->GetPandaFile(); in GetMethodName()
107 auto sd = jsPandaFile->GetStringData(mda.GetNameId()); in GetMethodName()
111 CString MethodLiteral::GetRecordName(const JSPandaFile *jsPandaFile, EntityId methodId) in GetRecordName() argument
[all …]
Dtype_literal_extractor.cpp36 static uint32_t GetMethodAnnoOffset(const JSPandaFile *jsPandaFile, uint32_t methodOffset, const ch… in GetMethodAnnoOffset() argument
38 const panda_file::File &pf = *jsPandaFile->GetPandaFile(); in GetMethodAnnoOffset()
43 mda.EnumerateAnnotations([&jsPandaFile, &annoName, &pf, &annoOffset](EntityId annotationId) { in GetMethodAnnoOffset()
45 …auto *annotationName = reinterpret_cast<const char *>(jsPandaFile->GetStringData(ada.GetClassId())… in GetMethodAnnoOffset()
53 …auto *elemName = reinterpret_cast<const char *>(jsPandaFile->GetStringData(adae.GetNameId()).data); in GetMethodAnnoOffset()
67 TypeLiteralExtractor::TypeLiteralExtractor(const JSPandaFile *jsPandaFile, const uint32_t typeOffse… in TypeLiteralExtractor() argument
70 ProcessTypeLiteral(jsPandaFile, typeOffset); in TypeLiteralExtractor()
73 void TypeLiteralExtractor::ProcessTypeLiteral(const JSPandaFile *jsPandaFile, const uint32_t typeOf… in ProcessTypeLiteral() argument
76 LiteralDataAccessor lda = jsPandaFile->GetLiteralDataAccessor(); in ProcessTypeLiteral()
79 [this, &jsPandaFile, &isFirst](const LiteralValue &value, const LiteralTag &tag) { in ProcessTypeLiteral()
[all …]
Dliteral_data_extractor.h35 static void ExtractObjectDatas(JSThread *thread, const JSPandaFile *jsPandaFile, size_t index,
38 static void ExtractObjectDatas(JSThread *thread, const JSPandaFile *jsPandaFile, EntityId id,
44 …dle<TaggedArray> GetDatasIgnoreType(JSThread *thread, const JSPandaFile *jsPandaFile, size_t index,
46 …ndle<TaggedArray> GetDatasIgnoreType(JSThread *thread, const JSPandaFile *jsPandaFile, EntityId id,
49 … JSHandle<TaggedArray> GetDatasIgnoreTypeForClass(JSThread *thread, const JSPandaFile *jsPandaFile,
53 …static JSHandle<JSFunction> DefineMethodInLiteral(JSThread *thread, const JSPandaFile *jsPandaFile,
59 static void PUBLIC_API GetMethodOffsets(const JSPandaFile *jsPandaFile, size_t index,
62 static void PUBLIC_API GetMethodOffsets(const JSPandaFile *jsPandaFile, EntityId id,
66 const JSPandaFile *jsPandaFile, size_t index, JSHandle<ConstantPool> constpool,
Dprogram_object.h76 static JSHandle<ConstantPool> CreateConstPool(EcmaVM *vm, const JSPandaFile *jsPandaFile, in CreateConstPool() argument
79 … const panda_file::File::IndexHeader *mainIndex = jsPandaFile->GetPandaFile()->GetIndexHeader(id); in CreateConstPool()
84 bool isLoadedAOT = jsPandaFile->IsLoadedAOT(); in CreateConstPool()
87 panda_file::IndexAccessor indexAccessor(*jsPandaFile->GetPandaFile(), id); in CreateConstPool()
89 constpool = GetDeserializedConstantPool(vm, jsPandaFile, index); in CreateConstPool()
100 constpool->SetJSPandaFile(jsPandaFile); in CreateConstPool()
108 JSPandaFile *jsPandaFile = GetJSPandaFile(); in GetEntityId() local
110 Span<const panda_file::File::EntityId> indexs = jsPandaFile->GetMethodIndex(indexHeader); in GetEntityId()
116 JSPandaFile *jsPandaFile = GetJSPandaFile(); in GetMethodIndexByEntityId() local
118 Span<const panda_file::File::EntityId> indexs = jsPandaFile->GetMethodIndex(indexHeader); in GetMethodIndexByEntityId()
[all …]
Dliteral_data_extractor.cpp33 void LiteralDataExtractor::ExtractObjectDatas(JSThread *thread, const JSPandaFile *jsPandaFile, siz… in ExtractObjectDatas() argument
40 LiteralDataAccessor lda = jsPandaFile->GetLiteralDataAccessor(); in ExtractObjectDatas()
50 index, [elements, properties, &epos, &ppos, factory, thread, jsPandaFile, in ExtractObjectDatas()
68 StringData sd = jsPandaFile->GetStringData(EntityId(std::get<uint32_t>(value))); in ExtractObjectDatas()
90 … DefineMethodInLiteral(thread, jsPandaFile, methodId, constpool, kind, length, entryPoint); in ExtractObjectDatas()
119 …const JSPandaFile *jsPandaFile, size_t index, JSHandle<ConstantPool> constpool, const CString &ent… in GetDatasIgnoreTypeForClass() argument
121 LiteralDataAccessor lda = jsPandaFile->GetLiteralDataAccessor(); in GetDatasIgnoreTypeForClass()
128 return EnumerateLiteralVals(thread, lda, jsPandaFile, index, constpool, entryPoint); in GetDatasIgnoreTypeForClass()
131 …edArray> LiteralDataExtractor::GetDatasIgnoreType(JSThread *thread, const JSPandaFile *jsPandaFile, in GetDatasIgnoreType() argument
135 LiteralDataAccessor lda = jsPandaFile->GetLiteralDataAccessor(); in GetDatasIgnoreType()
[all …]
Dpanda_file_translator.h38 static JSHandle<Program> GenerateProgram(EcmaVM *vm, const JSPandaFile *jsPandaFile,
40 static void TranslateClasses(JSPandaFile *jsPandaFile, const CString &methodName);
45 static void TranslateBytecode(JSPandaFile *jsPandaFile, uint32_t insSz, const uint8_t *insArr,
50 static JSHandle<ConstantPool> ParseConstPool(EcmaVM *vm, const JSPandaFile *jsPandaFile);
51 …static void ParseFuncAndLiteralConstPool(EcmaVM *vm, const JSPandaFile *jsPandaFile, const CString…
53 static JSHandle<ConstantPool> AllocateConstPool(EcmaVM *vm, const JSPandaFile *jsPandaFile);
Djs_pandafile_manager.h33 …JSHandle<Program> GenerateProgram(EcmaVM *vm, const JSPandaFile *jsPandaFile, std::string_view ent…
52 DebugInfoExtractor *GetJSPtExtractor(const JSPandaFile *jsPandaFile);
54 DebugInfoExtractor *GetJSPtExtractorAndExtract(const JSPandaFile *jsPandaFile);
56 DebugInfoExtractor *CpuProfilerGetJSPtExtractor(const JSPandaFile *jsPandaFile);
77 void AddJSPandaFileVm(const EcmaVM *vm, const std::shared_ptr<JSPandaFile> &jsPandaFile);
78 void RemoveJSPandaFileVm(const EcmaVM *vm, const JSPandaFile *jsPandaFile);
94 …oid InsertJSPandaFileVmUnlocked(const EcmaVM *vm, const std::shared_ptr<JSPandaFile> &jsPandaFile);
/arkcompiler/ets_runtime/ecmascript/
Dmethod.cpp24 const JSPandaFile *jsPandaFile = GetJSPandaFile(); in ParseFunctionName() local
25 return MethodLiteral::ParseFunctionName(jsPandaFile, GetMethodId()); in ParseFunctionName()
30 const JSPandaFile *jsPandaFile = GetJSPandaFile(); in GetMethodName() local
31 return MethodLiteral::GetMethodName(jsPandaFile, GetMethodId()); in GetMethodName()
41 const JSPandaFile *jsPandaFile = GetJSPandaFile(); in GetRecordName() local
42 return MethodLiteral::GetRecordName(jsPandaFile, GetMethodId()); in GetRecordName()
47 const JSPandaFile *jsPandaFile = GetJSPandaFile(); in GetCodeSize() local
48 return MethodLiteral::GetCodeSize(jsPandaFile, GetMethodId()); in GetCodeSize()
66 const JSPandaFile *jsPandaFile = GetJSPandaFile(); in GetMethodLiteral() local
67 return jsPandaFile->FindMethodLiteral(GetMethodId().GetOffset()); in GetMethodLiteral()
[all …]
Decma_context.cpp177 std::shared_ptr<JSPandaFile> jsPandaFile = in ~EcmaContext() local
179 if (jsPandaFile != nullptr) { in ~EcmaContext()
180 jsPandaFile->DeleteParsedConstpoolVM(vm_); in ~EcmaContext()
219 … const JSPandaFile *jsPandaFile, std::string_view entryPoint, in InvokeEcmaAotEntrypoint() argument
222 aotFileManager_->SetAOTMainFuncEntry(mainFunc, jsPandaFile, entryPoint); in InvokeEcmaAotEntrypoint()
241 Expected<JSTaggedValue, bool> EcmaContext::InvokeEcmaEntrypoint(const JSPandaFile *jsPandaFile, in InvokeEcmaEntrypoint() argument
245 …JSHandle<Program> program = JSPandaFileManager::GetInstance()->GenerateProgram(vm_, jsPandaFile, e… in InvokeEcmaEntrypoint()
252 jsPandaFile->GetJSPandaFileDesc(), entryPoint); in InvokeEcmaEntrypoint()
259 bool hasRecord = jsPandaFile->CheckAndGetRecordInfo(entry, recordInfo); in InvokeEcmaEntrypoint()
265 if (jsPandaFile->IsModule(recordInfo)) { in InvokeEcmaEntrypoint()
[all …]
/arkcompiler/ets_runtime/ecmascript/ts_types/
Dts_type_parser.h37 const JSPandaFile *jsPandaFile; member
50 …GlobalTSTypeRef PUBLIC_API CreateGT(const JSPandaFile *jsPandaFile, const CString &recordName, uin…
73 …inline GlobalTSTypeRef GetAndStoreGT(const JSPandaFile *jsPandaFile, uint32_t typeId, const CStrin…
77 GlobalTypeID gId(jsPandaFile, typeId);
82 inline GlobalTSTypeRef GetAndStoreGT(const JSPandaFile *jsPandaFile, PGOSampleType pgoTypeId,
86 GlobalTypeID gId(jsPandaFile, pgoTypeId);
91 inline GlobalTSTypeRef GetAndStoreImportGT(const JSPandaFile *jsPandaFile, uint32_t typeId, in GetAndStoreImportGT() argument
94 GlobalTypeID gId(jsPandaFile, typeId); in GetAndStoreImportGT()
138 …GlobalTSTypeRef ParseType(const JSPandaFile *jsPandaFile, const CString &recordName, uint32_t type…
142 GlobalTSTypeRef ResolveType(const JSPandaFile *jsPandaFile, const CString &recordName,
[all …]
Dts_type_parser.cpp42 GlobalTSTypeRef TSTypeParser::CreateGT(const JSPandaFile *jsPandaFile, const CString &recordName, u… in CreateGT() argument
57 GlobalTypeID gId(jsPandaFile, typeId); in CreateGT()
61 return ParseType(jsPandaFile, recordName, typeId); in CreateGT()
77 GlobalTSTypeRef TSTypeParser::ParseType(const JSPandaFile *jsPandaFile, const CString &recordName, … in ParseType() argument
79 TypeLiteralExtractor typeLiteralExtractor(jsPandaFile, typeId); in ParseType()
85 return ResolveType(jsPandaFile, recordName, &typeLiteralExtractor); in ParseType()
92 return GetAndStoreGT(jsPandaFile, typeId, recordName); in ParseType()
95 …JSHandle<TSTypeTable> table = tableGenerator_.GetOrGenerateTSTypeTable(jsPandaFile, recordName, mo… in ParseType()
101 return GetAndStoreGT(jsPandaFile, typeId, recordName); in ParseType()
105 GlobalTSTypeRef gt = GetAndStoreGT(jsPandaFile, typeId, recordName, moduleId, localId); in ParseType()
[all …]
Dglobal_type_info.h25 explicit GlobalTypeID(const JSPandaFile *jsPandaFile, PGOSampleType pgoTypeId) in GlobalTypeID() argument
26 : jsPandaFile_(jsPandaFile), typeId_(0), pgoTypeId_(pgoTypeId) {} in GlobalTypeID()
28 explicit GlobalTypeID(const JSPandaFile *jsPandaFile, uint32_t typeId) in GlobalTypeID() argument
29 : jsPandaFile_(jsPandaFile), typeId_(typeId), pgoTypeId_() {} in GlobalTypeID()
79 explicit TypeLocation(const JSPandaFile *jsPandaFile, uint32_t methodOffset, in TypeLocation() argument
81 : jsPandaFile_(jsPandaFile), methodOffset_(methodOffset), bcIdx_(bcIdx) {} in TypeLocation()
/arkcompiler/ets_runtime/ecmascript/compiler/
Dpass_manager.cpp34 bool PassManager::Compile(JSPandaFile *jsPandaFile, const std::string &fileName, AOTFileGenerator &… in Compile() argument
38 if (jsPandaFile == nullptr) { in Compile()
43 if (!PGOProfilerManager::MergeApFiles(jsPandaFile->GetChecksum(), profilerDecoder_)) { in Compile()
48 ResolveModule(jsPandaFile, fileName); in Compile()
49 …BytecodeInfoCollector collector(vm_, jsPandaFile, profilerDecoder_, maxAotMethodSize_, ShouldColle… in Compile()
53 if (!IsReleasedPandaFile(jsPandaFile)) { in Compile()
79 auto jsPandaFile = ctx.GetJSPandaFile(); in Compile() local
84 tsManager->SetCurConstantPool(jsPandaFile, methodOffset); in Compile()
87 std::string fullName = module->GetFuncName(methodLiteral, jsPandaFile); in Compile()
93 bool hasTypes = jsPandaFile->HasTSTypes(recordName); in Compile()
[all …]
Dtype_recorder.cpp26 TypeRecorder::TypeRecorder(const JSPandaFile *jsPandaFile, const MethodLiteral *methodLiteral, in TypeRecorder() argument
34 if (jsPandaFile->HasTSTypes(recordName)) { in TypeRecorder()
35 LoadTypes(jsPandaFile, methodLiteral, tsManager, recordName); in TypeRecorder()
37 LoadTypesFromPGO(jsPandaFile, methodLiteral, recordName); in TypeRecorder()
38 CreateTypesForPGO(jsPandaFile, methodLiteral, tsManager, recordName); in TypeRecorder()
42 void TypeRecorder::LoadTypes(const JSPandaFile *jsPandaFile, const MethodLiteral *methodLiteral, in LoadTypes() argument
48 TypeAnnotationExtractor annoExtractor(jsPandaFile, methodOffset); in LoadTypes()
49 …GlobalTSTypeRef funcGT = typeParser.CreateGT(jsPandaFile, recordName, annoExtractor.GetMethodTypeO… in LoadTypes()
51 annoExtractor.EnumerateInstsAndTypes([this, &typeParser, &jsPandaFile, &recordName, in LoadTypes()
53 GlobalTSTypeRef gt = typeParser.CreateGT(jsPandaFile, recordName, typeId); in LoadTypes()
[all …]
/arkcompiler/ets_runtime/ecmascript/module/
Dmodule_path_helper.h97 static CString ConcatFileNameWithMerge(JSThread *thread, const JSPandaFile *jsPandaFile,
102 static CString ParsePrefixBundle(JSThread *thread, const JSPandaFile *jsPandaFile,
104 static CString MakeNewRecord(const JSPandaFile *jsPandaFile, CString &baseFileName,
106 static CString FindOhpmEntryPoint(const JSPandaFile *jsPandaFile, const CString &ohpmPath,
108 …static CString FindPackageInTopLevelWithNamespace(const JSPandaFile *jsPandaFile, const CString &r…
110 static CString ParseOhpmPackage(const JSPandaFile *jsPandaFile, const CString &recordName,
112 static CString ParseThirdPartyPackage(const JSPandaFile *jsPandaFile, const CString &recordName,
114 static CString ParseThirdPartyPackage(const JSPandaFile *jsPandaFile, const CString &recordName,
117 … JSMutableHandle<JSTaggedValue> &fileName, const JSPandaFile *jsPandaFile);
118 …static CString FindNpmEntryPoint(const JSPandaFile *jsPandaFile, const CString &packageEntryPoint);
[all …]
Dmodule_path_helper.cpp21 CString ModulePathHelper::ConcatFileNameWithMerge(JSThread *thread, const JSPandaFile *jsPandaFile, in ConcatFileNameWithMerge() argument
27 entryPoint = ParsePrefixBundle(thread, jsPandaFile, baseFileName, requestName, recordName); in ConcatFileNameWithMerge()
35 entryPoint = MakeNewRecord(jsPandaFile, baseFileName, recordName, requestName); in ConcatFileNameWithMerge()
39 entryPoint = ParseThirdPartyPackage(jsPandaFile, recordName, requestName); in ConcatFileNameWithMerge()
148 CString ModulePathHelper::ParsePrefixBundle(JSThread *thread, const JSPandaFile *jsPandaFile, in ParsePrefixBundle() argument
154 if (jsPandaFile->IsRecordWithBundleName()) { in ParsePrefixBundle()
207 CString ModulePathHelper::MakeNewRecord(const JSPandaFile *jsPandaFile, CString &baseFileName, in MakeNewRecord() argument
225 entryPoint = ConfirmLoadingIndexOrNot(jsPandaFile, entryPoint); in MakeNewRecord()
230 entryPoint = ParseThirdPartyPackage(jsPandaFile, recordName, requestName); in MakeNewRecord()
255 CString ModulePathHelper::FindOhpmEntryPoint(const JSPandaFile *jsPandaFile, in FindOhpmEntryPoint() argument
[all …]
Dmodule_data_extractor.cpp33 …e<JSTaggedValue> ModuleDataExtractor::ParseModule(JSThread *thread, const JSPandaFile *jsPandaFile, in ParseModule() argument
36 int moduleIdx = jsPandaFile->GetModuleRecordIdx(descriptor); in ParseModule()
40 if (jsPandaFile->IsNewVersion()) { // new pandafile version use new literal offset mechanism in ParseModule()
43 panda_file::LiteralDataAccessor lda = jsPandaFile->GetLiteralDataAccessor(); in ParseModule()
49 ModuleDataExtractor::ExtractModuleDatas(thread, jsPandaFile, moduleId, moduleRecord); in ParseModule()
56 moduleRecord->SetIsNewBcVersion(jsPandaFile->IsNewVersion()); in ParseModule()
61 void ModuleDataExtractor::ExtractModuleDatas(JSThread *thread, const JSPandaFile *jsPandaFile, in ExtractModuleDatas() argument
67 ModuleDataAccessor mda(jsPandaFile, moduleId); in ExtractModuleDatas()
72 StringData sd = jsPandaFile->GetStringData(panda_file::File::EntityId(requestModules[idx])); in ExtractModuleDatas()
87 …STaggedValue> ModuleDataExtractor::ParseCjsModule(JSThread *thread, const JSPandaFile *jsPandaFile) in ParseCjsModule() argument
[all …]
Dmodule_data_extractor.h34 static void ExtractModuleDatas(JSThread *thread, const JSPandaFile *jsPandaFile,
37 static JSHandle<JSTaggedValue> ParseModule(JSThread *thread, const JSPandaFile *jsPandaFile,
39 static JSHandle<JSTaggedValue> ParseCjsModule(JSThread *thread, const JSPandaFile *jsPandaFile);
40 static JSHandle<JSTaggedValue> ParseJsonModule(JSThread *thread, const JSPandaFile *jsPandaFile,
44 …static JSTaggedValue JsonParse(JSThread *thread, const JSPandaFile *jsPandaFile, CString entryPoin…
Djs_module_manager.cpp356 …gedValue> ModuleManager::ResolveModuleInMergedABC(JSThread *thread, const JSPandaFile *jsPandaFile, in ResolveModuleInMergedABC() argument
361 if (!vm_->EnableReportModuleResolvingFailure() && (jsPandaFile == nullptr || in ResolveModuleInMergedABC()
362 (jsPandaFile != nullptr && !jsPandaFile->HasRecord(recordName)))) { in ResolveModuleInMergedABC()
365 return ResolveModuleWithMerge(thread, jsPandaFile, recordName, excuteFromJob); in ResolveModuleInMergedABC()
381 std::shared_ptr<JSPandaFile> jsPandaFile = SkipDefaultBundleFile(moduleFileName) ? nullptr : in HostResolveImportedModuleWithMerge() local
383 if (jsPandaFile == nullptr) { in HostResolveImportedModuleWithMerge()
394 jsPandaFile.get(), recordName, excuteFromJob); in HostResolveImportedModuleWithMerge()
439 std::shared_ptr<JSPandaFile> jsPandaFile = in HostResolveImportedModule() local
441 if (jsPandaFile == nullptr) { in HostResolveImportedModule()
446 return ResolveModule(thread, jsPandaFile.get(), excuteFromJob); in HostResolveImportedModule()
[all …]
/arkcompiler/ets_runtime/ecmascript/debugger/
Dhot_reload_manager.cpp45 const JSPandaFile *HotReloadManager::GetBaseJSPandaFile(const JSPandaFile *jsPandaFile) const in GetBaseJSPandaFile()
47 auto iter = baseJSPandaFiles_.find(jsPandaFile); in GetBaseJSPandaFile()
50 return jsPandaFile; in GetBaseJSPandaFile()
64 void HotReloadManager::ExtractPatch(const JSPandaFile *jsPandaFile) in ExtractPatch() argument
66 auto *patchExtractor = JSPandaFileManager::GetInstance()->GetJSPtExtractor(jsPandaFile); in ExtractPatch()
72 const auto &recordInfos = jsPandaFile->GetJSRecordInfo(); in ExtractPatch()
74 … auto mainMethodIndex = panda_file::File::EntityId(jsPandaFile->GetMainMethodIndex(recordName)); in ExtractPatch()
80 notificationMgr->LoadModuleEvent(jsPandaFile->GetJSPandaFileDesc(), recordName); in ExtractPatch()
/arkcompiler/ets_runtime/ecmascript/compiler/aot_file/
Daot_file_manager.cpp85 void AOTFileManager::LoadAiFile(const JSPandaFile *jsPandaFile) in LoadAiFile() argument
87 uint32_t anFileInfoIndex = GetAnFileIndex(jsPandaFile); in LoadAiFile()
101 aiFilename += JSFilePath::GetHapName(jsPandaFile) + AOTFileManager::FILE_EXTENSION_AI; in LoadAiFile()
105 const std::shared_ptr<AnFileInfo> AOTFileManager::GetAnFileInfo(const JSPandaFile *jsPandaFile) con… in GetAnFileInfo()
107 uint32_t index = GetAnFileIndex(jsPandaFile); in GetAnFileInfo()
115 bool AOTFileManager::IsLoad(const JSPandaFile *jsPandaFile) const in IsLoad()
121 const std::shared_ptr<AnFileInfo> anFileInfo = GetAnFileInfo(jsPandaFile); in IsLoad()
128 bool AOTFileManager::IsLoadMain(const JSPandaFile *jsPandaFile, const CString &entry) const in IsLoadMain() argument
130 if (!jsPandaFile->IsLoadedAOT()) { in IsLoadMain()
134 const std::shared_ptr<AnFileInfo> anFileInfo = GetAnFileInfo(jsPandaFile); in IsLoadMain()
[all …]
Daot_file_manager.h138 const std::shared_ptr<AnFileInfo> GetAnFileInfo(const JSPandaFile *jsPandaFile) const;
139 bool IsLoad(const JSPandaFile *jsPandaFile) const;
140 bool IsLoadMain(const JSPandaFile *jsPandaFile, const CString &entry) const;
141 uint32_t GetAnFileIndex(const JSPandaFile *jsPandaFile) const;
142 void SetAOTMainFuncEntry(JSHandle<JSFunction> mainFunc, const JSPandaFile *jsPandaFile,
144 void SetAOTFuncEntry(const JSPandaFile *jsPandaFile, Method *method,
147 void LoadAiFile(const JSPandaFile *jsPandaFile);
153 … JSHandle<JSTaggedValue> GetDeserializedConstantPool(const JSPandaFile *jsPandaFile, int32_t cpID);
/arkcompiler/ets_runtime/ecmascript/require/
Djs_cjs_module.cpp100 const JSPandaFile *jsPandaFile = EcmaInterpreter::GetNativeCallPandafile(thread); in Load() local
102 CString mergedFilename = jsPandaFile->GetJSPandaFileDesc(); in Load()
106 if (jsPandaFile->IsBundlePack()) { in Load()
107 ModulePathHelper::ResolveCurrentPath(thread, parent, dirname, jsPandaFile); in Load()
115 … requestEntryPoint = ModulePathHelper::ConcatFileNameWithMerge(thread, jsPandaFile, mergedFilename, in Load()
136 bool hasRecord = jsPandaFile->CheckAndGetRecordInfo(requestEntryPoint, recordInfo); in Load()
142 if (jsPandaFile->IsJson(recordInfo)) { in Load()
144 ModuleDataExtractor::JsonParse(thread, jsPandaFile, requestEntryPoint)); in Load()
168 std::shared_ptr<JSPandaFile> jsPandaFile = in RequireExecution() local
170 if (jsPandaFile == nullptr) { in RequireExecution()
[all …]

1234