Home
last modified time | relevance | path

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

/arkcompiler/ets_runtime/ecmascript/module/
Dmodule_path_helper.cpp21 CString ModulePathHelper::ConcatFileNameWithMerge(JSThread *thread, const JSPandaFile *jsPandaFile, in ConcatFileNameWithMerge()
57 CString ModulePathHelper::ConcatMergeFileNameToNormalized(JSThread *thread, const JSPandaFile *jsPa… in ConcatMergeFileNameToNormalized()
83 CString ModulePathHelper::ConcatImportFileNormalizedOhmurlWithRecordName(JSThread *thread, in ConcatImportFileNormalizedOhmurlWithRecordName()
125 CString ModulePathHelper::ReformatPath(CString requestName) in ReformatPath()
153 void ModulePathHelper::ParseAbcPathAndOhmUrl(EcmaVM *vm, const CString &inputFileName, in ParseAbcPathAndOhmUrl()
205 CString ModulePathHelper::ConcatUnifiedOhmUrl(const CString &bundleName, const CString &pkgname, in ConcatUnifiedOhmUrl()
217 CString ModulePathHelper::ConcatUnifiedOhmUrl(const CString &bundleName, const CString &normalizedp… in ConcatUnifiedOhmUrl()
224 CString ModulePathHelper::ConcatPreviewTestUnifiedOhmUrl(const CString &bundleName, const CString &… in ConcatPreviewTestUnifiedOhmUrl()
231 CString ModulePathHelper::ConcatHspFileNameCrossBundle(const CString &bundleName, const CString &mo… in ConcatHspFileNameCrossBundle()
238 CString ModulePathHelper::ConcatHspFileName(const CString &moduleName) in ConcatHspFileName()
[all …]
Dnapi_module_loader.cpp28 CString moduleStr = ModulePathHelper::GetModuleNameWithPath(modulePath); in LoadModuleNameSpaceWithModuleInfo()
29 CString abcFilePath = ModulePathHelper::ConcatPandaFilePath(moduleStr); in LoadModuleNameSpaceWithModuleInfo()
41ModulePathHelper::TranslateExpressionToNormalized(thread, curJsPandaFile.get(), abcFilePath, "", in LoadModuleNameSpaceWithModuleInfo()
43 } else if (ModulePathHelper::NeedTranstale(requestPath)) { in LoadModuleNameSpaceWithModuleInfo()
44 ModulePathHelper::TranstaleExpressionInput(curJsPandaFile.get(), requestPath); in LoadModuleNameSpaceWithModuleInfo()
61 CString entryPoint = ModulePathHelper::ConcatFileNameWithMerge(thread, pandaFile, in LoadModuleNameSpaceWithPath()
Dmodule_manager_helper.cpp103 CString recordNameStr = ModulePathHelper::Utf8ConvertToString(recordName.GetTaggedValue()); in GetResolvedRecordIndexBindingModule()
106 CString fileName = ModulePathHelper::Utf8ConvertToString((binding->GetAbcFileName())); in GetResolvedRecordIndexBindingModule()
130 CString recordNameStr = ModulePathHelper::Utf8ConvertToString(recordName.GetTaggedValue()); in GetResolvedRecordBindingModule()
153 CString recordNameStr = ModulePathHelper::Utf8ConvertToString(recordName.GetTaggedValue()); in GetLazyModuleValueFromIndexBinding()
163 CString fileName = ModulePathHelper::Utf8ConvertToString(binding->GetAbcFileName()); in GetLazyModuleValueFromIndexBinding()
181 CString recordNameStr = ModulePathHelper::Utf8ConvertToString(recordName.GetTaggedValue()); in GetLazyModuleValueFromRecordBinding()
216 CString requestMod = ModulePathHelper::ReformatPath(SourceTextModule::GetModuleName( in UpdateBindingAndGetModuleValue()
218 CString recordStr = ModulePathHelper::ReformatPath(SourceTextModule::GetModuleName( in UpdateBindingAndGetModuleValue()
221 ModulePathHelper::Utf8ConvertToString(bindingName) + in UpdateBindingAndGetModuleValue()
Djs_module_source_text.cpp83 … CString moduleRequestName = ModulePathHelper::Utf8ConvertToString(moduleRequest.GetTaggedValue()); in HostResolveImportedModuleWithMerge()
111 CString entryPoint = ModulePathHelper::ConcatFileNameWithMerge( in HostResolveImportedModuleWithMerge()
116 if (entryPoint == ModulePathHelper::PREVIEW_OF_ACROSS_HAP_FLAG) { in HostResolveImportedModuleWithMerge()
131 … CString moduleRequestStr = ModulePathHelper::Utf8ConvertToString(moduleRequest.GetTaggedValue()); in HostResolveImportedModule()
299 StringHelper::StringStartWith(moduleRequestName, ModulePathHelper::PREFIX_BUNDLE) || in CheckNativeModule()
300 StringHelper::StringStartWith(moduleRequestName, ModulePathHelper::PREFIX_PACKAGE) || in CheckNativeModule()
301 … StringHelper::StringStartWith(moduleRequestName, ModulePathHelper::PREFIX_NORMALIZED_NOT_SO) || in CheckNativeModule()
306 …if (StringHelper::StringStartWith(moduleRequestName, ModulePathHelper::REQUIRE_NAPI_OHOS_PREFIX)) { in CheckNativeModule()
313 … if (StringHelper::StringStartWith(moduleRequestName, ModulePathHelper::REQUIRE_NAPI_APP_PREFIX) || in CheckNativeModule()
314 StringHelper::StringStartWith(moduleRequestName, ModulePathHelper::PREFIX_NORMALIZED_SO)) { in CheckNativeModule()
[all …]
Dmodule_path_helper.h62 class ModulePathHelper {
252 … if (StringHelper::StringStartWith(requestName, ModulePathHelper::REQUIRE_NAPI_OHOS_PREFIX) || in IsNativeModuleRequest()
253 StringHelper::StringStartWith(requestName, ModulePathHelper::REQUIRE_NAPI_APP_PREFIX) || in IsNativeModuleRequest()
254 … StringHelper::StringStartWith(requestName, ModulePathHelper::REQUIRE_NAITVE_MODULE_PREFIX)) { in IsNativeModuleRequest()
Dmodule_logger.cpp80 exportNameStr = ModulePathHelper::Utf8ConvertToString(importName.GetTaggedValue()); in InsertModuleLoadInfo()
Djs_module_namespace.cpp110 CString requestMod = ModulePathHelper::ReformatPath(mm->GetEcmaModuleFilenameString()); in GetProperty()
Djs_module_manager.cpp694 entry = ModulePathHelper::Utf8ConvertToString(module); in GetRecordName()
/arkcompiler/ets_runtime/ecmascript/module/tests/
Decma_module_test.cpp483 …CString entryPoint = ModulePathHelper::ConcatFileNameWithMerge(thread, pf.get(), baseFilename, mod… in HWTEST_F_L0()
490ModulePathHelper::ConcatFileNameWithMerge(thread, pf.get(), baseFilename, moduleRecordName, module… in HWTEST_F_L0()
515 …CString entryPoint = ModulePathHelper::ConcatFileNameWithMerge(thread, pf.get(), baseFilename, mod… in HWTEST_F_L0()
524 entryPoint = ModulePathHelper::ConcatFileNameWithMerge( in HWTEST_F_L0()
551ModulePathHelper::ConcatFileNameWithMerge(thread, pf.get(), baseFilename, moduleRecordName, module… in HWTEST_F_L0()
564 …entryPoint = ModulePathHelper::ConcatFileNameWithMerge(thread, pf2.get(), baseFilename, moduleReco… in HWTEST_F_L0()
595 CString entryPoint = ModulePathHelper::ConcatFileNameWithMerge( in HWTEST_F_L0()
645 ModulePathHelper::ParseAbcPathAndOhmUrl(instance, inputFileName, outFileName, entryPoint); in HWTEST_F_L0()
651 ModulePathHelper::ParseAbcPathAndOhmUrl(instance, inputFileName, outFileName, entryPoint); in HWTEST_F_L0()
659 ModulePathHelper::ParseAbcPathAndOhmUrl(instance, inputFileName, outFileName, entryPoint); in HWTEST_F_L0()
[all …]
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_promise_job.cpp29 using ModulePathHelper = ecmascript::ModulePathHelper; typedef
147 CString fileName = ModulePathHelper::Utf8ConvertToString(dirPath.GetTaggedValue()); in DynamicImportJob()
148 CString requestPath = ModulePathHelper::Utf8ConvertToString(specifierString.GetTaggedValue()); in DynamicImportJob()
158 recordNameStr = ModulePathHelper::Utf8ConvertToString(recordName.GetTaggedValue()); in DynamicImportJob()
165ModulePathHelper::TranslateExpressionToNormalized(thread, curJsPandaFile.get(), fileName, recordNa… in DynamicImportJob()
169 } else if (ModulePathHelper::NeedTranstale(requestPath)) { in DynamicImportJob()
170 ModulePathHelper::TranstaleExpressionInput(curJsPandaFile.get(), requestPath); in DynamicImportJob()
188 ModulePathHelper::ConcatFileNameWithMerge(thread, curJsPandaFile.get(), in DynamicImportJob()
202 CString normalizeStr = ModulePathHelper::ReformatPath(entryPoint); in DynamicImportJob()
Dbuiltins_cjs_module.cpp62 ModulePathHelper::ResolveCurrentPath(parent, dirname, jsPandaFile); in ResolveFilename()
69 CString requestNameStr = ModulePathHelper::Utf8ConvertToString(requestName.GetTaggedValue()); in ResolveFilename()
Dbuiltins_global.cpp735 CString requestPath = ModulePathHelper::Utf8ConvertToString(input.GetTaggedValue()); in LoadNativeModule()
746ModulePathHelper::TranslateExpressionToNormalized(thread, curJsPandaFile.get(), abcFilePath, "", in LoadNativeModule()
748 } else if (ModulePathHelper::NeedTranstale(requestPath)) { in LoadNativeModule()
749 ModulePathHelper::TranstaleExpressionInput(curJsPandaFile.get(), requestPath); in LoadNativeModule()
985 CString moduleName = ModulePathHelper::GetModuleNameWithBaseFile(fileName); in GetCurrentModuleName()
1001 CString bundleName = ModulePathHelper::GetBundleNameWithRecordName(vm, recordName); in GetCurrentBundleName()
/arkcompiler/ets_runtime/ecmascript/jspandafile/
Djs_pandafile_executor.cpp38 ModulePathHelper::ParseAbcPathAndOhmUrl(vm, normalName, name, entry); in ParseAbcEntryPoint()
164 entry = ModulePathHelper::TransformToNormalizedOhmUrl(vm, filename, normalName, entry); in ExecuteFromBuffer()
199 ModulePathHelper::ParseAbcPathAndOhmUrl(vm, normalName, name, entry); in ExecuteModuleBuffer()
216 entry = ModulePathHelper::TransformToNormalizedOhmUrl(vm, filename, name, entry); in ExecuteModuleBuffer()
342 entry = ModulePathHelper::TransformToNormalizedOhmUrl(vm, filename, normalName, entry); in ExecuteFromBufferSecure()
402 ModulePathHelper::ParseAbcPathAndOhmUrl(vm, normalName, name, entry); in ExecuteModuleBufferSecure()
417 entry = ModulePathHelper::TransformToNormalizedOhmUrl(vm, filename, name, entry); in ExecuteModuleBufferSecure()
552 CString abcFilePath = ModulePathHelper::ConcatPandaFilePath(moduleName); in ExecuteAbcFileWithSingletonPatternFlag()
559 CString entryPoint = ModulePathHelper::ConcatFileNameWithMerge(thread, jsPandaFile.get(), in ExecuteAbcFileWithSingletonPatternFlag()
594 CString abcFilePath = ModulePathHelper::ConcatPandaFilePath(moduleName); in IsExecuteModuleInAbcFile()
[all …]
Djs_pandafile_manager.cpp80 std::string hspPath = ModulePathHelper::ParseHapPath(filename); in LoadJSPandaFile()
156 CString tag = ModulePathHelper::ParseFileNameToVMAName(filename); in LoadJSPandaFile()
585 …bool getBuffer = resolveBufferCallback(ModulePathHelper::ParseHapPath(fileName), &data, &dataSize,… in CheckFilePath()
/arkcompiler/ets_runtime/ecmascript/require/
Djs_cjs_module.cpp98 CString requestStr = ModulePathHelper::Utf8ConvertToString(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.cpp895 if (fileName.length() > ModulePathHelper::BUNDLE_INSTALL_PATH_LEN && in GetCurrentModuleInfo()
896 fileName.find(ModulePathHelper::BUNDLE_INSTALL_PATH) == 0) { in GetCurrentModuleInfo()
897 fileName = fileName.substr(ModulePathHelper::BUNDLE_INSTALL_PATH_LEN); in GetCurrentModuleInfo()
905 moduleName = ModulePathHelper::GetModuleNameWithNormalizedName(recordName); in GetCurrentModuleInfo()
907 moduleName = ModulePathHelper::GetModuleName(recordName); in GetCurrentModuleInfo()
Decma_context.cpp447 ModulePathHelper::ResolveCurrentPath(dirNameStr, fileNameStr, jsPandaFile); in CJSExecution()
451 fileNameStr = ModulePathHelper::Utf8ConvertToString(funcFileName); in CJSExecution()
Decma_macros.h413 …CString normalizeStr = ModulePathHelper::ReformatPath(currentRecord); …
/arkcompiler/ets_runtime/ecmascript/napi/
Djsnapi.cpp141 using ModulePathHelper = ecmascript::ModulePathHelper; typedef
Djsnapi_expo.cpp133 using ModulePathHelper = ecmascript::ModulePathHelper; typedef
3967 return ModulePathHelper::IsOhmUrl(srcName.c_str()); in IsOhmUrl()
3976 ecmascript::CString moduleName = ModulePathHelper::GetModuleName(entryPoint.c_str()); in SetModuleInfo()
3995 if (!ModulePathHelper::ValidateAbcPath(path, ecmascript::ValidateFilePath::ABC)) { in SetAssetPath()
5135 if (!ModulePathHelper::ValidateAbcPath(filename, ecmascript::ValidateFilePath::ETS_MODULES)) { in ExecuteSecureWithOhmUrl()
5142 if (!ModulePathHelper::CheckAndGetRecordName(thread, ohmUrl.c_str(), entryPoint)) { in ExecuteSecureWithOhmUrl()
5730 ModulePathHelper::ParseAbcPathAndOhmUrl(vm, entry, name, entry); in GetExportObject()
5784 if (!ModulePathHelper::CheckAndGetRecordName(thread, ohmUrl.c_str(), recordName)) { in GetExportObjectFromOhmUrl()
5812 … ecmascript::CString moduleName = ModulePathHelper::GetModuleNameWithPath(module_path.c_str()); in GetModuleNameSpaceFromFile()
5813 abcFilePath = ModulePathHelper::ConcatPandaFilePath(moduleName); in GetModuleNameSpaceFromFile()
[all …]
/arkcompiler/ets_runtime/ecmascript/patch/
Dquick_fix_manager.cpp300 if (fileName.find(ModulePathHelper::EXT_NAME_HQF) != std::string::npos) { in GetBaseFileName()
/arkcompiler/ets_runtime/
Dlibark_jsruntime.map259 panda::ecmascript::ModulePathHelper::ConcatFileNameWithMerge*;