Home
last modified time | relevance | path

Searched refs:JSPandaFile (Results 1 – 25 of 151) sorted by relevance

1234567

/arkcompiler/ets_runtime/ecmascript/jspandafile/
Djs_pandafile_manager.h34 …JSHandle<Program> GenerateProgram(EcmaVM *vm, const JSPandaFile *jsPandaFile, std::string_view ent…
36 …std::shared_ptr<JSPandaFile> LoadJSPandaFile(JSThread *thread, const CString &filename, std::strin…
39 …std::shared_ptr<JSPandaFile> LoadJSPandaFile(JSThread *thread, const CString &filename, std::strin…
43 std::shared_ptr<JSPandaFile> LoadJSPandaFileSecure(JSThread *thread, const CString &filename,
47 std::shared_ptr<JSPandaFile> OpenJSPandaFile(const CString &filename);
49 std::shared_ptr<JSPandaFile> OpenJSPandaFile(const CString &filename, const CString &desc);
51 …std::shared_ptr<JSPandaFile> OpenJSPandaFileFromBuffer(uint8_t *buffer, size_t size, const CString…
53 std::shared_ptr<JSPandaFile> NewJSPandaFile(const panda_file::File *pf, const CString &desc);
55 DebugInfoExtractor *GetJSPtExtractor(const JSPandaFile *jsPandaFile);
57 DebugInfoExtractor *GetJSPtExtractorAndExtract(const JSPandaFile *jsPandaFile);
[all …]
Djs_pandafile_manager.cpp46 std::shared_ptr<JSPandaFile> JSPandaFileManager::LoadJSPandaFile(JSThread *thread, const CString &f… in LoadJSPandaFile()
51 std::shared_ptr<JSPandaFile> jsPandaFile; in LoadJSPandaFile()
112 …std::shared_ptr<JSPandaFile> jsPandaFile = GenerateJSPandaFile(thread, pf.release(), filename, ent… in LoadJSPandaFile()
122 std::shared_ptr<JSPandaFile> JSPandaFileManager::LoadJSPandaFile(JSThread *thread, const CString &f… in LoadJSPandaFile()
131 std::shared_ptr<JSPandaFile> jsPandaFile; in LoadJSPandaFile()
157 …std::shared_ptr<JSPandaFile> jsPandaFile = GenerateJSPandaFile(thread, pf.release(), desc, entryPo… in LoadJSPandaFile()
166 std::shared_ptr<JSPandaFile> JSPandaFileManager::LoadJSPandaFileSecure(JSThread *thread, const CStr… in LoadJSPandaFileSecure()
175 std::shared_ptr<JSPandaFile> jsPandaFile; in LoadJSPandaFileSecure()
201 …std::shared_ptr<JSPandaFile> jsPandaFile = GenerateJSPandaFile(thread, pf.release(), desc, entryPo… in LoadJSPandaFileSecure()
210 JSHandle<Program> JSPandaFileManager::GenerateProgram(EcmaVM *vm, const JSPandaFile *jsPandaFile, in GenerateProgram()
[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,
46 … const MethodLiteral *methodLiteral, const CString &methodName = JSPandaFile::ENTRY_FUNCTION_NAME);
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.h35 static void ExtractObjectDatas(JSThread *thread, const JSPandaFile *jsPandaFile, size_t index,
38 static void ExtractObjectDatas(JSThread *thread, const JSPandaFile *jsPandaFile, EntityId id,
44 …static JSHandle<TaggedArray> GetDatasIgnoreType(JSThread *thread, const JSPandaFile *jsPandaFile, …
46 …static JSHandle<TaggedArray> GetDatasIgnoreType(JSThread *thread, const JSPandaFile *jsPandaFile, …
50 …static JSHandle<TaggedArray> GetDatasIgnoreTypeForClass(JSThread *thread, const JSPandaFile *jsPan…
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,
Djs_pandafile.cpp26 bool JSPandaFile::loadedFirstPandaFile = false;
27 JSPandaFile::JSPandaFile(const panda_file::File *pf, const CString &descriptor) in JSPandaFile() function in panda::ecmascript::JSPandaFile
47 void JSPandaFile::CheckIsBundlePack() in CheckIsBundlePack()
70 void JSPandaFile::CheckIsRecordWithBundleName(const CString &entry) in CheckIsRecordWithBundleName()
93 JSPandaFile::~JSPandaFile() in ~JSPandaFile()
110 uint32_t JSPandaFile::GetOrInsertConstantPool(ConstPoolType type, uint32_t offset, in GetOrInsertConstantPool()
131 void JSPandaFile::InitializeUnMergedPF() in InitializeUnMergedPF()
163 jsRecordInfo_.insert({JSPandaFile::ENTRY_FUNCTION_NAME, info}); in InitializeUnMergedPF()
168 void JSPandaFile::InitializeMergedPF() in InitializeMergedPF()
216 MethodLiteral *JSPandaFile::FindMethodLiteral(uint32_t offset) const in FindMethodLiteral()
[all …]
Dmethod_literal.cpp32 void MethodLiteral::Initialize(const JSPandaFile *jsPandaFile) in Initialize()
84 std::string MethodLiteral::ParseFunctionName(const JSPandaFile *jsPandaFile, EntityId methodId) in ParseFunctionName()
100 CString MethodLiteral::ParseFunctionNameToCString(const JSPandaFile *jsPandaFile, EntityId methodId) in ParseFunctionNameToCString()
115 const char *MethodLiteral::GetMethodName(const JSPandaFile *jsPandaFile, EntityId methodId, bool cp… in GetMethodName()
121 return const_cast<JSPandaFile *>(jsPandaFile)->GetCpuProfilerMethodName(methodId); in GetMethodName()
123 return const_cast<JSPandaFile *>(jsPandaFile)->GetMethodName(methodId); in GetMethodName()
126 CString MethodLiteral::GetRecordName(const JSPandaFile *jsPandaFile, EntityId methodId) in GetRecordName()
132 return const_cast<JSPandaFile *>(jsPandaFile)->GetRecordName(methodId); in GetRecordName()
135 const char *MethodLiteral::GetRecordNameWithSymbol(const JSPandaFile *jsPandaFile, EntityId methodI… in GetRecordNameWithSymbol()
147 uint32_t MethodLiteral::GetCodeSize(const JSPandaFile *jsPandaFile, EntityId methodId) in GetCodeSize()
[all …]
Dtype_literal_extractor.h26 explicit TypeLiteralExtractor(const JSPandaFile *jsPandaFile, const uint32_t typeOffset);
123 void ProcessTypeLiteral(const JSPandaFile *jsPandaFile, const uint32_t typeOffset);
134 explicit TypeSummaryExtractor(const JSPandaFile *jsPandaFile, const CString &recordName);
156 void ProcessTypeSummary(const JSPandaFile *jsPandaFile, const uint32_t summaryOffset);
158 const JSPandaFile *jsPandaFile_ {nullptr};
169 explicit TypeAnnotationExtractor(const JSPandaFile *jsPandaFile, const uint32_t methodOffset);
202 void ProcessTypeAnnotation(const JSPandaFile *jsPandaFile, const uint32_t methodOffset);
215 …explicit ExportTypeTableExtractor(const JSPandaFile *jsPandaFile, const CString &recordName, bool …
242 …void ProcessExportTable(const JSPandaFile *jsPandaFile, const CString &recordName, bool isBuiltinT…
/arkcompiler/ets_runtime/ecmascript/debugger/
Dhot_reload_manager.h31 void NotifyPatchLoaded(const JSPandaFile *baseFile, const JSPandaFile *patchFile);
32 void NotifyPatchUnloaded(const JSPandaFile *patchFile);
35 const JSPandaFile *GetBaseJSPandaFile(const JSPandaFile *jsPandaFile) const;
38 void ExtractPatch(const JSPandaFile *jsPandaFile);
41 CUnorderedMap<const JSPandaFile *, const JSPandaFile *> baseJSPandaFiles_ {};
Dhot_reload_manager.cpp22 void HotReloadManager::NotifyPatchLoaded(const JSPandaFile *baseFile, const JSPandaFile *patchFile) in NotifyPatchLoaded()
34 void HotReloadManager::NotifyPatchUnloaded(const JSPandaFile *patchFile) in NotifyPatchUnloaded()
45 const JSPandaFile *HotReloadManager::GetBaseJSPandaFile(const JSPandaFile *jsPandaFile) const in GetBaseJSPandaFile()
65 void HotReloadManager::ExtractPatch(const JSPandaFile *jsPandaFile) in ExtractPatch()
Djs_pt_method.h27 PtMethod(const JSPandaFile *jsPandaFile, EntityId methodId, bool isNative) in PtMethod()
33 const JSPandaFile *GetJSPandaFile() const in GetJSPandaFile()
69 const JSPandaFile *jsPandaFile_ {nullptr};
/arkcompiler/ets_runtime/ecmascript/ts_types/
Dts_type_parser.h38 const JSPandaFile *jsPandaFile;
51 …GlobalTSTypeRef PUBLIC_API CreateGT(const JSPandaFile *jsPandaFile, const CString &recordName, uin…
74 …inline GlobalTSTypeRef GetAndStoreGT(const JSPandaFile *jsPandaFile, uint32_t typeId, const CStrin…
83 inline GlobalTSTypeRef GetAndStoreGT(const JSPandaFile *jsPandaFile, PGOSampleType pgoTypeId,
92 inline GlobalTSTypeRef GetAndStoreImportGT(const JSPandaFile *jsPandaFile, uint32_t typeId, in GetAndStoreImportGT()
145 …GlobalTSTypeRef ParseType(const JSPandaFile *jsPandaFile, const CString &recordName, uint32_t type…
149 GlobalTSTypeRef ResolveType(const JSPandaFile *jsPandaFile, const CString &recordName,
152 GlobalTSTypeRef ResolveImportType(const JSPandaFile *jsPandaFile, const CString &recordName,
155 GlobalTSTypeRef ParseIndexSigType(const JSPandaFile *jsPandaFile, const CString &recordName,
158 …JSHandle<JSTaggedValue> ParseNonImportType(const JSPandaFile *jsPandaFile, const CString &recordNa…
[all …]
Dglobal_type_info.h27 explicit GlobalTypeID(const JSPandaFile *jsPandaFile, PGOSampleType pgoTypeId) in GlobalTypeID()
30 explicit GlobalTypeID(const JSPandaFile *jsPandaFile, uint32_t typeId) in GlobalTypeID()
40 const JSPandaFile *GetJSPandaFile() const in GetJSPandaFile()
61 const JSPandaFile *jsPandaFile_;
70 return std::hash<const JSPandaFile*>()(id.GetJSPandaFile()) ^ in operator()
73 return std::hash<const JSPandaFile*>()(id.GetJSPandaFile()) ^ in operator()
81 explicit TypeLocation(const JSPandaFile *jsPandaFile, uint32_t methodOffset, in TypeLocation()
102 const JSPandaFile *GetJSPandaFile() const in GetJSPandaFile()
113 const JSPandaFile *jsPandaFile_;
121 return std::hash<const JSPandaFile*>()(loc.GetJSPandaFile()) ^ in operator()
/arkcompiler/ets_runtime/ecmascript/patch/
Dpatch_loader.h27 using JSRecordInfo = JSPandaFile::JSRecordInfo;
98 static PatchErrorCode LoadPatchInternal(JSThread *thread, const JSPandaFile *baseFile,
99 const JSPandaFile *patchFile, PatchInfo &patchInfo,
104 static MethodLiteral *FindSameMethod(PatchInfo &patchInfo, const JSPandaFile *baseFile,
107 …JSThread *thread, const JSPandaFile *jsPandaFile, const PatchInfo &patchInfo, bool loadPatch = tru…
108 static CMap<uint32_t, CString> CollectClassInfo(const JSPandaFile *jsPandaFile);
111 static PatchInfo GeneratePatchInfo(const JSPandaFile *patchFile);
112 … static CString GetRealName(const JSPandaFile *jsPandaFile, EntityId entityId, CString &className);
114 const JSPandaFile *baseFile,
115 const JSPandaFile *patchFile,
[all …]
/arkcompiler/ets_runtime/ecmascript/jspandafile/tests/
Djs_pandafile_manager_test.cpp77 …std::shared_ptr<JSPandaFile> pf = pfManager->NewJSPandaFile(pfPtr.release(), CString(fileName.c_st… in HWTEST_F_L0()
93 std::shared_ptr<JSPandaFile> ojspf = pfManager->OpenJSPandaFile(filename); in HWTEST_F_L0()
122 …std::shared_ptr<JSPandaFile> pf1 = pfManager->NewJSPandaFile(pfPtr1.release(), CString(filename1)); in HWTEST_F_L0()
123 …std::shared_ptr<JSPandaFile> pf2 = pfManager->NewJSPandaFile(pfPtr2.release(), CString(filename2)); in HWTEST_F_L0()
126 std::shared_ptr<JSPandaFile> foundPf1 = pfManager->FindJSPandaFile(filename1); in HWTEST_F_L0()
127 std::shared_ptr<JSPandaFile> foundPf2 = pfManager->FindJSPandaFile(filename2); in HWTEST_F_L0()
133 std::shared_ptr<JSPandaFile> afterRemovePf1 = pfManager->FindJSPandaFile(filename1); in HWTEST_F_L0()
134 std::shared_ptr<JSPandaFile> afterRemovePf2 = pfManager->FindJSPandaFile(filename2); in HWTEST_F_L0()
151 …std::shared_ptr<JSPandaFile> pf1 = pfManager->NewJSPandaFile(pfPtr1.release(), CString(filename1)); in HWTEST_F_L0()
152 …std::shared_ptr<JSPandaFile> pf2 = pfManager->NewJSPandaFile(pfPtr2.release(), CString(filename2)); in HWTEST_F_L0()
[all …]
Djs_pandafile_test.cpp58 std::shared_ptr<JSPandaFile> CreateJSPandaFile(const char *source, const CString filename) in CreateJSPandaFile()
67 std::shared_ptr<JSPandaFile> pf = pfManager->NewJSPandaFile(pfPtr.release(), filename); in CreateJSPandaFile()
78 std::shared_ptr<JSPandaFile> pf = CreateJSPandaFile(source, fileName); in HWTEST_F_L0()
88 std::shared_ptr<JSPandaFile> pf = CreateJSPandaFile(source, fileName);; in HWTEST_F_L0()
99 std::shared_ptr<JSPandaFile> pf = CreateJSPandaFile(source, fileName);; in HWTEST_F_L0()
112 std::shared_ptr<JSPandaFile> pf = CreateJSPandaFile(source, fileName);; in HWTEST_F_L0()
128 std::shared_ptr<JSPandaFile> pf = CreateJSPandaFile(source, fileName);; in HWTEST_F_L0()
162 std::shared_ptr<JSPandaFile> pf = CreateJSPandaFile(source, fileName);; in HWTEST_F_L0()
212 std::shared_ptr<JSPandaFile> pf = CreateJSPandaFile(source, fileName);; in HWTEST_F_L0()
245 std::shared_ptr<JSPandaFile> pf = CreateJSPandaFile(source, fileName);; in HWTEST_F_L0()
[all …]
Djs_pandafile_executor_test.cpp73 std::shared_ptr<JSPandaFile> pf = pfManager->NewJSPandaFile(pfPtr.release(), CString(fileName)); in HWTEST_F_L0()
88 JSPandaFileExecutor::Execute(thread, pf.get(), JSPandaFile::ENTRY_MAIN_FUNCTION); in HWTEST_F_L0()
108 std::shared_ptr<JSPandaFile> pf = pfManager->NewJSPandaFile(pfPtr.release(), CString(fileName)); in HWTEST_F_L0()
123 …JSPandaFileExecutor::ExecuteFromAbcFile(thread, CString(fileName), JSPandaFile::ENTRY_MAIN_FUNCTIO… in HWTEST_F_L0()
127 std::shared_ptr<JSPandaFile> foundPf = pfManager->FindJSPandaFile(fileName); in HWTEST_F_L0()
145 std::shared_ptr<JSPandaFile> pf = pfManager->NewJSPandaFile(pfPtr.release(), CString(fileName)); in HWTEST_F_L0()
160 thread, (void *)data, sizeof(data), JSPandaFile::ENTRY_MAIN_FUNCTION, CString(fileName)); in HWTEST_F_L0()
164 std::shared_ptr<JSPandaFile> foundPf = pfManager->FindJSPandaFile(fileName); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/module/
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/
Dmethod.cpp24 const JSPandaFile *jsPandaFile = GetJSPandaFile(); in ParseFunctionName()
30 const JSPandaFile *jsPandaFile = GetJSPandaFile(); in GetMethodName()
34 const char *Method::GetMethodName(const JSPandaFile *file) const in GetMethodName()
41 const JSPandaFile *jsPandaFile = GetJSPandaFile(); in GetRecordNameStr()
47 const JSPandaFile *jsPandaFile = GetJSPandaFile(); in GetCodeSize()
51 const JSPandaFile *Method::GetJSPandaFile() const in GetJSPandaFile()
66 const JSPandaFile *jsPandaFile = GetJSPandaFile(); in GetMethodLiteral()
92 JSHandle<Method> Method::Create(JSThread *thread, const JSPandaFile *jsPandaFile, MethodLiteral *me… in Create()
Djs_file_path.cpp57 std::string JSFilePath::GetHapName(const JSPandaFile *jsPandaFile) in GetHapName()
60 if (jsPandaFileDesc.find(JSPandaFile::MERGE_ABC_NAME) == std::string::npos) { in GetHapName()
64 auto found = jsPandaFileDesc.find(JSPandaFile::BUNDLE_INSTALL_PATH); in GetHapName()
68 std::string subPath = jsPandaFileDesc.substr(sizeof(JSPandaFile::BUNDLE_INSTALL_PATH) - 1); in GetHapName()
Decma_context.h45 class JSPandaFile; variable
256 void AddConstpool(const JSPandaFile *jsPandaFile, JSTaggedValue constpool, int32_t index = 0);
258 bool HasCachedConstpool(const JSPandaFile *jsPandaFile) const;
260 JSTaggedValue FindConstpool(const JSPandaFile *jsPandaFile, int32_t index);
262 JSTaggedValue FindConstpool(const JSPandaFile *jsPandaFile, panda_file::File::EntityId id);
263 JSTaggedValue FindConstpoolWithAOT(const JSPandaFile *jsPandaFile, int32_t index);
265 const JSPandaFile *jsPandaFile);
267 JSHandle<ConstantPool> PUBLIC_API FindOrCreateConstPool(const JSPandaFile *jsPandaFile,
269 void CreateAllConstpool(const JSPandaFile *jsPandaFile);
506 const JSPandaFile *jsPandaFile, std::string_view entryPoint);
[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()
91 void Update(const JSPandaFile *jsPandaFile, const CString &recordName, Callback callback) in Update()
100 …void GetTypeInfo(const JSPandaFile *jsPandaFile, const CString &recordName, const MethodLiteral *m… in GetTypeInfo()
118 …void MatchAndMarkMethod(const JSPandaFile *jsPandaFile, const CString &recordName, const char *met… in MatchAndMarkMethod()
127 …void GetMismatchResult(const JSPandaFile *jsPandaFile, uint32_t &totalMethodCount, uint32_t &misma…
188 bool GetABCIdByJSPandaFile(const JSPandaFile *jsPandaFile, ApEntityId &entryId) const in GetABCIdByJSPandaFile()
203 CString GetNormalizedFileDesc(const JSPandaFile *jsPandaFile) const;
/arkcompiler/ets_runtime/ecmascript/compiler/aot_file/
Daot_file_manager.h161 const std::shared_ptr<AnFileInfo> GetAnFileInfo(const JSPandaFile *jsPandaFile) const;
162 bool IsLoadMain(const JSPandaFile *jsPandaFile, const CString &entry) const;
165 uint32_t GetAnFileIndex(const JSPandaFile *jsPandaFile) const;
167 void SetAOTMainFuncEntry(JSHandle<JSFunction> mainFunc, const JSPandaFile *jsPandaFile,
169 void SetAOTFuncEntry(const JSPandaFile *jsPandaFile, Method *method,
172 bool LoadAiFile(const JSPandaFile *jsPandaFile);
178 … JSHandle<JSTaggedValue> GetDeserializedConstantPool(const JSPandaFile *jsPandaFile, int32_t cpID);
193 static void PrintAOTEntry(const JSPandaFile *file, const Method *method, uintptr_t entry);
/arkcompiler/ets_runtime/ecmascript/compiler/
Dtype_recorder.h36 TypeRecorder(const JSPandaFile *jsPandaFile, const MethodLiteral *methodLiteral,
45 void BindPgoTypeToGateType(const JSPandaFile *jsPandaFile, TSManager *tsManager,
51 void LoadTypes(const JSPandaFile *jsPandaFile, const MethodLiteral *methodLiteral,
54 void CreateTypesForPGO(const JSPandaFile *jsPandaFile, const MethodLiteral *methodLiteral,
57 void LoadTypesFromPGO(const JSPandaFile *jsPandaFile, const MethodLiteral *methodLiteral,
/arkcompiler/toolchain/tooling/test/utils/
Dtest_extractor.h26 const JSPandaFile *file;
38 explicit TestExtractor(const JSPandaFile *pandaFile) : DebugInfoExtractor(pandaFile) {} in TestExtractor()
43 …SourceLocation GetSourceLocation(const JSPandaFile *file, EntityId methodId, uint32_t bytecodeOffs…

1234567