Home
last modified time | relevance | path

Searched refs:moduleName (Results 1 - 25 of 65) sorted by relevance

123

/arkcompiler/ets_runtime/ecmascript/module/
H A Dmodule_path_helper.cpp145 * Before: inputFileName: 1. /data/storage/el1/bundle/moduleName@namespace/ets/xxx/xxx.abc
146 2. @bundle:bundleName/moduleName/ets/xxx/xxx.abc
147 3. moduleName/ets/xxx/xxx.abc
150 * After: outBaseFileName: /data/storage/el1/bundle/moduleName/ets/modules.abc
151 * outEntryPoint: bundleName/moduleName/ets/xxx/xxx
162 // inputFileName: /data/storage/el1/bundle/moduleName@namespace/ets/xxx/xxx.abc in ParseAbcPathAndOhmUrl()
167 CString moduleName = inputFileName.substr(BUNDLE_INSTALL_PATH_LEN, pos - BUNDLE_INSTALL_PATH_LEN); in ParseAbcPathAndOhmUrl() local
168 PathHelper::DeleteNamespace(moduleName); in ParseAbcPathAndOhmUrl()
169 outBaseFileName = BUNDLE_INSTALL_PATH + moduleName + MERGE_ABC_ETS_MODULES; in ParseAbcPathAndOhmUrl()
173 // inputFileName: @bundle:bundleName/moduleName/et in ParseAbcPathAndOhmUrl()
231 ConcatHspFileNameCrossBundle(const CString &bundleName, const CString &moduleName) ConcatHspFileNameCrossBundle() argument
238 ConcatHspFileName(const CString &moduleName) ConcatHspFileName() argument
261 CString moduleName = oldEntryPoint.substr(pos + 1, pathPos - pos - 1); TransformToNormalizedOhmUrl() local
309 CString moduleName = vec[1]; ParseUrl() local
344 CString moduleName = vec[1]; ParsePrefixBundle() local
388 CString moduleName = res[NORMALIZED_MODULE_NAME_INDEX]; ParseNormalizedOhmUrl() local
513 CString moduleName = vec[1]; FindPackageInTopLevelWithNamespace() local
748 CString moduleName; GetModuleNameWithBaseFile() local
776 CString moduleName = GetModuleNameWithBaseFile(baseFileName); TranslateExpressionInputWithEts() local
797 CString moduleName = requestPath.substr(0, pos); ParseCrossModuleFile() local
838 CString moduleName = filename.substr(0, pos); ParseFileNameToVMAName() local
862 GetPkgContextInfoListElements(EcmaVM *vm, CString &moduleName, CString &packageName) GetPkgContextInfoListElements() argument
887 ConcatNativeSoNormalizedOhmurl(const CString &moduleName, const CString &bundleName, const CString &pkgName, const CString &version) ConcatNativeSoNormalizedOhmurl() argument
895 ConcatNotSoNormalizedOhmurl(const CString &moduleName, const CString &bundleName, const CString &pkgName, const CString &entryPath, const CString &version) ConcatNotSoNormalizedOhmurl() argument
992 ConcatOtherNormalizedOhmurlWithFilePath(EcmaVM *vm, size_t filePathPos, CString &moduleName, const CString &requestPath) ConcatOtherNormalizedOhmurlWithFilePath() argument
1009 CString moduleName = data[PKGINFO_MODULE_NAME_INDEX]; ConcatNormalizedOhmurlWithData() local
1031 CString moduleName = GetModuleNameWithPath(modulePath); TranslateNapiFileRequestPath() local
[all...]
H A Djs_module_deregister.cpp60 void ModuleDeregister::ReviseLoadedModuleCount(JSThread *thread, const CString &moduleName) in ReviseLoadedModuleCount() argument
64 if (!moduleManager->IsLocalModuleLoaded(moduleName)) { in ReviseLoadedModuleCount()
67 JSHandle<SourceTextModule> module = moduleManager->HostGetImportedModule(moduleName); in ReviseLoadedModuleCount()
74 if (!vm->ContainInDeregisterModuleList(moduleName)) { in ReviseLoadedModuleCount()
75 std::set<CString> increaseModule = {moduleName}; in ReviseLoadedModuleCount()
106 CString moduleName; in IncreaseRegisterCounts() local
112 moduleName = requiredModule->GetEcmaModuleFilenameString(); in IncreaseRegisterCounts()
118 moduleName = requiredModule->GetEcmaModuleRecordNameString(); in IncreaseRegisterCounts()
120 if (increaseModule.find(moduleName) != increaseModule.end()) { in IncreaseRegisterCounts()
125 increaseModule.emplace(moduleName); in IncreaseRegisterCounts()
155 CString moduleName; DecreaseRegisterCounts() local
[all...]
H A Dmodule_path_helper.h30 * baseFileName = 'data/storage/el1/bundle/moduleName/ets/modules.abc';
32 * baseFileName = 'data/storage/el1/bundle/bundleName/moduleName/moduleName/ets/modules.abc';
33 * recordName = bundleName/moduleName/xxx(entry)/xxx(ets)/xxx(pages)/xxx specific abc file
38 * {project_path}\entry\src\main\ets\pages\Index --> @bundle:bundleName/moduleName/ets/pages/Index
40 * {project_path}\namespace\src\main\ets\pages\Index --> @bundle:bundleName/moduleName@namespace/ets/pages/Index
47 * libxxx.so --> @app:bundleName/moduleName/xxx
142 static CString ConcatHspFileNameCrossBundle(const CString &bundleName, const CString &moduleName);
143 static CString ConcatHspFileName(const CString &moduleName);
180 static CVector<CString> GetPkgContextInfoListElements(EcmaVM *vm, CString &moduleName,
272 CString moduleName = recordName.substr(pos1, pos2 - pos1); GetModuleName() local
291 CString moduleName = recordName.substr(pos1, pos2 - pos1); GetModuleNameWithNormalizedName() local
331 ConcatPandaFilePath(const CString &moduleName) ConcatPandaFilePath() argument
339 GetBundleNameFromNormalized(const EcmaVM *vm, const CString &moduleName) GetBundleNameFromNormalized() argument
353 GetNormalizedPathFromOhmUrl(const CString &moduleName) GetNormalizedPathFromOhmUrl() argument
[all...]
H A Djs_shared_module.cpp57 CString moduleName = SourceTextModule::GetModuleName(resolvedModule.GetTaggedValue()); in CloneRecordIndexBinding() local
58 JSHandle<EcmaString> record = thread->GetEcmaVM()->GetFactory()->NewFromUtf8(moduleName); in CloneRecordIndexBinding()
75 CString moduleName = SourceTextModule::GetModuleName(resolvedModule.GetTaggedValue()); in CloneRecordNameBinding() local
76 JSHandle<EcmaString> record = thread->GetEcmaVM()->GetFactory()->NewFromUtf8(moduleName); in CloneRecordNameBinding()
/arkcompiler/ets_runtime/ecmascript/base/
H A Dpath_helper.h44 * Before: moduleName@nameSpace
45 * After: moduleName
47 inline static void DeleteNamespace(CString &moduleName) in DeleteNamespace() argument
49 size_t pos = moduleName.find(NAME_SPACE_TAG); in DeleteNamespace()
53 moduleName.erase(pos, moduleName.size() - pos); in DeleteNamespace()
57 * Before: moduleName@nameSpace
60 inline static CString GetHarName(const CString &moduleName) in GetHarName() argument
62 size_t pos = moduleName.find(NAME_SPACE_TAG); in GetHarName()
64 return moduleName in GetHarName()
[all...]
/arkcompiler/ets_frontend/ets2panda/evaluate/
H A DdebugInfoStorage.cpp77 std::string_view moduleName = helpers::SplitRecordName(recordName).first; in LoadFileDebugInfo() local
78 auto *debugInfo = allocator_->New<FileDebugInfo>(std::move(pf), classId, moduleName); in LoadFileDebugInfo()
85 moduleNameToDebugInfo_.emplace(moduleName, debugInfo); in LoadFileDebugInfo()
125 return iter->second->moduleName; in GetModuleName()
211 FileDebugInfo *DebugInfoStorage::GetDebugInfoByModuleName(std::string_view moduleName) const in GetDebugInfoByModuleName()
213 auto find = moduleNameToDebugInfo_.find(moduleName); in GetDebugInfoByModuleName()
H A DdebugInfoStorage.h41 : pf(std::move(pandaFile)), globalClassAcc(*pf, classId), moduleName(module) in FileDebugInfo()
49 std::string_view moduleName; member
79 FileDebugInfo *GetDebugInfoByModuleName(std::string_view moduleName) const;
90 if (!cb(sourceFilePath, debugInfo->pf.get(), debugInfo->globalClassAcc, debugInfo->moduleName)) { in EnumerateContextFiles()
H A Dhelpers.cpp306 void AddExternalProgram(parser::Program *program, parser::Program *extProgram, std::string_view moduleName) in AddExternalProgram() argument
312 if (extSources.count(moduleName) == 0) { in AddExternalProgram()
313 extSources.emplace(moduleName, program->Allocator()->Adapter()); in AddExternalProgram()
315 extSources.at(moduleName).emplace_back(extProgram); in AddExternalProgram()
329 std::string_view moduleName; in SplitRecordName() local
333 moduleName = recordName.substr(0, pos); in SplitRecordName()
339 return std::make_pair(moduleName, newRecordName); in SplitRecordName()
H A DscopedDebugInfoPlugin.cpp404 debugInfoStorage_.EnumerateContextFiles([this](auto sourceFilePath, auto, auto, auto moduleName) {
405 CreateEmptyProgram(sourceFilePath, moduleName);
410 parser::Program *ScopedDebugInfoPlugin::CreateEmptyProgram(std::string_view sourceFilePath, std::string_view moduleName)
416 auto omitModuleName = moduleName.empty();
418 program->SetModuleInfo(moduleName, false, omitModuleName);
423 helpers::AddExternalProgram(globalProgram_, program, moduleName);
H A DentityDeclarator.cpp78 auto moduleName = debugInfoPlugin_.GetDebugInfoStorage()->GetModuleName(pathToDeclSourceFile.Utf8()); in CreateIrImport() local
79 auto *source = checker->AllocNode<ir::StringLiteral>(moduleName); in CreateIrImport()
/arkcompiler/ets_runtime/tools/ap_file_viewer/native/src/
H A Dprof_dump_json.cpp39 std::string moduleName(recordPool->GetName(iter->first)); in ConvertApToJson()
40 if (moduleName.empty()) { in ConvertApToJson()
44 oneModule.insert(std::make_pair(DumpJsonUtils::MODULE_NAME, moduleName)); in ConvertApToJson()
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/
H A Dpgo_profiler_encoder.h91 void PostResetOutPathTask(const std::string &moduleName);
93 bool ResetOutPathByModuleName(const std::string &moduleName);
150 ResetOutPathTask(PGOProfilerEncoder *encoder, std::string moduleName, int32_t id) in ResetOutPathTask() argument
151 : Task(id), encoder_(encoder), moduleName_(std::move(moduleName)) {}; in ResetOutPathTask()
H A Dpgo_profiler_encoder.cpp54 bool PGOProfilerEncoder::ResetOutPathByModuleName(const std::string &moduleName) in ResetOutPathByModuleName() argument
58 if (!moduleName_.empty() || moduleName.empty()) { in ResetOutPathByModuleName()
61 moduleName_ = moduleName; in ResetOutPathByModuleName()
320 void PGOProfilerEncoder::PostResetOutPathTask(const std::string &moduleName) in PostResetOutPathTask() argument
322 if (moduleName.empty()) { in PostResetOutPathTask()
323 LOG_ECMA(ERROR) << "PostSetModuleNameTask: moduleName is empty."; in PostResetOutPathTask()
326 // only post moduleName once in PostResetOutPathTask()
331 Taskpool::GetCurrentTaskpool()->PostTask(std::make_unique<ResetOutPathTask>(this, moduleName, GLOBAL_TASK_ID)); in PostResetOutPathTask()
H A Dpgo_profiler_manager.h72 bool RequestAot(const std::string &bundleName, const std::string &moduleName, RequestAotMode triggerMode) in RequestAot() argument
83 return (cb(bundleName, moduleName, static_cast<int32_t>(triggerMode)) == 0); in RequestAot()
146 void SetModuleName(const std::string &moduleName) in SetModuleName() argument
149 encoder_->PostResetOutPathTask(moduleName); in SetModuleName()
/arkcompiler/ets_runtime/tools/ap_file_viewer/src/ap/component/sheet/
H A DTabPaneApSummary.js258 let moduleNode = root.children.find((node) => node.apName === item.moduleName);
287 apName: item.moduleName,
332 static MakeApObj(moduleName, functionName, item) {
341 moduleName: moduleName,
367 result.push(TabPaneApSummary.MakeApObj(moduleItem.moduleName, functionItem.functionName));
374 result.push(TabPaneApSummary.MakeApObj(moduleItem.moduleName, functionItem.functionName, item));
377 result.push(TabPaneApSummary.MakeApObj(moduleItem.moduleName, functionItem.functionName, typesItem));
381 result.push(TabPaneApSummary.MakeApObj(moduleItem.moduleName, functionItem.functionName, typeItem));
/arkcompiler/ets_runtime/ecmascript/ohos/
H A Dohos_preload_app_info.h34 static std::string GetPreloadAOTFileName(const std::string &hapPath, const std::string &moduleName) in GetPreloadAOTFileName() argument
57 aotFileName = appPath + PRELOAD_AN_FOLDER + appName + "/" + moduleName; in GetPreloadAOTFileName()
/arkcompiler/ets_runtime/ecmascript/jspandafile/
H A Djs_pandafile_executor.h56 static void BindPreloadedPandaFilesToAOT(EcmaVM *vm, const std::string &moduleName);
77 [[maybe_unused]] const CString &bundleName, const CString &moduleName, const CString &entry,
81 const CString &moduleName, const CString &entry);
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/litecg/
H A Dlitecg.cpp45 std::string moduleName = module.GetFileName(); in LiteCG() local
46 GStrIdx fileNameStrIdx = GlobalTables::GetStrTable().GetOrCreateStrIdxFromName(moduleName); in LiteCG()
57 module.SetOutputFileName(moduleName + ".s"); in LiteCG()
/arkcompiler/toolchain/tooling/test/testcases/
H A Djs_step_over_test.h32 loadModule = [this](std::string_view moduleName) { in JsStepOverTest()
41 ASSERT_EQ(moduleName, pandaFile_); in JsStepOverTest()
42 debugger_->NotifyScriptParsed(0, moduleName.data()); in JsStepOverTest()
H A Djs_step_out_test.h32 loadModule = [this](std::string_view moduleName) { in JsStepOutTest()
41 ASSERT_EQ(moduleName, pandaFile_); in JsStepOutTest()
42 debugger_->NotifyScriptParsed(0, moduleName.data()); in JsStepOutTest()
H A Djs_step_into_test.h32 loadModule = [this](std::string_view moduleName) { in JsStepIntoTest()
43 ASSERT_EQ(moduleName, pandaFile_); in JsStepIntoTest()
44 debugger_->NotifyScriptParsed(0, moduleName.data()); in JsStepIntoTest()
H A Djs_single_step_test.h32 loadModule = [this](std::string_view moduleName) { in JsSingleStepTest()
39 ASSERT_EQ(moduleName, pandaFile_); in JsSingleStepTest()
/arkcompiler/ets_frontend/ets2panda/parser/program/
H A Dprogram.h203 moduleInfo_.moduleName = name; in SetModuleInfo()
210 return moduleInfo_.moduleName; in ModuleName()
273 : moduleName(name), isPackageModule(isPackage), omitModuleName(omitName) in ModuleInfo()
278 util::StringView moduleName; member
/arkcompiler/ets_frontend/ets2panda/evaluate/debugInfoDeserialization/
H A DinheritanceResolution.cpp50 auto [moduleName, recordName] = helpers::SplitRecordName(fullSuperClassName); in GetSuperClassModuleAndClassName()
51 auto *debugInfo = debugInfoStorage->GetDebugInfoByModuleName(moduleName); in GetSuperClassModuleAndClassName()
53 LOG(FATAL, ES2PANDA) << "Failed to find debug info for module '" << moduleName << "'"; in GetSuperClassModuleAndClassName()
/arkcompiler/ets_runtime/ecmascript/builtins/
H A Dbuiltins_promise_job.cpp181 CString moduleName; in DynamicImportJob() local
185 moduleName = fileName; in DynamicImportJob()
191 moduleName = entryPoint; in DynamicImportJob()
215 if (!moduleManager->IsModuleLoaded(moduleName) || moduleManager->IsInstantiatedModule(moduleName)) { in DynamicImportJob()
223 ModuleDeregister::ReviseLoadedModuleCount(thread, moduleName); in DynamicImportJob()
234 moduleManager->GetImportedModule(moduleName); in DynamicImportJob()

Completed in 14 milliseconds

123