Home
last modified time | relevance | path

Searched refs:ModuleTypes (Results 1 – 11 of 11) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/module/
Djs_module_source_text.h28 enum class ModuleTypes : uint8_t { enum
104 static std::pair<bool, ModuleTypes> CheckNativeModule(const CString &moduleRequestName);
105 static Local<JSValueRef> GetRequireNativeModuleFunc(EcmaVM *vm, ModuleTypes moduleType);
110 … const JSHandle<JSTaggedValue> &moduleRequest, ModuleTypes moduleType);
111 inline static bool IsNativeModule(ModuleTypes moduleType) in IsNativeModule()
113 return moduleType == ModuleTypes::OHOS_MODULE || in IsNativeModule()
114 moduleType == ModuleTypes::APP_MODULE || in IsNativeModule()
115 moduleType == ModuleTypes::NATIVE_MODULE || in IsNativeModule()
116 moduleType == ModuleTypes::INTERNAL_MODULE; in IsNativeModule()
145 NEXT_BIT_FIELD(BitField, Types, ModuleTypes, MODULE_TYPE_BITS, Status)
[all …]
Dmodule_data_extractor.cpp55 moduleRecord->SetTypes(ModuleTypes::ECMA_MODULE); in ParseModule()
101 moduleRecord->SetTypes(ModuleTypes::CJS_MODULE); in ParseCjsModule()
124 moduleRecord->SetTypes(ModuleTypes::JSON_MODULE); in ParseJsonModule()
131 ModuleTypes moduleType) in ParseNativeModule()
Djs_dynamic_import.h27 ModuleTypes moduleType, JSHandle<JSPromiseReactionsFunction> resolve,
Dmodule_data_extractor.h43 ModuleTypes moduleType);
Djs_module_source_text.cpp284 std::pair<bool, ModuleTypes> SourceTextModule::CheckNativeModule(const CString &moduleRequestName) in CheckNativeModule()
290 return {false, ModuleTypes::UNKNOWN}; in CheckNativeModule()
294 return {true, ModuleTypes::OHOS_MODULE}; in CheckNativeModule()
297 return {true, ModuleTypes::APP_MODULE}; in CheckNativeModule()
300 return {true, ModuleTypes::NATIVE_MODULE}; in CheckNativeModule()
302 return {true, ModuleTypes::INTERNAL_MODULE}; in CheckNativeModule()
305 Local<JSValueRef> SourceTextModule::GetRequireNativeModuleFunc(EcmaVM *vm, ModuleTypes moduleType) in GetRequireNativeModuleFunc()
309 auto funcName = (moduleType == ModuleTypes::NATIVE_MODULE) ? in GetRequireNativeModuleFunc()
341 const JSHandle<JSTaggedValue> &moduleRequest, ModuleTypes moduleType) in LoadNativeModule()
352 if (moduleType == ModuleTypes::APP_MODULE) { in LoadNativeModule()
[all …]
Djs_module_manager.cpp115 ModuleTypes moduleType = module->GetTypes(); in GetModuleValueOutterInternal()
119 if (module->GetTypes() == ModuleTypes::CJS_MODULE) { in GetModuleValueOutterInternal()
128 if (module->GetTypes() == ModuleTypes::CJS_MODULE) { in GetModuleValueOutterInternal()
277 if (module->GetTypes() == ModuleTypes::CJS_MODULE) { in GetModuleValueOutterInternal()
411 tmpModuleRecord->SetTypes(ModuleTypes::ECMA_MODULE); in CreateEmptyModule()
498 …Value> ModuleManager::ResolveNativeModule(const CString &moduleRequestName, ModuleTypes moduleType) in ResolveNativeModule()
596 ModuleTypes moduleType = requiredModuleST->GetTypes(); in GetModuleNamespaceInternal()
602 if (moduleType == ModuleTypes::CJS_MODULE) { in GetModuleNamespaceInternal()
Djs_dynamic_import.cpp28ModuleTypes moduleType, JSHandle<JSPromiseReactionsFunction> resolve, JSHandle<JSPromiseReactionsF… in ExecuteNativeModule()
Djs_module_deregister.cpp86 …if (module->GetTypes() == ModuleTypes::APP_MODULE || module->GetTypes() == ModuleTypes::OHOS_MODUL… in RemoveModule()
Djs_module_manager.h59 …JSHandle<JSTaggedValue> ResolveNativeModule(const CString &moduleRequestName, ModuleTypes moduleTy…
/arkcompiler/ets_runtime/ecmascript/module/tests/
Decma_module_test.cpp521 std::pair<bool, ModuleTypes> res1 = SourceTextModule::CheckNativeModule(requestName1); in HWTEST_F_L0()
523 EXPECT_EQ(res1.second, ModuleTypes::UNKNOWN); in HWTEST_F_L0()
525 std::pair<bool, ModuleTypes> res2 = SourceTextModule::CheckNativeModule(requestName2); in HWTEST_F_L0()
527 EXPECT_EQ(res2.second, ModuleTypes::OHOS_MODULE); in HWTEST_F_L0()
529 std::pair<bool, ModuleTypes> res3 = SourceTextModule::CheckNativeModule(requestName3); in HWTEST_F_L0()
531 EXPECT_EQ(res3.second, ModuleTypes::APP_MODULE); in HWTEST_F_L0()
533 std::pair<bool, ModuleTypes> res4 = SourceTextModule::CheckNativeModule(requestName4); in HWTEST_F_L0()
535 EXPECT_EQ(res4.second, ModuleTypes::NATIVE_MODULE); in HWTEST_F_L0()
537 std::pair<bool, ModuleTypes> res5 = SourceTextModule::CheckNativeModule(requestName5); in HWTEST_F_L0()
539 EXPECT_EQ(res5.second, ModuleTypes::INTERNAL_MODULE); in HWTEST_F_L0()
[all …]
/arkcompiler/ets_runtime/ecmascript/
Dobject_factory.cpp3921 obj->SetTypes(ModuleTypes::UNKNOWN); in NewSourceTextModule()