Home
last modified time | relevance | path

Searched refs:nativeModule (Results 1 – 5 of 5) sorted by relevance

/arkcompiler/ets_frontend/ets2panda/test/parser/ets/
DglobalVarInLambdaInStatic.sts25 function nativeModule(): NativeModule {
32 nativeModule().MethodeOfClass(len);
DglobalVarInLambdaInStatic-expected.txt512 "name": "nativeModule",
1325 "name": "nativeModule",
1349 "name": "nativeModule",
/arkcompiler/ets_runtime/ecmascript/module/
Djs_module_manager.cpp774 JSHandle<SourceTextModule> nativeModule = in ExecuteNativeModuleMayThrowError() local
776 …auto exportObject = SourceTextModule::LoadNativeModuleMayThrowError(thread, nativeModule, moduleTy… in ExecuteNativeModuleMayThrowError()
779 nativeModule->SetStatus(ModuleStatus::EVALUATED); in ExecuteNativeModuleMayThrowError()
780 nativeModule->SetLoadingTypes(LoadingTypes::STABLE_MODULE); in ExecuteNativeModuleMayThrowError()
781 nativeModule->StoreModuleValue(thread, 0, JSNApiHelper::ToJSHandle(exportObject)); in ExecuteNativeModuleMayThrowError()
793 JSHandle<SourceTextModule> nativeModule = HostGetImportedModule(recordName); in ExecuteNativeModule() local
794 if (!SourceTextModule::LoadNativeModule(thread, nativeModule, nativeModule->GetTypes())) { in ExecuteNativeModule()
797 nativeModule->SetStatus(ModuleStatus::EVALUATED); in ExecuteNativeModule()
798 nativeModule->SetLoadingTypes(LoadingTypes::STABLE_MODULE); in ExecuteNativeModule()
799 requiredModule.Update(nativeModule); in ExecuteNativeModule()
[all …]
Djs_module_source_text.cpp203 … const JSHandle<SourceTextModule> &nativeModule, in ResolveNativeStarExport() argument
206 if (nativeModule->GetStatus() != ModuleStatus::EVALUATED) { in ResolveNativeStarExport()
207 auto moduleType = nativeModule->GetTypes(); in ResolveNativeStarExport()
208 if (!LoadNativeModule(thread, nativeModule, moduleType)) { in ResolveNativeStarExport()
211 nativeModule->SetStatus(ModuleStatus::EVALUATED); in ResolveNativeStarExport()
214 JSHandle<JSTaggedValue> nativeExports(thread, nativeModule->GetModuleValue(thread, 0, false)); in ResolveNativeStarExport()
215 return SourceTextModule::ResolveExportObject(thread, nativeModule, nativeExports, exportName); in ResolveNativeStarExport()
467 …d SourceTextModule::EvaluateNativeModule(JSThread *thread, JSHandle<SourceTextModule> nativeModule, in EvaluateNativeModule() argument
470 if (nativeModule->GetStatus() == ModuleStatus::EVALUATED) { in EvaluateNativeModule()
473 if (!SourceTextModule::LoadNativeModule(thread, nativeModule, moduleType)) { in EvaluateNativeModule()
[all …]
Djs_module_source_text.h108 … const JSHandle<SourceTextModule> &nativeModule,
356 static void EvaluateNativeModule(JSThread *thread, JSHandle<SourceTextModule> nativeModule,