Home
last modified time | relevance | path

Searched refs:ModulePathHelper (Results 1 – 25 of 33) sorted by relevance

12

/arkcompiler/ets_runtime/ecmascript/platform/windows/
Dmodule.cpp27 if (StringHelper::StringStartWith(inputFileName, ModulePathHelper::PREVIER_TEST_DIR)) { in GetOutEntryPoint()
33 ModulePathHelper::MODULE_DEFAULE_ETS.data(), inputFileName); in GetOutEntryPoint()
42 … StringHelper::SplitString(moduleRequestName, currentVec, 0, ModulePathHelper::SEGMENTS_LIMIT_TWO); in GetBaseFileName()
43 if (currentVec.size() < ModulePathHelper::SEGMENTS_LIMIT_TWO) { // LCOV_EXCL_BR_LINE in GetBaseFileName()
50 …baseFileName = base::ConcatToCString(ModulePathHelper::BUNDLE_INSTALL_PATH, bundleName, PathHelper… in GetBaseFileName()
51 moduleName, PathHelper::SLASH_TAG, moduleName, ModulePathHelper::MERGE_ABC_ETS_MODULES); in GetBaseFileName()
53 baseFileName = base::ConcatToCString(ModulePathHelper::BUNDLE_INSTALL_PATH, moduleName, in GetBaseFileName()
54 ModulePathHelper::MERGE_ABC_ETS_MODULES); in GetBaseFileName()
61 if (entryPoint == ModulePathHelper::PREVIEW_OF_ACROSS_HAP_FLAG) { in CheckEntryPointPreview()
Dpandafile.cpp35 ModulePathHelper::ParseAbcPathAndOhmUrl(vm, normalName, name, entry); in ParseAbcEntryPoint()
/arkcompiler/ets_runtime/ecmascript/platform/unix/mac/
Dmodule.cpp27 if (StringHelper::StringStartWith(inputFileName, ModulePathHelper::PREVIER_TEST_DIR)) { in GetOutEntryPoint()
33 ModulePathHelper::MODULE_DEFAULE_ETS.data(), inputFileName); in GetOutEntryPoint()
42 … StringHelper::SplitString(moduleRequestName, currentVec, 0, ModulePathHelper::SEGMENTS_LIMIT_TWO); in GetBaseFileName()
43 if (currentVec.size() < ModulePathHelper::SEGMENTS_LIMIT_TWO) { // LCOV_EXCL_BR_LINE in GetBaseFileName()
50 …baseFileName = base::ConcatToCString(ModulePathHelper::BUNDLE_INSTALL_PATH, bundleName, PathHelper… in GetBaseFileName()
51 moduleName, PathHelper::SLASH_TAG, moduleName, ModulePathHelper::MERGE_ABC_ETS_MODULES); in GetBaseFileName()
53 baseFileName = base::ConcatToCString(ModulePathHelper::BUNDLE_INSTALL_PATH, moduleName, in GetBaseFileName()
54 ModulePathHelper::MERGE_ABC_ETS_MODULES); in GetBaseFileName()
61 if (entryPoint == ModulePathHelper::PREVIEW_OF_ACROSS_HAP_FLAG) { in CheckEntryPointPreview()
/arkcompiler/ets_runtime/ecmascript/module/
Dmodule_path_helper.cpp25 CString ModulePathHelper::ConcatFileNameWithMerge(JSThread *thread, const JSPandaFile *jsPandaFile, in ConcatFileNameWithMerge()
62 CString ModulePathHelper::ConcatMergeFileNameToNormalized(JSThread *thread, const JSPandaFile *jsPa… in ConcatMergeFileNameToNormalized()
91 CString ModulePathHelper::ConcatImportFileNormalizedOhmurlWithRecordName(JSThread *thread, in ConcatImportFileNormalizedOhmurlWithRecordName()
135 CString ModulePathHelper::ReformatPath(const CString& requestName) in ReformatPath()
163 void ModulePathHelper::ParseAbcPathAndOhmUrl(EcmaVM *vm, const CString &inputFileName, in ParseAbcPathAndOhmUrl()
201 CString ModulePathHelper::ConcatUnifiedOhmUrl(const CString &bundleName, const CString &pkgname, in ConcatUnifiedOhmUrl()
213 CString ModulePathHelper::ConcatUnifiedOhmUrl(const CString &bundleName, const CString &normalizedp… in ConcatUnifiedOhmUrl()
220 CString ModulePathHelper::ConcatPreviewTestUnifiedOhmUrl(const CString &bundleName, const CString &… in ConcatPreviewTestUnifiedOhmUrl()
227 CString ModulePathHelper::ConcatHspFileNameCrossBundle(const CString &bundleName, const CString &mo… in ConcatHspFileNameCrossBundle()
233 CString ModulePathHelper::ConcatHspFileName(const CString &moduleName) in ConcatHspFileName()
[all …]
Dnapi_module_loader.cpp40ModulePathHelper::TranslateExpressionToNormalized(thread, curJsPandaFile.get(), abcFilePath, "", in LoadModuleNameSpaceWithModuleInfo()
42 } else if (ModulePathHelper::NeedTranstale(requestPath)) { in LoadModuleNameSpaceWithModuleInfo()
43 ModulePathHelper::TranstaleExpressionInput(curJsPandaFile.get(), requestPath); in LoadModuleNameSpaceWithModuleInfo()
63 if (StringHelper::StringStartWith(requestPath, ModulePathHelper::PREFIX_ETS)) { in LoadModuleNameSpace()
65 … CString recordNameStr = ModulePathHelper::TranslateNapiFileRequestPath(thread, path, requestPath); in LoadModuleNameSpace()
69 CString abcModuleName = ModulePathHelper::GetModuleNameWithBaseFile(abcFilePath); in LoadModuleNameSpace()
70 …CString srcPrefix = base::ConcatToCString(abcModuleName, ModulePathHelper::PHYCICAL_FILE_PATH.data… in LoadModuleNameSpace()
88 CString moduleName = ModulePathHelper::GetModuleNameWithPath(modulePath); in LoadModuleNameSpace()
89 CString abcFilePath = ModulePathHelper::ConcatPandaFilePath(moduleName); in LoadModuleNameSpace()
90 …CString srcPrefix = base::ConcatToCString(moduleName, ModulePathHelper::PHYCICAL_FILE_PATH.data()); in LoadModuleNameSpace()
[all …]
Dmodule_logger.cpp92 exportNameStr = ModulePathHelper::Utf8ConvertToString(thread, importName.GetTaggedValue()); in InsertModuleLoadInfo()
253 if (recordName == ModulePathHelper::ENTRY_FUNCTION_NAME || in SetStartTime()
254 recordName == ModulePathHelper::ENTRY_MAIN_FUNCTION) { in SetStartTime()
266 if (recordName == ModulePathHelper::ENTRY_FUNCTION_NAME || in SetEndTime()
267 recordName == ModulePathHelper::ENTRY_MAIN_FUNCTION) { in SetEndTime()
Dmodule_path_helper.h62 class ModulePathHelper {
273 … if (StringHelper::StringStartWith(requestName, ModulePathHelper::REQUIRE_NAPI_OHOS_PREFIX) || in IsNativeModuleRequest()
274 StringHelper::StringStartWith(requestName, ModulePathHelper::REQUIRE_NAPI_APP_PREFIX) || in IsNativeModuleRequest()
275 … StringHelper::StringStartWith(requestName, ModulePathHelper::REQUIRE_NAITVE_MODULE_PREFIX)) { in IsNativeModuleRequest()
Djs_module_source_text.cpp284 StringHelper::StringStartWith(moduleRequestName, ModulePathHelper::PREFIX_BUNDLE) || in IsNativeModule()
285 StringHelper::StringStartWith(moduleRequestName, ModulePathHelper::PREFIX_PACKAGE) || in IsNativeModule()
286 … StringHelper::StringStartWith(moduleRequestName, ModulePathHelper::PREFIX_NORMALIZED_NOT_SO) || in IsNativeModule()
295 …if (StringHelper::StringStartWith(moduleRequestName, ModulePathHelper::REQUIRE_NAPI_OHOS_PREFIX)) { in GetNativeModuleType()
302 … if (StringHelper::StringStartWith(moduleRequestName, ModulePathHelper::REQUIRE_NAPI_APP_PREFIX) || in GetNativeModuleType()
303 StringHelper::StringStartWith(moduleRequestName, ModulePathHelper::PREFIX_NORMALIZED_SO)) { in GetNativeModuleType()
306 …if (StringHelper::StringStartWith(moduleRequestName, ModulePathHelper::REQUIRE_NAITVE_MODULE_PREFI… in GetNativeModuleType()
335 CString soName = ModulePathHelper::GetNormalizedPathFromOhmUrl(soPath); in MakeNormalizedAppArgs()
336 CString path = base::ConcatToCString(ModulePathHelper::GetBundleNameFromNormalized(vm, soPath), in MakeNormalizedAppArgs()
352 if (!StringHelper::StringStartWith(requestName, ModulePathHelper::REQUIRE_NAPI_APP_PREFIX)) { in MakeAppArgs()
[all …]
Dmodule_value_accessor.cpp356 ModulePathHelper::Utf8ConvertToString(info.thread, binding->GetModuleRecord(info.thread))); in GetModuleValueFromRecordIndexBinding()
373 ModulePathHelper::Utf8ConvertToString(info.thread, binding->GetModuleRecord(info.thread))); in GetModuleValueFromRecordBinding()
399 CString requestMod = ModulePathHelper::ReformatPath(SourceTextModule::GetModuleName( in UpdateBindingAndGetModuleValue()
401 CString recordStr = ModulePathHelper::ReformatPath(SourceTextModule::GetModuleName( in UpdateBindingAndGetModuleValue()
404 ModulePathHelper::Utf8ConvertToString(thread, bindingName) + in UpdateBindingAndGetModuleValue()
497 fileName = ModulePathHelper::Utf8ConvertToString(thread, binding->GetAbcFileName(thread)); in GetResolvedModule()
Dmodule_resolver.cpp83 …CString moduleRequestName = ModulePathHelper::Utf8ConvertToString(thread, moduleRequest.GetTaggedV… in HostResolveImportedModuleWithMerge()
113ModulePathHelper::ConcatFileNameWithMerge(thread, pandaFile.get(), baseFilename, recordName, modul… in HostResolveImportedModuleWithMerge()
129 …CString moduleRequestStr = ModulePathHelper::Utf8ConvertToString(thread, moduleRequest.GetTaggedVa… in HostResolveImportedModuleBundlePack()
/arkcompiler/ets_runtime/ecmascript/platform/common/
Dmodule.cpp31 …baseFileName = base::ConcatToCString(ModulePathHelper::BUNDLE_INSTALL_PATH, bundleName, PathHelper… in GetBaseFileName()
32 moduleName, PathHelper::SLASH_TAG, moduleName, ModulePathHelper::MERGE_ABC_ETS_MODULES); in GetBaseFileName()
34 baseFileName = base::ConcatToCString(ModulePathHelper::BUNDLE_INSTALL_PATH, moduleName, in GetBaseFileName()
35 ModulePathHelper::MERGE_ABC_ETS_MODULES); in GetBaseFileName()
Dpandafile.cpp34 ModulePathHelper::ParseAbcPathAndOhmUrl(vm, normalName, name, entry); in ParseAbcEntryPoint()
59 CString tag = ModulePathHelper::ParseFileNameToVMAName(filename); in ParseAndOpenPandaFile()
63 tag = CString(ModulePathHelper::VMA_NAME_ARKTS_CODE); in ParseAndOpenPandaFile()
/arkcompiler/ets_runtime/ecmascript/module/static/
Dstatic_module_loader.cpp35 if (ModulePathHelper::IsOhmUrl(requestPath) || ModulePathHelper::IsImportFile(requestPath) in CanTryLoadStaticModulePath()
36 || StringHelper::StringStartWith(requestPath, ModulePathHelper::PREFIX_MODULE) in CanTryLoadStaticModulePath()
37 || StringHelper::StringStartWith(requestPath, ModulePathHelper::RAW_ARKUIX_PREFIX) in CanTryLoadStaticModulePath()
38 || StringHelper::StringStartWith(requestPath, ModulePathHelper::PREFIX_NORMALIZED)) { in CanTryLoadStaticModulePath()
/arkcompiler/ets_runtime/ecmascript/module/tests/
Decma_module_test.cpp174 …thread, module, binding, ModulePathHelper::Utf8ConvertToString(thread, binding->GetModuleRecord(th… in GetResolvedModuleFromRecordIndexBinding()
181 …thread, module, binding, ModulePathHelper::Utf8ConvertToString(thread, binding->GetModuleRecord(th… in GetResolvedModuleFromRecordBinding()
391 CString entryPoint = ModulePathHelper::ReformatPath(requestPath); in HWTEST_F_L0()
396 entryPoint = ModulePathHelper::ReformatPath(requestPath); in HWTEST_F_L0()
401 entryPoint = ModulePathHelper::ReformatPath(requestPath); in HWTEST_F_L0()
406 entryPoint = ModulePathHelper::ReformatPath(requestPath); in HWTEST_F_L0()
413 CString res = ModulePathHelper::ParseUrl(instance, recordName); in HWTEST_F_L0()
437 …CString entryPoint = ModulePathHelper::MakeNewRecord(thread, pf.get(), baseFilename, moduleRecordN… in HWTEST_F_L0()
446 entryPoint = ModulePathHelper::MakeNewRecord(thread, pf.get(), baseFilename, moduleRecordName, in HWTEST_F_L0()
470 CString entryPoint = ModulePathHelper::FindPackageInTopLevelWithNamespace( in HWTEST_F_L0()
[all …]
Dstatic_module_loader_test.cpp31 using ModulePathHelper = ecmascript::ModulePathHelper; typedef
152 CString path = ModulePathHelper::Utf8ConvertToString(thread, specifierString.GetTaggedValue()); in HWTEST_F_L0()
170 CString path = ModulePathHelper::Utf8ConvertToString(thread, specifierString.GetTaggedValue()); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/platform/unix/ohos/
Dpandafile.cpp34 ModulePathHelper::ParseAbcPathAndOhmUrl(vm, normalName, name, entry); in ParseAbcEntryPoint()
59 CString tag = ModulePathHelper::ParseFileNameToVMAName(filename); in ParseAndOpenPandaFile()
63 tag = CString(ModulePathHelper::VMA_NAME_ARKTS_CODE); in ParseAndOpenPandaFile()
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_promise_job.cpp31 using ModulePathHelper = ecmascript::ModulePathHelper; typedef
149 CString fileName = ModulePathHelper::Utf8ConvertToString(thread, dirPath.GetTaggedValue()); in DynamicImportJob()
150 …CString requestPath = ModulePathHelper::Utf8ConvertToString(thread, specifierString.GetTaggedValue… in DynamicImportJob()
156 recordNameStr = ModulePathHelper::Utf8ConvertToString(thread, recordName.GetTaggedValue()); in DynamicImportJob()
166ModulePathHelper::TranslateExpressionToNormalized(thread, curJsPandaFile.get(), fileName, recordNa… in DynamicImportJob()
171 } else if (ModulePathHelper::NeedTranstale(requestPath)) { in DynamicImportJob()
172 ModulePathHelper::TranstaleExpressionInput(curJsPandaFile.get(), requestPath); in DynamicImportJob()
191 ModulePathHelper::ConcatFileNameWithMerge(thread, curJsPandaFile.get(), in DynamicImportJob()
207 CString normalizeStr = ModulePathHelper::ReformatPath(entryPoint); in DynamicImportJob()
280 …CString requestPath = ModulePathHelper::Utf8ConvertToString(thread, specifierString.GetTaggedValue… in HandleModuleException()
Dbuiltins_cjs_module.cpp62 ModulePathHelper::ResolveCurrentPath(parent, dirname, jsPandaFile); in ResolveFilename()
69 …CString requestNameStr = ModulePathHelper::Utf8ConvertToString(thread, requestName.GetTaggedValue(… in ResolveFilename()
Dbuiltins_global.cpp730 CString requestPath = ModulePathHelper::Utf8ConvertToString(thread, input.GetTaggedValue()); in LoadNativeModule()
743ModulePathHelper::TranslateExpressionToNormalized(thread, curJsPandaFile.get(), abcFilePath, "", in LoadNativeModule()
745 } else if (ModulePathHelper::NeedTranstale(requestPath)) { in LoadNativeModule()
746 ModulePathHelper::TranstaleExpressionInput(curJsPandaFile.get(), requestPath); in LoadNativeModule()
1006 CString moduleName = ModulePathHelper::GetModuleNameWithBaseFile(fileName); in GetCurrentModuleName()
1022 CString bundleName = ModulePathHelper::GetBundleNameWithRecordName(vm, recordName); in GetCurrentBundleName()
/arkcompiler/ets_runtime/ecmascript/cross_vm/
Djsnapi_expo_hybrid.cpp30 using ModulePathHelper = ecmascript::ModulePathHelper; typedef
120 auto [filePath, recordName] = ModulePathHelper::ResolvePath(path); in GetModuleNameSpaceWithPath()
129 return ModulePathHelper::ResolveOhmUrl(ohmUrl); in ResolveOhmUrl()
/arkcompiler/ets_runtime/ecmascript/jspandafile/
Djs_pandafile_executor.cpp132 entry = ModulePathHelper::TransformToNormalizedOhmUrl(vm, filename, normalName, entry); in ExecuteFromBuffer()
158 ModulePathHelper::ParseAbcPathAndOhmUrl(vm, normalName, name, entry); in ExecuteModuleBuffer()
175 entry = ModulePathHelper::TransformToNormalizedOhmUrl(vm, filename, name, entry); in ExecuteModuleBuffer()
286 entry = ModulePathHelper::TransformToNormalizedOhmUrl(vm, filename, normalName, entry); in ExecuteFromBufferSecure()
332 ModulePathHelper::ParseAbcPathAndOhmUrl(vm, normalName, name, entry); in ExecuteModuleBufferSecure()
347 entry = ModulePathHelper::TransformToNormalizedOhmUrl(vm, filename, name, entry); in ExecuteModuleBufferSecure()
477 CString abcFilePath = ModulePathHelper::ConcatPandaFilePath(moduleName); in ExecuteAbcFileWithSingletonPatternFlag()
485 CString entryPoint = ModulePathHelper::ConcatFileNameWithMerge(thread, jsPandaFile.get(), in ExecuteAbcFileWithSingletonPatternFlag()
516 CString abcFilePath = ModulePathHelper::ConcatPandaFilePath(moduleName); in IsExecuteModuleInAbcFile()
529 CString entryPoint = ModulePathHelper::ConcatFileNameWithMerge(thread, jsPandaFile.get(), in IsExecuteModuleInAbcFile()
Djs_pandafile_snapshot.cpp65 CString moduleName = ModulePathHelper::GetModuleNameWithBaseFile(fileName); in GetJSPandaFileFileName()
92 …CString moduleName = ModulePathHelper::GetModuleNameWithBaseFile(jsPandaFile->GetJSPandaFileDesc()… in WriteDataToFile()
271 …CString curModuleName = ModulePathHelper::GetModuleNameWithBaseFile(jsPandaFile->GetJSPandaFileDes… in ReadDataFromFile()
/arkcompiler/ets_runtime/ecmascript/require/
Djs_cjs_module.cpp98 CString requestStr = ModulePathHelper::Utf8ConvertToString(thread, request.GetTaggedValue()); in Load()
103 ModulePathHelper::ResolveCurrentPath(parent, dirname, jsPandaFile); in Load()
109 requestEntryPoint = ModulePathHelper::ConcatFileNameWithMerge(thread, jsPandaFile, filename, in Load()
/arkcompiler/ets_runtime/ecmascript/
Decma_vm.cpp1490 if (fileName.length() > ModulePathHelper::BUNDLE_INSTALL_PATH_LEN && in GetCurrentModuleInfo()
1491 fileName.find(ModulePathHelper::BUNDLE_INSTALL_PATH) == 0) { in GetCurrentModuleInfo()
1492 fileName = fileName.substr(ModulePathHelper::BUNDLE_INSTALL_PATH_LEN); in GetCurrentModuleInfo()
1500 moduleName = ModulePathHelper::GetModuleNameWithNormalizedName(recordName); in GetCurrentModuleInfo()
1502 moduleName = ModulePathHelper::GetModuleName(recordName); in GetCurrentModuleInfo()
2096 ModulePathHelper::ResolveCurrentPath(dirNameStr, fileNameStr, jsPandaFile); in CJSExecution()
2100 fileNameStr = ModulePathHelper::Utf8ConvertToString(thread_, funcFileName); in CJSExecution()
/arkcompiler/ets_runtime/ecmascript/napi/
Djsnapi.cpp139 using ModulePathHelper = ecmascript::ModulePathHelper; typedef

12