Home
last modified time | relevance | path

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

12

/arkcompiler/ets_runtime/ecmascript/platform/unix/mac/
Dmodule.cpp27 if (StringHelper::StringStartWith(inputFileName, ModulePathHelper::PREVIER_TEST_DIR)) { in GetOutEntryPoint()
33 ModulePathHelper::MODULE_DEFAULE_ETS, 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/platform/windows/
Dmodule.cpp27 if (StringHelper::StringStartWith(inputFileName, ModulePathHelper::PREVIER_TEST_DIR)) { in GetOutEntryPoint()
33 ModulePathHelper::MODULE_DEFAULE_ETS, 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/module/
Dnapi_module_loader.cpp39ModulePathHelper::TranslateExpressionToNormalized(thread, curJsPandaFile.get(), abcFilePath, "", in LoadModuleNameSpaceWithModuleInfo()
41 } else if (ModulePathHelper::NeedTranstale(requestPath)) { in LoadModuleNameSpaceWithModuleInfo()
42 ModulePathHelper::TranstaleExpressionInput(curJsPandaFile.get(), requestPath); in LoadModuleNameSpaceWithModuleInfo()
56 if (StringHelper::StringStartWith(requestPath, ModulePathHelper::PREFIX_ETS)) { in LoadModuleNameSpace()
58 … CString recordNameStr = ModulePathHelper::TranslateNapiFileRequestPath(thread, path, requestPath); in LoadModuleNameSpace()
62 CString abcModuleName = ModulePathHelper::GetModuleNameWithBaseFile(abcFilePath); in LoadModuleNameSpace()
63 CString srcPrefix = base::ConcatToCString(abcModuleName, ModulePathHelper::PHYCICAL_FILE_PATH); in LoadModuleNameSpace()
75 CString moduleName = ModulePathHelper::GetModuleNameWithPath(modulePath); in LoadModuleNameSpace()
76 CString abcFilePath = ModulePathHelper::ConcatPandaFilePath(moduleName); in LoadModuleNameSpace()
77 CString srcPrefix = base::ConcatToCString(moduleName, ModulePathHelper::PHYCICAL_FILE_PATH); in LoadModuleNameSpace()
[all …]
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 …]
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()
221 CString requestMod = ModulePathHelper::ReformatPath(SourceTextModule::GetModuleName( in UpdateBindingAndGetModuleValue()
223 CString recordStr = ModulePathHelper::ReformatPath(SourceTextModule::GetModuleName( in UpdateBindingAndGetModuleValue()
226 ModulePathHelper::Utf8ConvertToString(bindingName) + in UpdateBindingAndGetModuleValue()
Dmodule_logger.cpp93 exportNameStr = ModulePathHelper::Utf8ConvertToString(importName.GetTaggedValue()); in InsertModuleLoadInfo()
254 if (recordName == ModulePathHelper::ENTRY_FUNCTION_NAME || in SetStartTime()
255 recordName == ModulePathHelper::ENTRY_MAIN_FUNCTION) { in SetStartTime()
267 if (recordName == ModulePathHelper::ENTRY_FUNCTION_NAME || in SetEndTime()
268 recordName == ModulePathHelper::ENTRY_MAIN_FUNCTION) { in SetEndTime()
Dmodule_path_helper.h62 class ModulePathHelper {
258 … if (StringHelper::StringStartWith(requestName, ModulePathHelper::REQUIRE_NAPI_OHOS_PREFIX) || in IsNativeModuleRequest()
259 StringHelper::StringStartWith(requestName, ModulePathHelper::REQUIRE_NAPI_APP_PREFIX) || in IsNativeModuleRequest()
260 … StringHelper::StringStartWith(requestName, ModulePathHelper::REQUIRE_NAITVE_MODULE_PREFIX)) { in IsNativeModuleRequest()
Dmodule_tools.cpp141 CString recordNameStr = ModulePathHelper::Utf8ConvertToString(recordName.GetTaggedValue()); in GetLazyModuleValueFromIndexBindingForLog()
151 CString fileName = ModulePathHelper::Utf8ConvertToString(binding->GetAbcFileName()); in GetLazyModuleValueFromIndexBindingForLog()
173 CString recordNameStr = ModulePathHelper::Utf8ConvertToString(recordName.GetTaggedValue()); in GetLazyModuleValueFromRecordBindingForLog()
Djs_module_source_text.cpp240 StringHelper::StringStartWith(moduleRequestName, ModulePathHelper::PREFIX_BUNDLE) || in IsNativeModule()
241 StringHelper::StringStartWith(moduleRequestName, ModulePathHelper::PREFIX_PACKAGE) || in IsNativeModule()
242 … StringHelper::StringStartWith(moduleRequestName, ModulePathHelper::PREFIX_NORMALIZED_NOT_SO) || in IsNativeModule()
251 …if (StringHelper::StringStartWith(moduleRequestName, ModulePathHelper::REQUIRE_NAPI_OHOS_PREFIX)) { in GetNativeModuleType()
258 … if (StringHelper::StringStartWith(moduleRequestName, ModulePathHelper::REQUIRE_NAPI_APP_PREFIX) || in GetNativeModuleType()
259 StringHelper::StringStartWith(moduleRequestName, ModulePathHelper::PREFIX_NORMALIZED_SO)) { in GetNativeModuleType()
262 …if (StringHelper::StringStartWith(moduleRequestName, ModulePathHelper::REQUIRE_NAITVE_MODULE_PREFI… in GetNativeModuleType()
281 CString soName = ModulePathHelper::GetNormalizedPathFromOhmUrl(soPath); in MakeNormalizedAppArgs()
282 CString path = base::ConcatToCString(ModulePathHelper::GetBundleNameFromNormalized(vm, soPath), in MakeNormalizedAppArgs()
293 if (!StringHelper::StringStartWith(requestName, ModulePathHelper::REQUIRE_NAPI_APP_PREFIX)) { in MakeAppArgs()
[all …]
Dmodule_resolver.cpp83 … CString moduleRequestName = ModulePathHelper::Utf8ConvertToString(moduleRequest.GetTaggedValue()); in HostResolveImportedModuleWithMerge()
113ModulePathHelper::ConcatFileNameWithMerge(thread, pandaFile.get(), baseFilename, recordName, modul… in HostResolveImportedModuleWithMerge()
129 … CString moduleRequestStr = ModulePathHelper::Utf8ConvertToString(moduleRequest.GetTaggedValue()); in HostResolveImportedModuleBundlePack()
Djs_module_namespace.cpp112 CString requestMod = ModulePathHelper::ReformatPath(mm->GetEcmaModuleFilenameString()); in GetProperty()
/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/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/module/tests/
Decma_module_test.cpp313 CString entryPoint = ModulePathHelper::ReformatPath(requestPath); in HWTEST_F_L0()
318 entryPoint = ModulePathHelper::ReformatPath(requestPath); in HWTEST_F_L0()
323 entryPoint = ModulePathHelper::ReformatPath(requestPath); in HWTEST_F_L0()
328 entryPoint = ModulePathHelper::ReformatPath(requestPath); in HWTEST_F_L0()
335 CString res = ModulePathHelper::ParseUrl(instance, recordName); in HWTEST_F_L0()
359 …CString entryPoint = ModulePathHelper::MakeNewRecord(thread, pf.get(), baseFilename, moduleRecordN… in HWTEST_F_L0()
368 entryPoint = ModulePathHelper::MakeNewRecord(thread, pf.get(), baseFilename, moduleRecordName, in HWTEST_F_L0()
392 CString entryPoint = ModulePathHelper::FindPackageInTopLevelWithNamespace( in HWTEST_F_L0()
399 …entryPoint = ModulePathHelper::FindPackageInTopLevelWithNamespace(pf.get(), moduleRequestName, mod… in HWTEST_F_L0()
405 …entryPoint = ModulePathHelper::FindPackageInTopLevelWithNamespace(pf.get(), moduleRequestName, mod… in HWTEST_F_L0()
[all …]
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_promise_job.cpp30 using ModulePathHelper = ecmascript::ModulePathHelper; typedef
147 CString fileName = ModulePathHelper::Utf8ConvertToString(dirPath.GetTaggedValue()); in DynamicImportJob()
148 CString requestPath = ModulePathHelper::Utf8ConvertToString(specifierString.GetTaggedValue()); in DynamicImportJob()
154 recordNameStr = ModulePathHelper::Utf8ConvertToString(recordName.GetTaggedValue()); in DynamicImportJob()
163ModulePathHelper::TranslateExpressionToNormalized(thread, curJsPandaFile.get(), fileName, recordNa… in DynamicImportJob()
167 } else if (ModulePathHelper::NeedTranstale(requestPath)) { in DynamicImportJob()
168 ModulePathHelper::TranstaleExpressionInput(curJsPandaFile.get(), requestPath); in DynamicImportJob()
186 ModulePathHelper::ConcatFileNameWithMerge(thread, curJsPandaFile.get(), in DynamicImportJob()
200 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.cpp732 CString requestPath = ModulePathHelper::Utf8ConvertToString(input.GetTaggedValue()); in LoadNativeModule()
745ModulePathHelper::TranslateExpressionToNormalized(thread, curJsPandaFile.get(), abcFilePath, "", in LoadNativeModule()
747 } else if (ModulePathHelper::NeedTranstale(requestPath)) { in LoadNativeModule()
748 ModulePathHelper::TranstaleExpressionInput(curJsPandaFile.get(), requestPath); in LoadNativeModule()
996 CString moduleName = ModulePathHelper::GetModuleNameWithBaseFile(fileName); in GetCurrentModuleName()
1012 CString bundleName = ModulePathHelper::GetBundleNameWithRecordName(vm, recordName); in GetCurrentBundleName()
/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()
476 CString abcFilePath = ModulePathHelper::ConcatPandaFilePath(moduleName); in ExecuteAbcFileWithSingletonPatternFlag()
484 CString entryPoint = ModulePathHelper::ConcatFileNameWithMerge(thread, jsPandaFile.get(), in ExecuteAbcFileWithSingletonPatternFlag()
515 CString abcFilePath = ModulePathHelper::ConcatPandaFilePath(moduleName); in IsExecuteModuleInAbcFile()
528 CString entryPoint = ModulePathHelper::ConcatFileNameWithMerge(thread, jsPandaFile.get(), in IsExecuteModuleInAbcFile()
Djs_pandafile_manager.cpp84 std::string hspPath = ModulePathHelper::ParseHapPath(filename); in LoadJSPandaFile()
578 …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.cpp992 if (fileName.length() > ModulePathHelper::BUNDLE_INSTALL_PATH_LEN && in GetCurrentModuleInfo()
993 fileName.find(ModulePathHelper::BUNDLE_INSTALL_PATH) == 0) { in GetCurrentModuleInfo()
994 fileName = fileName.substr(ModulePathHelper::BUNDLE_INSTALL_PATH_LEN); in GetCurrentModuleInfo()
1002 moduleName = ModulePathHelper::GetModuleNameWithNormalizedName(recordName); in GetCurrentModuleInfo()
1004 moduleName = ModulePathHelper::GetModuleName(recordName); in GetCurrentModuleInfo()
/arkcompiler/ets_runtime/ecmascript/napi/
Djsnapi.cpp141 using ModulePathHelper = ecmascript::ModulePathHelper; typedef
/arkcompiler/ets_runtime/ecmascript/patch/
Dquick_fix_manager.cpp297 if (fileName.find(ModulePathHelper::EXT_NAME_HQF) != std::string::npos) { in GetBaseFileName()

12