| /arkcompiler/ets_runtime/ecmascript/platform/unix/mac/ |
| D | module.cpp | 27 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/ |
| D | module.cpp | 27 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()
|
| D | pandafile.cpp | 35 ModulePathHelper::ParseAbcPathAndOhmUrl(vm, normalName, name, entry); in ParseAbcEntryPoint()
|
| /arkcompiler/ets_runtime/ecmascript/module/ |
| D | napi_module_loader.cpp | 39 … ModulePathHelper::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 …]
|
| D | module_path_helper.cpp | 25 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 …]
|
| 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() 221 CString requestMod = ModulePathHelper::ReformatPath(SourceTextModule::GetModuleName( in UpdateBindingAndGetModuleValue() 223 CString recordStr = ModulePathHelper::ReformatPath(SourceTextModule::GetModuleName( in UpdateBindingAndGetModuleValue() 226 ModulePathHelper::Utf8ConvertToString(bindingName) + in UpdateBindingAndGetModuleValue()
|
| D | module_logger.cpp | 93 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()
|
| D | module_path_helper.h | 62 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()
|
| D | module_tools.cpp | 141 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()
|
| D | js_module_source_text.cpp | 240 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 …]
|
| D | module_resolver.cpp | 83 … CString moduleRequestName = ModulePathHelper::Utf8ConvertToString(moduleRequest.GetTaggedValue()); in HostResolveImportedModuleWithMerge() 113 …ModulePathHelper::ConcatFileNameWithMerge(thread, pandaFile.get(), baseFilename, recordName, modul… in HostResolveImportedModuleWithMerge() 129 … CString moduleRequestStr = ModulePathHelper::Utf8ConvertToString(moduleRequest.GetTaggedValue()); in HostResolveImportedModuleBundlePack()
|
| D | js_module_namespace.cpp | 112 CString requestMod = ModulePathHelper::ReformatPath(mm->GetEcmaModuleFilenameString()); in GetProperty()
|
| /arkcompiler/ets_runtime/ecmascript/platform/common/ |
| D | module.cpp | 31 …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()
|
| D | pandafile.cpp | 34 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/ |
| D | pandafile.cpp | 34 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/ |
| D | ecma_module_test.cpp | 313 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/ |
| D | builtins_promise_job.cpp | 30 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() 163 …ModulePathHelper::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()
|
| D | builtins_cjs_module.cpp | 62 ModulePathHelper::ResolveCurrentPath(parent, dirname, jsPandaFile); in ResolveFilename() 69 CString requestNameStr = ModulePathHelper::Utf8ConvertToString(requestName.GetTaggedValue()); in ResolveFilename()
|
| D | builtins_global.cpp | 732 CString requestPath = ModulePathHelper::Utf8ConvertToString(input.GetTaggedValue()); in LoadNativeModule() 745 … ModulePathHelper::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/ |
| D | js_pandafile_executor.cpp | 132 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()
|
| D | js_pandafile_manager.cpp | 84 std::string hspPath = ModulePathHelper::ParseHapPath(filename); in LoadJSPandaFile() 578 …bool getBuffer = resolveBufferCallback(ModulePathHelper::ParseHapPath(fileName), &data, &dataSize,… in CheckFilePath()
|
| /arkcompiler/ets_runtime/ecmascript/require/ |
| 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/ |
| D | ecma_vm.cpp | 992 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/ |
| D | jsnapi.cpp | 141 using ModulePathHelper = ecmascript::ModulePathHelper; typedef
|
| /arkcompiler/ets_runtime/ecmascript/patch/ |
| D | quick_fix_manager.cpp | 297 if (fileName.find(ModulePathHelper::EXT_NAME_HQF) != std::string::npos) { in GetBaseFileName()
|