Searched refs:ModuleTypes (Results 1 – 11 of 11) sorted by relevance
/arkcompiler/ets_runtime/ecmascript/module/ |
D | js_module_source_text.h | 28 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 …]
|
D | module_data_extractor.cpp | 55 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()
|
D | js_dynamic_import.h | 27 ModuleTypes moduleType, JSHandle<JSPromiseReactionsFunction> resolve,
|
D | module_data_extractor.h | 43 ModuleTypes moduleType);
|
D | js_module_source_text.cpp | 284 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 …]
|
D | js_module_manager.cpp | 115 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()
|
D | js_dynamic_import.cpp | 28 …ModuleTypes moduleType, JSHandle<JSPromiseReactionsFunction> resolve, JSHandle<JSPromiseReactionsF… in ExecuteNativeModule()
|
D | js_module_deregister.cpp | 86 …if (module->GetTypes() == ModuleTypes::APP_MODULE || module->GetTypes() == ModuleTypes::OHOS_MODUL… in RemoveModule()
|
D | js_module_manager.h | 59 …JSHandle<JSTaggedValue> ResolveNativeModule(const CString &moduleRequestName, ModuleTypes moduleTy…
|
/arkcompiler/ets_runtime/ecmascript/module/tests/ |
D | ecma_module_test.cpp | 521 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/ |
D | object_factory.cpp | 3921 obj->SetTypes(ModuleTypes::UNKNOWN); in NewSourceTextModule()
|