| /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.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()
|
| D | pandafile.cpp | 35 ModulePathHelper::ParseAbcPathAndOhmUrl(vm, normalName, name, entry); in ParseAbcEntryPoint()
|
| /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.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/ |
| 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 | napi_module_loader.cpp | 40 … ModulePathHelper::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 …]
|
| D | module_logger.cpp | 92 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()
|
| D | module_path_helper.h | 62 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()
|
| D | js_module_source_text.cpp | 284 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 …]
|
| D | module_value_accessor.cpp | 356 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()
|
| D | module_resolver.cpp | 83 …CString moduleRequestName = ModulePathHelper::Utf8ConvertToString(thread, moduleRequest.GetTaggedV… in HostResolveImportedModuleWithMerge() 113 …ModulePathHelper::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/ |
| 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/module/static/ |
| D | static_module_loader.cpp | 35 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/ |
| D | ecma_module_test.cpp | 174 …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 …]
|
| D | static_module_loader_test.cpp | 31 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/ |
| 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/builtins/ |
| D | builtins_promise_job.cpp | 31 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() 166 …ModulePathHelper::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()
|
| D | builtins_cjs_module.cpp | 62 ModulePathHelper::ResolveCurrentPath(parent, dirname, jsPandaFile); in ResolveFilename() 69 …CString requestNameStr = ModulePathHelper::Utf8ConvertToString(thread, requestName.GetTaggedValue(… in ResolveFilename()
|
| D | builtins_global.cpp | 730 CString requestPath = ModulePathHelper::Utf8ConvertToString(thread, input.GetTaggedValue()); in LoadNativeModule() 743 … ModulePathHelper::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/ |
| D | jsnapi_expo_hybrid.cpp | 30 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/ |
| 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() 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()
|
| D | js_pandafile_snapshot.cpp | 65 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/ |
| D | js_cjs_module.cpp | 98 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/ |
| D | ecma_vm.cpp | 1490 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/ |
| D | jsnapi.cpp | 139 using ModulePathHelper = ecmascript::ModulePathHelper; typedef
|