/arkcompiler/ets_runtime/ecmascript/module/ |
H A D | module_path_helper.cpp | 21 CString ModulePathHelper::ConcatFileNameWithMerge(JSThread *thread, const JSPandaFile *jsPandaFile, in ConcatFileNameWithMerge() 57 CString ModulePathHelper::ConcatMergeFileNameToNormalized(JSThread *thread, const JSPandaFile *jsPandaFile, 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 &normalizedpath, in ConcatUnifiedOhmUrl() 224 CString ModulePathHelper::ConcatPreviewTestUnifiedOhmUrl(const CString &bundleName, const CString &pkgname, in ConcatPreviewTestUnifiedOhmUrl() 231 CString ModulePathHelper::ConcatHspFileNameCrossBundle(const CString &bundleName, const CString &moduleName) in ConcatHspFileNameCrossBundle() 238 CString ModulePathHelper [all...] |
H A D | napi_module_loader.cpp | 26 CString moduleStr = ModulePathHelper::GetModuleNameWithPath(modulePath); in LoadModuleNameSpaceWithModuleInfo() 27 CString abcFilePath = ModulePathHelper::ConcatPandaFilePath(moduleStr); in LoadModuleNameSpaceWithModuleInfo() 38 ModulePathHelper::TranslateExpressionToNormalized(thread, curJsPandaFile.get(), abcFilePath, "", in LoadModuleNameSpaceWithModuleInfo() 40 } else if (ModulePathHelper::NeedTranstale(requestPath)) { in LoadModuleNameSpaceWithModuleInfo() 41 ModulePathHelper::TranstaleExpressionInput(curJsPandaFile.get(), requestPath); in LoadModuleNameSpaceWithModuleInfo() 58 CString entryPoint = ModulePathHelper::ConcatFileNameWithMerge(thread, pandaFile, in LoadModuleNameSpaceWithPath()
|
H A D | module_manager_helper.cpp | 103 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()
|
H A D | module_path_helper.h | 62 class ModulePathHelper { class 253 if (StringHelper::StringStartWith(requestName, ModulePathHelper::REQUIRE_NAPI_OHOS_PREFIX) || in IsNativeModuleRequest() 254 StringHelper::StringStartWith(requestName, ModulePathHelper::REQUIRE_NAPI_APP_PREFIX) || in IsNativeModuleRequest() 255 StringHelper::StringStartWith(requestName, ModulePathHelper::REQUIRE_NAITVE_MODULE_PREFIX)) { in IsNativeModuleRequest()
|
H A D | js_module_source_text.cpp | 83 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() 301 StringHelper::StringStartWith(moduleRequestName, ModulePathHelper::PREFIX_BUNDLE) || in CheckNativeModule() 302 StringHelper::StringStartWith(moduleRequestName, ModulePathHelper::PREFIX_PACKAGE) || in CheckNativeModule() 303 StringHelper::StringStartWith(moduleRequestName, ModulePathHelper::PREFIX_NORMALIZED_NOT_SO) || in CheckNativeModule() 308 if (StringHelper::StringStartWith(moduleRequestName, ModulePathHelper::REQUIRE_NAPI_OHOS_PREFIX)) { in CheckNativeModule() 315 if (StringHelper::StringStartWith(moduleRequestName, ModulePathHelper::REQUIRE_NAPI_APP_PREFIX) || in CheckNativeModule() 316 StringHelper::StringStartWith(moduleRequestName, ModulePathHelper in CheckNativeModule() [all...] |
H A D | module_logger.cpp | 80 exportNameStr = ModulePathHelper::Utf8ConvertToString(importName.GetTaggedValue()); in InsertModuleLoadInfo()
|
H A D | js_module_namespace.cpp | 112 CString requestMod = ModulePathHelper::ReformatPath(mm->GetEcmaModuleFilenameString()); in GetProperty()
|
H A D | js_module_manager.cpp | 694 entry = ModulePathHelper::Utf8ConvertToString(module); in GetRecordName()
|
/arkcompiler/ets_runtime/ecmascript/builtins/ |
H A D | builtins_promise_job.cpp | 29 using ModulePathHelper = ecmascript::ModulePathHelper; 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() 165 ModulePathHelper::TranslateExpressionToNormalized(thread, curJsPandaFile.get(), fileName, recordNameStr, 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 in DynamicImportJob() [all...] |
H A D | builtins_cjs_module.cpp | 62 ModulePathHelper::ResolveCurrentPath(parent, dirname, jsPandaFile); in ResolveFilename() 69 CString requestNameStr = ModulePathHelper::Utf8ConvertToString(requestName.GetTaggedValue()); in ResolveFilename()
|
H A D | builtins_global.cpp | 735 CString requestPath = ModulePathHelper::Utf8ConvertToString(input.GetTaggedValue()); in LoadNativeModule() 746 ModulePathHelper::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/module/tests/ |
H A D | ecma_module_test.cpp | 310 CString entryPoint = ModulePathHelper::ReformatPath(requestPath); in HWTEST_F_L0() 315 entryPoint = ModulePathHelper::ReformatPath(requestPath); in HWTEST_F_L0() 320 entryPoint = ModulePathHelper::ReformatPath(requestPath); in HWTEST_F_L0() 325 entryPoint = ModulePathHelper::ReformatPath(requestPath); in HWTEST_F_L0() 332 CString res = ModulePathHelper::ParseUrl(instance, recordName); in HWTEST_F_L0() 356 CString entryPoint = ModulePathHelper::MakeNewRecord(thread, pf.get(), baseFilename, moduleRecordName, in HWTEST_F_L0() 365 entryPoint = ModulePathHelper::MakeNewRecord(thread, pf.get(), baseFilename, moduleRecordName, in HWTEST_F_L0() 389 CString entryPoint = ModulePathHelper::FindPackageInTopLevelWithNamespace( in HWTEST_F_L0() 396 entryPoint = ModulePathHelper::FindPackageInTopLevelWithNamespace(pf.get(), moduleRequestName, moduleRecordName); in HWTEST_F_L0() 402 entryPoint = ModulePathHelper in HWTEST_F_L0() [all...] |
/arkcompiler/ets_runtime/ecmascript/jspandafile/ |
H A D | js_pandafile_executor.cpp | 38 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 in IsExecuteModuleInAbcFile() [all...] |
H A D | js_pandafile_manager.cpp | 80 std::string hspPath = ModulePathHelper::ParseHapPath(filename); in LoadJSPandaFile() 156 CString tag = ModulePathHelper::ParseFileNameToVMAName(filename); in LoadJSPandaFile() 160 tag = CString(ModulePathHelper::VMA_NAME_ARKTS_CODE); in LoadJSPandaFile() 590 bool getBuffer = resolveBufferCallback(ModulePathHelper::ParseHapPath(fileName), &data, &dataSize, errorMsg); in CheckFilePath()
|
/arkcompiler/ets_runtime/ecmascript/require/ |
H A D | js_cjs_module.cpp | 98 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/ |
H A D | ecma_vm.cpp | 889 if (fileName.length() > ModulePathHelper::BUNDLE_INSTALL_PATH_LEN && 890 fileName.find(ModulePathHelper::BUNDLE_INSTALL_PATH) == 0) { 891 fileName = fileName.substr(ModulePathHelper::BUNDLE_INSTALL_PATH_LEN); 899 moduleName = ModulePathHelper::GetModuleNameWithNormalizedName(recordName); 901 moduleName = ModulePathHelper::GetModuleName(recordName);
|
H A D | ecma_context.cpp | 447 ModulePathHelper::ResolveCurrentPath(dirNameStr, fileNameStr, jsPandaFile); in CJSExecution() 451 fileNameStr = ModulePathHelper::Utf8ConvertToString(funcFileName); in CJSExecution()
|
H A D | ecma_macros.h | 431 CString normalizeStr = ModulePathHelper::ReformatPath(currentRecord); \
|
/arkcompiler/ets_runtime/ecmascript/napi/ |
H A D | jsnapi.cpp | 142 using ModulePathHelper = ecmascript::ModulePathHelper;
|
H A D | jsnapi_expo.cpp | 138 using ModulePathHelper = ecmascript::ModulePathHelper; 4041 return ModulePathHelper::IsOhmUrl(srcName.c_str()); in IsOhmUrl() 4050 ecmascript::CString moduleName = ModulePathHelper::GetModuleName(entryPoint.c_str()); in SetModuleInfo() 4069 if (!ModulePathHelper::ValidateAbcPath(path, ecmascript::ValidateFilePath::ABC)) { in SetAssetPath() 5236 if (!ModulePathHelper::ValidateAbcPath(filename, ecmascript::ValidateFilePath::ETS_MODULES)) { in ExecuteSecureWithOhmUrl() 5243 if (!ModulePathHelper::CheckAndGetRecordName(thread, ohmUrl.c_str(), entryPoint)) { in ExecuteSecureWithOhmUrl() 5834 ModulePathHelper::ParseAbcPathAndOhmUrl(vm, entry, name, entry); in GetExportObject() 5888 if (!ModulePathHelper::CheckAndGetRecordName(thread, ohmUrl.c_str(), recordName)) { in GetExportObjectFromOhmUrl() 5916 ecmascript::CString moduleName = ModulePathHelper in GetModuleNameSpaceFromFile() [all...] |
/arkcompiler/ets_runtime/ecmascript/patch/ |
H A D | quick_fix_manager.cpp | 296 if (fileName.find(ModulePathHelper::EXT_NAME_HQF) != std::string::npos) { in GetBaseFileName()
|