/arkcompiler/ets_runtime/ecmascript/base/ |
D | path_helper.h | 74 inline static CString GetStrippedModuleName(const CString &moduleRequestName) in GetStrippedModuleName() argument 76 size_t pos = moduleRequestName.find(COLON_TAG); in GetStrippedModuleName() 78 LOG_FULL(FATAL) << "Unknown format " << moduleRequestName; in GetStrippedModuleName() 80 return moduleRequestName.substr(pos + 1); in GetStrippedModuleName() 87 inline static CString GetInternalModulePrefix(const CString &moduleRequestName) in GetInternalModulePrefix() argument 89 size_t pos = moduleRequestName.find(COLON_TAG); in GetInternalModulePrefix() 91 LOG_FULL(FATAL) << "Unknown format " << moduleRequestName; in GetInternalModulePrefix() 93 return moduleRequestName.substr(1, pos - 1); in GetInternalModulePrefix()
|
/arkcompiler/ets_runtime/ecmascript/module/ |
D | module_path_helper.cpp | 149 …[[maybe_unused]] CString &baseFileName, CString moduleRequestName, [[maybe_unused]] CString record… in ParsePrefixBundle() argument 152 moduleRequestName = moduleRequestName.substr(PREFIX_BUNDLE_LEN); in ParsePrefixBundle() 153 CString entryPoint = moduleRequestName; in ParsePrefixBundle() 156 StringHelper::SplitString(moduleRequestName, vec, 0, SEGMENTS_LIMIT_TWO); in ParsePrefixBundle() 177 StringHelper::SplitString(moduleRequestName, currentVec, 0, SEGMENTS_LIMIT_TWO); in ParsePrefixBundle() 211 CString moduleRequestName = RemoveSuffix(requestName); in MakeNewRecord() local 212 size_t pos = moduleRequestName.find(PathHelper::CURRENT_DIREATORY_TAG); in MakeNewRecord() 214 moduleRequestName = moduleRequestName.substr(2); // 2 means jump "./" in MakeNewRecord() 219 entryPoint = recordName.substr(0, pos + 1) + moduleRequestName; in MakeNewRecord() 221 entryPoint = moduleRequestName; in MakeNewRecord() [all …]
|
D | module_data_extractor.h | 42 …tatic JSHandle<JSTaggedValue> ParseNativeModule(JSThread *thread, const CString &moduleRequestName,
|
D | module_path_helper.h | 103 …[[maybe_unused]] CString &baseFileName, CString moduleRequestName, [[maybe_unused]] CString record… 121 static bool IsImportFile(const CString &moduleRequestName);
|
D | js_module_source_text.cpp | 90 CString moduleRequestName = ConvertToString(EcmaString::Cast(moduleRequest->GetTaggedObject())); in HostResolveImportedModuleWithMerge() local 91 auto [isNative, moduleType] = SourceTextModule::CheckNativeModule(moduleRequestName); in HostResolveImportedModuleWithMerge() 93 return moduleManager->ResolveNativeModule(moduleRequestName, moduleType); in HostResolveImportedModuleWithMerge() 109 thread, jsPandaFile.get(), outFileName, moduleRecordName, moduleRequestName); in HostResolveImportedModuleWithMerge() 284 std::pair<bool, ModuleTypes> SourceTextModule::CheckNativeModule(const CString &moduleRequestName) in CheckNativeModule() argument 286 if (moduleRequestName[0] != '@' || in CheckNativeModule() 287 StringHelper::StringStartWith(moduleRequestName, ModulePathHelper::PREFIX_BUNDLE) || in CheckNativeModule() 288 StringHelper::StringStartWith(moduleRequestName, ModulePathHelper::PREFIX_PACKAGE)|| in CheckNativeModule() 289 moduleRequestName.find(':') == CString::npos) { in CheckNativeModule() 293 …if (StringHelper::StringStartWith(moduleRequestName, ModulePathHelper::REQUIRE_NAPI_OHOS_PREFIX)) { in CheckNativeModule() [all …]
|
D | module_data_extractor.cpp | 130 …edValue> ModuleDataExtractor::ParseNativeModule(JSThread *thread, const CString &moduleRequestName, in ParseNativeModule() argument 137 JSHandle<EcmaString> falsyRecordName = factory->NewFromUtf8(moduleRequestName); in ParseNativeModule()
|
D | js_module_source_text.h | 104 static std::pair<bool, ModuleTypes> CheckNativeModule(const CString &moduleRequestName); 108 const CString &moduleRequestName);
|
D | js_module_manager.h | 59 …JSHandle<JSTaggedValue> ResolveNativeModule(const CString &moduleRequestName, ModuleTypes moduleTy…
|
D | js_module_manager.cpp | 498 JSHandle<JSTaggedValue> ModuleManager::ResolveNativeModule(const CString &moduleRequestName, Module… in ResolveNativeModule() argument 503 JSHandle<JSTaggedValue> referencingModule(factory->NewFromUtf8(moduleRequestName)); in ResolveNativeModule() 505 moduleRequestName, moduleType); in ResolveNativeModule()
|
/arkcompiler/ets_runtime/ecmascript/module/tests/ |
D | ecma_module_test.cpp | 306 CString moduleRequestName = "@bundle:com.bundleName.test/moduleName/requestModuleName1"; in HWTEST_F_L0() local 309 moduleRequestName); in HWTEST_F_L0() 315 …lper::ConcatFileNameWithMerge(thread, pf.get(), baseFilename, moduleRecordName, moduleRequestName); in HWTEST_F_L0() 337 CString moduleRequestName = "./requestModule.js"; in HWTEST_F_L0() local 341 moduleRequestName); in HWTEST_F_L0() 346 moduleRequestName = "./requestModule.js"; in HWTEST_F_L0() 350 thread, pf.get(), baseFilename, moduleRecordName, moduleRequestName); in HWTEST_F_L0() 372 CString moduleRequestName = "./secord.js"; in HWTEST_F_L0() local 376 …lper::ConcatFileNameWithMerge(thread, pf.get(), baseFilename, moduleRecordName, moduleRequestName); in HWTEST_F_L0() 386 moduleRequestName = "./test/secord.js"; in HWTEST_F_L0() [all …]
|
/arkcompiler/ets_runtime/ecmascript/compiler/ |
D | bytecode_info_collector.cpp | 691 … CString moduleRequestName = ConvertToString(EcmaString::Cast(moduleRequest.GetTaggedObject())); in CollectRecordExportInfo() local 692 if (ModulePathHelper::IsNativeModuleRequest(moduleRequestName)) { in CollectRecordExportInfo() 697 baseFileName, recordName, moduleRequestName); in CollectRecordExportInfo()
|