Home
last modified time | relevance | path

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

12345

/arkcompiler/ets_runtime/ecmascript/jspandafile/
Djs_pandafile_manager.cpp51 std::shared_ptr<JSPandaFile> jsPandaFile; in LoadJSPandaFile() local
58 jsPandaFile = FindJSPandaFileWithChecksum(filename, pf->GetHeader()->checksum); in LoadJSPandaFile()
60 jsPandaFile = FindJSPandaFileUnlocked(filename); in LoadJSPandaFile()
62 if (jsPandaFile != nullptr) { in LoadJSPandaFile()
63 InsertJSPandaFileVmUnlocked(thread->GetEcmaVM(), jsPandaFile); in LoadJSPandaFile()
64 return jsPandaFile; in LoadJSPandaFile()
112 …std::shared_ptr<JSPandaFile> jsPandaFile = GenerateJSPandaFile(thread, pf.release(), filename, ent… in LoadJSPandaFile() local
115 GetJSPtExtractorAndExtract(jsPandaFile.get()); in LoadJSPandaFile()
118 return jsPandaFile; in LoadJSPandaFile()
131 std::shared_ptr<JSPandaFile> jsPandaFile; in LoadJSPandaFile() local
[all …]
Djs_pandafile_executor.cpp67 std::shared_ptr<JSPandaFile> jsPandaFile = in ExecuteFromAbcFile() local
69 if (jsPandaFile == nullptr) { in ExecuteFromAbcFile()
77 if (!jsPandaFile->IsBundlePack() && !excuteFromJob && !vm->GetBundleName().empty()) { in ExecuteFromAbcFile()
78 jsPandaFile->CheckIsRecordWithBundleName(entry); in ExecuteFromAbcFile()
79 if (!jsPandaFile->IsRecordWithBundleName()) { in ExecuteFromAbcFile()
85 bool hasRecord = jsPandaFile->CheckAndGetRecordInfo(entry, recordInfo); in ExecuteFromAbcFile()
91 if (jsPandaFile->IsModule(recordInfo)) { in ExecuteFromAbcFile()
95 if (jsPandaFile->IsBundlePack()) { in ExecuteFromAbcFile()
109 BindPandaFilesForAot(vm, jsPandaFile.get()); in ExecuteFromAbcFile()
113 BindPandaFilesForAot(vm, jsPandaFile.get()); in ExecuteFromAbcFile()
[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()
100 CString MethodLiteral::ParseFunctionNameToCString(const JSPandaFile *jsPandaFile, EntityId methodId) in ParseFunctionNameToCString() argument
102 if (jsPandaFile == nullptr) { in ParseFunctionNameToCString()
106 CString methodName(GetMethodName(jsPandaFile, methodId)); in ParseFunctionNameToCString()
115 const char *MethodLiteral::GetMethodName(const JSPandaFile *jsPandaFile, EntityId methodId, bool cp… in GetMethodName() argument
117 if (jsPandaFile == nullptr) { in GetMethodName()
[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 …]
Dprogram_object.h90 static JSHandle<ConstantPool> CreateConstPool(EcmaVM *vm, const JSPandaFile *jsPandaFile, in CreateConstPool() argument
93 … const panda_file::File::IndexHeader *mainIndex = jsPandaFile->GetPandaFile()->GetIndexHeader(id); in CreateConstPool()
98 bool isLoadedAOT = jsPandaFile->IsLoadedAOT(); in CreateConstPool()
101 panda_file::IndexAccessor indexAccessor(*jsPandaFile->GetPandaFile(), id); in CreateConstPool()
103 constpool = GetDeserializedConstantPool(vm, jsPandaFile, index); in CreateConstPool()
114 constpool->SetJSPandaFile(jsPandaFile); in CreateConstPool()
122 JSPandaFile *jsPandaFile = GetJSPandaFile(); in GetEntityId() local
124 Span<const panda_file::File::EntityId> indexs = jsPandaFile->GetMethodIndex(indexHeader); in GetEntityId()
130 JSPandaFile *jsPandaFile = GetJSPandaFile(); in GetMethodIndexByEntityId() local
132 Span<const panda_file::File::EntityId> indexs = jsPandaFile->GetMethodIndex(indexHeader); in GetMethodIndexByEntityId()
[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,
50 … JSHandle<TaggedArray> GetDatasIgnoreTypeForClass(JSThread *thread, const JSPandaFile *jsPandaFile,
54 …static JSHandle<JSFunction> DefineMethodInLiteral(JSThread *thread, const JSPandaFile *jsPandaFile,
61 static void PUBLIC_API GetMethodOffsets(const JSPandaFile *jsPandaFile, size_t index,
64 static void PUBLIC_API GetMethodOffsets(const JSPandaFile *jsPandaFile, EntityId id,
70 const JSPandaFile *jsPandaFile, size_t index, JSHandle<ConstantPool> constpool,
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);
Dliteral_data_extractor.cpp34 void LiteralDataExtractor::ExtractObjectDatas(JSThread *thread, const JSPandaFile *jsPandaFile, siz… in ExtractObjectDatas() argument
41 LiteralDataAccessor lda = jsPandaFile->GetLiteralDataAccessor(); in ExtractObjectDatas()
51 index, [elements, properties, &epos, &ppos, factory, thread, jsPandaFile, in ExtractObjectDatas()
69 StringData sd = jsPandaFile->GetStringData(EntityId(std::get<uint32_t>(value))); in ExtractObjectDatas()
101 … DefineMethodInLiteral(thread, jsPandaFile, methodId, constpool, kind, length, entryPoint); in ExtractObjectDatas()
131 …const JSPandaFile *jsPandaFile, size_t index, JSHandle<ConstantPool> constpool, const CString &ent… in GetDatasIgnoreTypeForClass() argument
133 LiteralDataAccessor lda = jsPandaFile->GetLiteralDataAccessor(); in GetDatasIgnoreTypeForClass()
140 return EnumerateLiteralVals(thread, lda, jsPandaFile, index, constpool, entryPoint); in GetDatasIgnoreTypeForClass()
143 …edArray> LiteralDataExtractor::GetDatasIgnoreType(JSThread *thread, const JSPandaFile *jsPandaFile, in GetDatasIgnoreType() argument
147 LiteralDataAccessor lda = jsPandaFile->GetLiteralDataAccessor(); in GetDatasIgnoreType()
[all …]
Djs_pandafile_manager.h34 …JSHandle<Program> GenerateProgram(EcmaVM *vm, const JSPandaFile *jsPandaFile, std::string_view ent…
55 DebugInfoExtractor *GetJSPtExtractor(const JSPandaFile *jsPandaFile);
57 DebugInfoExtractor *GetJSPtExtractorAndExtract(const JSPandaFile *jsPandaFile);
59 DebugInfoExtractor *CpuProfilerGetJSPtExtractor(const JSPandaFile *jsPandaFile);
81 void AddJSPandaFileVm(const EcmaVM *vm, const std::shared_ptr<JSPandaFile> &jsPandaFile);
82 void RemoveJSPandaFileVm(const EcmaVM *vm, const JSPandaFile *jsPandaFile);
98 …oid InsertJSPandaFileVmUnlocked(const EcmaVM *vm, const std::shared_ptr<JSPandaFile> &jsPandaFile);
/arkcompiler/ets_runtime/ecmascript/ts_types/
Dts_type_parser.h38 const JSPandaFile *jsPandaFile; member
51 …GlobalTSTypeRef PUBLIC_API CreateGT(const JSPandaFile *jsPandaFile, const CString &recordName, uin…
74 …inline GlobalTSTypeRef GetAndStoreGT(const JSPandaFile *jsPandaFile, uint32_t typeId, const CStrin…
78 GlobalTypeID gId(jsPandaFile, typeId);
83 inline GlobalTSTypeRef GetAndStoreGT(const JSPandaFile *jsPandaFile, PGOSampleType pgoTypeId,
87 GlobalTypeID gId(jsPandaFile, pgoTypeId);
92 inline GlobalTSTypeRef GetAndStoreImportGT(const JSPandaFile *jsPandaFile, uint32_t typeId, in GetAndStoreImportGT() argument
95 GlobalTypeID gId(jsPandaFile, typeId); in GetAndStoreImportGT()
145 …GlobalTSTypeRef ParseType(const JSPandaFile *jsPandaFile, const CString &recordName, uint32_t type…
149 GlobalTSTypeRef ResolveType(const JSPandaFile *jsPandaFile, const CString &recordName,
[all …]
Dts_type_parser.cpp47 GlobalTSTypeRef TSTypeParser::CreateGT(const JSPandaFile *jsPandaFile, const CString &recordName, u… in CreateGT() argument
62 GlobalTypeID gId(jsPandaFile, typeId); in CreateGT()
66 return ParseType(jsPandaFile, recordName, typeId); in CreateGT()
82 GlobalTSTypeRef TSTypeParser::ParseType(const JSPandaFile *jsPandaFile, const CString &recordName, … in ParseType() argument
84 TypeLiteralExtractor typeLiteralExtractor(jsPandaFile, typeId); in ParseType()
90 return ResolveType(jsPandaFile, recordName, &typeLiteralExtractor); in ParseType()
93 …uint32_t moduleId = tableGenerator_.TryGetModuleId(jsPandaFile->GetNormalizedFileDesc(), recordNam… in ParseType()
97 return GetAndStoreGT(jsPandaFile, typeId, recordName); in ParseType()
100 …JSHandle<TSTypeTable> table = tableGenerator_.GetOrGenerateTSTypeTable(jsPandaFile, recordName, mo… in ParseType()
106 return GetAndStoreGT(jsPandaFile, typeId, recordName); in ParseType()
[all …]
Dglobal_type_info.h27 explicit GlobalTypeID(const JSPandaFile *jsPandaFile, PGOSampleType pgoTypeId) in GlobalTypeID() argument
28 : jsPandaFile_(jsPandaFile), typeId_(0), pgoTypeId_(pgoTypeId) {} in GlobalTypeID()
30 explicit GlobalTypeID(const JSPandaFile *jsPandaFile, uint32_t typeId) in GlobalTypeID() argument
31 : jsPandaFile_(jsPandaFile), typeId_(typeId), pgoTypeId_() {} in GlobalTypeID()
81 explicit TypeLocation(const JSPandaFile *jsPandaFile, uint32_t methodOffset, in TypeLocation() argument
83 : jsPandaFile_(jsPandaFile), methodOffset_(methodOffset), bcIdx_(bcIdx) {} in TypeLocation()
/arkcompiler/ets_runtime/ecmascript/compiler/
Daot_compiler_preprocessor.cpp136 std::shared_ptr<JSPandaFile> jsPandaFile = CreateAndVerifyJSPandaFile(extendedFilePath); in GenerateAbcFileInfos() local
137 AbcFileInfo fileInfo(extendedFilePath, jsPandaFile); in GenerateAbcFileInfos()
138 if (jsPandaFile == nullptr) { in GenerateAbcFileInfos()
142 checksum = jsPandaFile->GetChecksum(); in GenerateAbcFileInfos()
143 ResolveModule(jsPandaFile.get(), extendedFilePath); in GenerateAbcFileInfos()
153 std::shared_ptr<JSPandaFile> jsPandaFile = nullptr; in CreateAndVerifyJSPandaFile() local
160 if (!(pkgArgsIter->second->GetJSPandaFile(runtimeOptions_, jsPandaFile))) { in CreateAndVerifyJSPandaFile()
164 jsPandaFile = jsPandaFileManager->OpenJSPandaFile(fileName.c_str()); in CreateAndVerifyJSPandaFile()
166 if (jsPandaFile == nullptr) { in CreateAndVerifyJSPandaFile()
171 if (!jsPandaFile->IsNewVersion()) { in CreateAndVerifyJSPandaFile()
[all …]
Dtype_recorder.cpp29 TypeRecorder::TypeRecorder(const JSPandaFile *jsPandaFile, const MethodLiteral *methodLiteral, in TypeRecorder() argument
37 if (jsPandaFile->HasTSTypes(recordName)) { in TypeRecorder()
38 LoadTypes(jsPandaFile, methodLiteral, tsManager, recordName); in TypeRecorder()
40 LoadTypesFromPGO(jsPandaFile, methodLiteral, recordName); in TypeRecorder()
41 CreateTypesForPGO(jsPandaFile, methodLiteral, tsManager, recordName); in TypeRecorder()
45 void TypeRecorder::LoadTypes(const JSPandaFile *jsPandaFile, const MethodLiteral *methodLiteral, in LoadTypes() argument
51 TypeAnnotationExtractor annoExtractor(jsPandaFile, methodOffset); in LoadTypes()
52 …GlobalTSTypeRef funcGT = typeParser.CreateGT(jsPandaFile, recordName, annoExtractor.GetMethodTypeO… in LoadTypes()
54 annoExtractor.EnumerateInstsAndTypes([this, &typeParser, &jsPandaFile, &recordName, in LoadTypes()
56 GlobalTSTypeRef gt = typeParser.CreateGT(jsPandaFile, recordName, typeId); in LoadTypes()
[all …]
Dpass_manager.cpp32 …const JSPandaFile *jsPandaFile = Method::Cast(jsFunction->GetMethod().GetTaggedObject())->GetJSPan… in Compile() local
34 collector_ = new BytecodeInfoCollector(vm_, const_cast<JSPandaFile*>(jsPandaFile), in Compile()
36 std::string fileName = jsPandaFile->GetFileName(); in Compile()
37 if (!IsReleasedPandaFile(jsPandaFile)) { in Compile()
41 gen.SetCurrentCompileFileName(jsPandaFile->GetNormalizedFileDesc()); in Compile()
66 auto jsPandaFile = ctx_->GetJSPandaFile(); in Compile() local
71 tsManager->SetCurConstantPool(jsPandaFile, methodOffset); in Compile()
74 std::string fullName = module->GetFuncName(methodLiteral, jsPandaFile); in Compile()
80 bool hasTypes = jsPandaFile->HasTSTypes(recordName); in Compile()
89 builder_ = new BytecodeCircuitBuilder(jsPandaFile, methodLiteral, methodPCInfo, tsManager, in Compile()
[all …]
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/
Dpgo_profiler_decoder.h42 …bool PUBLIC_API Match(const JSPandaFile *jsPandaFile, const CString &recordName, PGOMethodId metho…
82 void Update(const JSPandaFile *jsPandaFile, Callback callback) in Update() argument
87 recordSimpleInfos_->Update(GetNormalizedFileDesc(jsPandaFile), callback); in Update()
91 void Update(const JSPandaFile *jsPandaFile, const CString &recordName, Callback callback) in Update() argument
96 recordSimpleInfos_->Update(GetNormalizedFileDesc(jsPandaFile), recordName, callback); in Update()
100 …void GetTypeInfo(const JSPandaFile *jsPandaFile, const CString &recordName, const MethodLiteral *m… in GetTypeInfo() argument
106 … const auto *methodName = MethodLiteral::GetMethodName(jsPandaFile, methodLiteral->GetMethodId()); in GetTypeInfo()
110 … MethodLiteral::GetCodeSize(jsPandaFile, methodLiteral->GetMethodId())); in GetTypeInfo()
112 …return recordSimpleInfos_->GetTypeInfo(GetNormalizedFileDesc(jsPandaFile), recordName, methodName,… in GetTypeInfo()
115 …recordSimpleInfos_->GetTypeInfo(GetNormalizedFileDesc(jsPandaFile), recordName, methodName, callba… in GetTypeInfo()
[all …]
/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 GetRecordNameStr() local
42 return MethodLiteral::GetRecordName(jsPandaFile, GetMethodId()); in GetRecordNameStr()
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.cpp199 std::shared_ptr<JSPandaFile> jsPandaFile = in ~EcmaContext() local
201 if (jsPandaFile != nullptr) { in ~EcmaContext()
202 jsPandaFile->DeleteParsedConstpoolVM(vm_); in ~EcmaContext()
253 … const JSPandaFile *jsPandaFile, std::string_view entryPoint, in InvokeEcmaAotEntrypoint() argument
256 aotFileManager_->SetAOTMainFuncEntry(mainFunc, jsPandaFile, entryPoint); in InvokeEcmaAotEntrypoint()
275 …pected<JSTaggedValue, bool> EcmaContext::CommonInvokeEcmaEntrypoint(const JSPandaFile *jsPandaFile, in CommonInvokeEcmaEntrypoint() argument
283 bool hasRecord = jsPandaFile->CheckAndGetRecordInfo(entry, recordInfo); in CommonInvokeEcmaEntrypoint()
289 if (jsPandaFile->IsModule(recordInfo)) { in CommonInvokeEcmaEntrypoint()
291 CString moduleName = jsPandaFile->GetJSPandaFileDesc(); in CommonInvokeEcmaEntrypoint()
292 if (!jsPandaFile->IsBundlePack()) { in CommonInvokeEcmaEntrypoint()
[all …]
/arkcompiler/ets_runtime/ecmascript/module/
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()
38 … entryPoint = TranslateExpressionInputWithEts(thread, jsPandaFile, baseFileName, requestName); in ConcatFileNameWithMerge()
42 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()
203 CString ModulePathHelper::MakeNewRecord(const JSPandaFile *jsPandaFile, CString &baseFileName, in MakeNewRecord() argument
221 entryPoint = ConfirmLoadingIndexOrNot(jsPandaFile, entryPoint); in MakeNewRecord()
226 entryPoint = ParseThirdPartyPackage(jsPandaFile, recordName, requestName); in MakeNewRecord()
[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()
51 bool hasTLA = jsPandaFile->GetHasTopLevelAwait(descriptor); in ParseModule()
59 moduleRecord->SetIsNewBcVersion(jsPandaFile->IsNewVersion()); in ParseModule()
64 void ModuleDataExtractor::ExtractModuleDatas(JSThread *thread, const JSPandaFile *jsPandaFile, in ExtractModuleDatas() argument
70 ModuleDataAccessor mda(jsPandaFile, moduleId); in ExtractModuleDatas()
75 StringData sd = jsPandaFile->GetStringData(panda_file::File::EntityId(requestModules[idx])); in ExtractModuleDatas()
[all …]
Dmodule_path_helper.h100 static CString ConcatFileNameWithMerge(JSThread *thread, const JSPandaFile *jsPandaFile,
105 static CString ParsePrefixBundle(JSThread *thread, const JSPandaFile *jsPandaFile,
107 static CString MakeNewRecord(const JSPandaFile *jsPandaFile, CString &baseFileName,
109 static CString FindOhpmEntryPoint(const JSPandaFile *jsPandaFile, const CString &ohpmPath,
111 …static CString FindPackageInTopLevelWithNamespace(const JSPandaFile *jsPandaFile, const CString &r…
113 static CString ParseOhpmPackage(const JSPandaFile *jsPandaFile, const CString &recordName,
115 static CString ParseThirdPartyPackage(const JSPandaFile *jsPandaFile, const CString &recordName,
117 static CString ParseThirdPartyPackage(const JSPandaFile *jsPandaFile, const CString &recordName,
120 … JSMutableHandle<JSTaggedValue> &fileName, const JSPandaFile *jsPandaFile);
121 …static CString FindNpmEntryPoint(const JSPandaFile *jsPandaFile, const CString &packageEntryPoint);
[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…
/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()
65 void HotReloadManager::ExtractPatch(const JSPandaFile *jsPandaFile) in ExtractPatch() argument
67 auto *patchExtractor = JSPandaFileManager::GetInstance()->GetJSPtExtractor(jsPandaFile); in ExtractPatch()
73 const auto &recordInfos = jsPandaFile->GetJSRecordInfo(); in ExtractPatch()
75 … auto mainMethodIndex = panda_file::File::EntityId(jsPandaFile->GetMainMethodIndex(recordName)); in ExtractPatch()
81 notificationMgr->LoadModuleEvent(jsPandaFile->GetJSPandaFileDesc(), recordName); in ExtractPatch()
/arkcompiler/ets_runtime/ecmascript/compiler/aot_file/
Daot_file_manager.cpp98 bool AOTFileManager::LoadAiFile(const JSPandaFile *jsPandaFile) in LoadAiFile() argument
100 uint32_t anFileInfoIndex = GetAnFileIndex(jsPandaFile); in LoadAiFile()
114 aiFilename += JSFilePath::GetHapName(jsPandaFile) + AOTFileManager::FILE_EXTENSION_AI; in LoadAiFile()
119 const std::shared_ptr<AnFileInfo> AOTFileManager::GetAnFileInfo(const JSPandaFile *jsPandaFile) con… in GetAnFileInfo()
121 uint32_t index = jsPandaFile->GetAOTFileInfoIndex(); in GetAnFileInfo()
149 bool AOTFileManager::IsLoadMain(const JSPandaFile *jsPandaFile, const CString &entry) const in IsLoadMain() argument
151 if (!jsPandaFile->IsLoadedAOT()) { in IsLoadMain()
155 const std::shared_ptr<AnFileInfo> anFileInfo = GetAnFileInfo(jsPandaFile); in IsLoadMain()
160 …auto fileIndex = GetFileIndex(jsPandaFile->GetAOTFileInfoIndex(), jsPandaFile->GetNormalizedFileDe… in IsLoadMain()
164 return anFileInfo->IsLoadMain(fileIndex, jsPandaFile, entry); in IsLoadMain()
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/aot_snapshot/
Dsnapshot_constantpool_data.h48 const JSPandaFile *jsPandaFile, in BaseSnapshotInfo() argument
52 jsPandaFile_(jsPandaFile), in BaseSnapshotInfo()
91 const JSPandaFile *jsPandaFile, \
93 : BaseSnapshotInfo(vm, jsPandaFile, pfDecoder) {} \
104 …SnapshotConstantPoolData(EcmaVM *vm, const JSPandaFile *jsPandaFile, const PGOProfilerDecoder *pfD… in DATA_TYPE_LIST()
105 : jsPandaFile_(jsPandaFile) in DATA_TYPE_LIST()
108 infos_.emplace_back(std::make_unique<name##Info>(vm, jsPandaFile, pfDecoder)); in DATA_TYPE_LIST()

12345