| /arkcompiler/ets_runtime/ecmascript/module/ |
| D | js_module_source_text.h | 37 class SourceTextModule final : public ModuleRecord { 41 CAST_CHECK(SourceTextModule, IsSourceTextModule); 45 … const JSHandle<SourceTextModule> &module, 48 …JSThread *thread, const JSHandle<SourceTextModule> &module, const JSHandle<JSTaggedValue> &moduleR… 51 …static CVector<std::string> GetExportedNames(JSThread *thread, const JSHandle<SourceTextModule> &m… 55 …static JSHandle<JSTaggedValue> ResolveExport(JSThread *thread, const JSHandle<SourceTextModule> &m… 57 CVector<std::pair<JSHandle<SourceTextModule>, JSHandle<JSTaggedValue>>> &resolveVector); 58 …ndle<JSTaggedValue> ResolveExportObject(JSThread *thread, const JSHandle<SourceTextModule> &module, 63 CVector<JSHandle<SourceTextModule>> &stack, int index); 66 …static void ModuleDeclarationEnvironmentSetup(JSThread *thread, const JSHandle<SourceTextModule> &… [all …]
|
| D | js_module_source_text.cpp | 32 CVector<std::string> SourceTextModule::GetExportedNames(JSThread *thread, const JSHandle<SourceText… in GetExportedNames() 77 JSHandle<JSTaggedValue> SourceTextModule::HostResolveImportedModuleWithMerge( in HostResolveImportedModuleWithMerge() 78 …JSThread *thread, const JSHandle<SourceTextModule> &module, const JSHandle<JSTaggedValue> &moduleR… in HostResolveImportedModuleWithMerge() 116 JSHandle<JSTaggedValue> SourceTextModule::HostResolveImportedModule(JSThread *thread, in HostResolveImportedModule() 117 const JSHandle<SourceTextModule> &module, const JSHandle<JSTaggedValue> &moduleRequest) in HostResolveImportedModule() 133 bool SourceTextModule::CheckCircularImport(const JSHandle<SourceTextModule> &module, in CheckCircularImport() 135 CVector<std::pair<JSHandle<SourceTextModule>, JSHandle<JSTaggedValue>>> &resolveVector) in CheckCircularImport() argument 150 JSHandle<JSTaggedValue> SourceTextModule::ResolveExportObject(JSThread *thread, in ResolveExportObject() 151 const JSHandle<SourceTextModule> &module, const JSHandle<JSTaggedValue> &exportObject, in ResolveExportObject() 177 JSHandle<JSTaggedValue> SourceTextModule::ResolveExport(JSThread *thread, const JSHandle<SourceText… in ResolveExport() [all …]
|
| D | js_module_record.cpp | 23 return SourceTextModule::Instantiate(thread, module); in Instantiate() 31 JSHandle<SourceTextModule> moduleRecord = JSHandle<SourceTextModule>::Cast(module); in Evaluate() 32 return SourceTextModule::Evaluate(thread, moduleRecord); in Evaluate() 40 return SourceTextModule::Cast(module.GetTaggedObject())->GetNamespace(); in GetNamespace() 48 SourceTextModule::Cast(module.GetTaggedObject())->SetNamespace(thread, value); in SetNamespace()
|
| D | js_module_manager.cpp | 69 …return SourceTextModule::Cast(currentModule.GetTaggedObject())->GetModuleValue(vm_->GetJSThread(),… in GetModuleValueInner() 78 …return SourceTextModule::Cast(currentModule.GetTaggedObject())->GetModuleValue(vm_->GetJSThread(),… in GetModuleValueInner() 89 SourceTextModule *module = SourceTextModule::Cast(currentModule.GetTaggedObject()); in GetModuleName() 111 …JSTaggedValue moduleEnvironment = SourceTextModule::Cast(currentModule.GetTaggedObject())->GetEnvi… in GetModuleValueOutterInternal() 121 SourceTextModule *module = SourceTextModule::Cast(resolvedModule.GetTaggedObject()); in GetModuleValueOutterInternal() 130 return SourceTextModule::Cast( in GetModuleValueOutterInternal() 135 SourceTextModule *module = SourceTextModule::Cast(resolvedModule.GetTaggedObject()); in GetModuleValueOutterInternal() 149 SourceTextModule::Cast(resolvedModule.GetTaggedObject())->GetModuleValue(thread, 0, false)); in GetNativeModuleValue() 151 JSHandle<JSTaggedValue> curModuleName(thread, SourceTextModule::Cast( in GetNativeModuleValue() 169 JSHandle<JSTaggedValue> curModuleName(thread, SourceTextModule::Cast( in GetCJSModuleValue() [all …]
|
| D | js_module_manager.h | 53 JSHandle<SourceTextModule> HostGetImportedModule(const CString &referencingModule); 54 JSHandle<SourceTextModule> HostGetImportedModule(JSTaggedValue referencing); 57 …JSHandle<SourceTextModule> ResolveNativeModule(const CString &moduleRequestName, ModuleTypes modul… 77 …static int GetExportObjectIndex(EcmaVM *vm, JSHandle<SourceTextModule> ecmaModule, const std::stri… 87 static bool LoadNativeModule(JSThread *thread, JSHandle<SourceTextModule> &requiredModule, 94 void StoreModuleValueInternal(JSHandle<SourceTextModule> ¤tModule, 105 void StoreModuleValueInternal(JSHandle<SourceTextModule> ¤tModule,
|
| D | js_module_namespace.cpp | 85 JSHandle<SourceTextModule> mm(thread, moduleNamespace->GetModule()); in GetProperty() 87 CVector<std::pair<JSHandle<SourceTextModule>, JSHandle<JSTaggedValue>>> resolveSet; in GetProperty() 88 JSHandle<JSTaggedValue> binding = SourceTextModule::ResolveExport(thread, mm, key, resolveSet); in GetProperty() 99 result = SourceTextModule::Cast(targetModule.GetTaggedObject())-> in GetProperty() 106 result = SourceTextModule::Cast(targetModule.GetTaggedObject())-> in GetProperty() 277 JSHandle<SourceTextModule> mm(thread, moduleNamespace->GetModule()); in ValidateKeysAvailable() 281 CVector<std::pair<JSHandle<SourceTextModule>, JSHandle<JSTaggedValue>>> resolveSet; in ValidateKeysAvailable() 282 … JSHandle<JSTaggedValue> binding = SourceTextModule::ResolveExport(thread, mm, key, resolveSet); in ValidateKeysAvailable() 292 …JSTaggedValue dictionary = SourceTextModule::Cast(targetModule.GetTaggedObject())->GetNameDictiona… in ValidateKeysAvailable()
|
| /arkcompiler/ets_runtime/ecmascript/module/tests/ |
| D | ecma_module_test.cpp | 73 JSHandle<SourceTextModule> module = objectFactory->NewSourceTextModule(); in HWTEST_F_L0() 75 SourceTextModule::AddImportEntry(thread, module, importEntry1, 0, 2); in HWTEST_F_L0() 77 SourceTextModule::AddImportEntry(thread, module, importEntry2, 1, 2); in HWTEST_F_L0() 92 JSHandle<SourceTextModule> module = objectFactory->NewSourceTextModule(); in HWTEST_F_L0() 94 SourceTextModule::AddLocalExportEntry(thread, module, localExportEntry1, 0, 2); in HWTEST_F_L0() 96 SourceTextModule::AddLocalExportEntry(thread, module, localExportEntry2, 1, 2); in HWTEST_F_L0() 111 JSHandle<SourceTextModule> module = objectFactory->NewSourceTextModule(); in HWTEST_F_L0() 113 SourceTextModule::AddIndirectExportEntry(thread, module, indirectExportEntry1, 0, 2); in HWTEST_F_L0() 115 SourceTextModule::AddIndirectExportEntry(thread, module, indirectExportEntry2, 1, 2); in HWTEST_F_L0() 130 JSHandle<SourceTextModule> module = objectFactory->NewSourceTextModule(); in HWTEST_F_L0() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/jspandafile/accessor/ |
| D | module_data_accessor.h | 45 JSHandle<SourceTextModule> &moduleRecord); 47 void EnumerateLocalExportEntry(JSThread *thread, JSHandle<SourceTextModule> &moduleRecord); 50 JSHandle<SourceTextModule> &moduleRecord); 53 JSHandle<SourceTextModule> &moduleRecord);
|
| D | module_data_accessor.cpp | 39 JSHandle<SourceTextModule> &moduleRecord) in EnumerateImportEntry() 93 void ModuleDataAccessor::EnumerateLocalExportEntry(JSThread *thread, JSHandle<SourceTextModule> &mo… in EnumerateLocalExportEntry() 130 JSHandle<SourceTextModule> &moduleRecord) in EnumerateIndirectExportEntry() 168 JSHandle<SourceTextModule> &moduleRecord) in EnumerateStarExportEntry()
|
| /arkcompiler/ets_runtime/ecmascript/jspandafile/ |
| D | module_data_extractor.cpp | 47 JSHandle<SourceTextModule> moduleRecord = factory->NewSourceTextModule(); in ParseModule() 62 JSHandle<SourceTextModule> &moduleRecord) in ExtractModuleDatas() 90 JSHandle<SourceTextModule> moduleRecord = factory->NewSourceTextModule(); in ParseCjsModule() 97 …SourceTextModule::AddLocalExportEntry(thread, moduleRecord, localExportEntry, 0, 1); // 1 means len in ParseCjsModule() 109 JSHandle<SourceTextModule> moduleRecord = factory->NewSourceTextModule(); in ParseJsonModule() 113 …SourceTextModule::AddLocalExportEntry(thread, moduleRecord, localExportEntry, 0, 1); // 1 means len in ParseJsonModule() 131 JSHandle<SourceTextModule> moduleRecord = factory->NewSourceTextModule(); in ParseNativeModule() 138 SourceTextModule::AddLocalExportEntry(thread, moduleRecord, localExportEntry, 0, 1); in ParseNativeModule()
|
| D | js_pandafile_executor.cpp | 92 SourceTextModule::Instantiate(thread, moduleRecord); in ExecuteFromFile() 99 JSHandle<SourceTextModule> module = JSHandle<SourceTextModule>::Cast(moduleRecord); in ExecuteFromFile() 101 SourceTextModule::Evaluate(thread, module, nullptr, 0, excuteFromJob); in ExecuteFromFile() 182 SourceTextModule::Instantiate(thread, moduleRecord); in CommonExecuteBuffer() 187 JSHandle<SourceTextModule> module = JSHandle<SourceTextModule>::Cast(moduleRecord); in CommonExecuteBuffer() 189 SourceTextModule::Evaluate(thread, module, buffer, size); in CommonExecuteBuffer()
|
| D | quick_fix_loader.h | 70 static bool CheckIsModuleMismatch(JSThread *thread, JSHandle<SourceTextModule> patchModule, 71 JSHandle<SourceTextModule> baseModule);
|
| D | module_data_extractor.h | 36 JSHandle<SourceTextModule> &moduleRecord);
|
| D | quick_fix_loader.cpp | 518 JSHandle<SourceTextModule> patchModule = in CheckIsInvalidPatch() 519 JSHandle<SourceTextModule>::Cast(moduleManager->ResolveModuleWithMerge(thread, in CheckIsInvalidPatch() 521 … JSHandle<SourceTextModule> baseModule = moduleManager->HostGetImportedModule(baseRecordName); in CheckIsInvalidPatch() 531 bool QuickFixLoader::CheckIsModuleMismatch(JSThread *thread, JSHandle<SourceTextModule> patchModule, in CheckIsModuleMismatch() 532 JSHandle<SourceTextModule> baseModule) in CheckIsModuleMismatch()
|
| D | literal_data_extractor.cpp | 271 … JSHandle<SourceTextModule> module = vm->GetModuleManager()->HostGetImportedModule(moduleName); in DefineMethodInLiteral()
|
| /arkcompiler/ets_runtime/ecmascript/builtins/ |
| D | builtins_promise_job.cpp | 195 JSHandle<SourceTextModule> moduleRecord = in DynamicImportJob() 198 moduleNamespace.Update(SourceTextModule::GetModuleNamespace(thread, moduleRecord)); in DynamicImportJob()
|
| /arkcompiler/ets_runtime/ecmascript/debugger/ |
| D | debugger_api.h | 36 class SourceTextModule; variable
|
| D | debugger_api.cpp | 352 …JSTaggedValue dictionary = SourceTextModule::Cast(currentModule.GetTaggedObject())->GetNameDictio… in GetModuleVariables() 360 JSTaggedValue localExportEntries = SourceTextModule::Cast( in GetModuleVariables()
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | object_factory.h | 145 class SourceTextModule; variable 582 JSHandle<SourceTextModule> NewSourceTextModule(); 584 JSHandle<ResolvedBinding> NewResolvedBindingRecord(const JSHandle<SourceTextModule> &module, 587 …JSHandle<ResolvedIndexBinding> NewResolvedIndexBindingRecord(const JSHandle<SourceTextModule> &mod…
|
| D | object_factory.cpp | 3867 JSHandle<SourceTextModule> ObjectFactory::NewSourceTextModule() in NewSourceTextModule() 3872 JSHandle<SourceTextModule> obj(thread_, header); in NewSourceTextModule() 3884 obj->SetDFSIndex(SourceTextModule::UNDEFINED_INDEX); in NewSourceTextModule() 3885 obj->SetDFSAncestorIndex(SourceTextModule::UNDEFINED_INDEX); in NewSourceTextModule() 3886 obj->SetEvaluationError(SourceTextModule::UNDEFINED_INDEX); in NewSourceTextModule() 3896 JSHandle<SourceTextModule> ecmaModule(undefinedValue); in NewResolvedBindingRecord() 3901 JSHandle<ResolvedBinding> ObjectFactory::NewResolvedBindingRecord(const JSHandle<SourceTextModule> … in NewResolvedBindingRecord() 3916 JSHandle<SourceTextModule> ecmaModule(undefinedValue); in NewResolvedIndexBindingRecord() 3921 …ndexBinding> ObjectFactory::NewResolvedIndexBindingRecord(const JSHandle<SourceTextModule> &module, in NewResolvedIndexBindingRecord()
|
| D | js_function.cpp | 712 …JSTaggedValue recordName = SourceTextModule::Cast(module.GetTaggedObject())->GetEcmaModuleRecordN… in GetRecordName()
|
| D | ecma_vm.cpp | 504 JSHandle<SourceTextModule> module = moduleManager_->HostGetImportedModule(moduleName); in InvokeEcmaEntrypoint()
|
| /arkcompiler/ets_runtime/ecmascript/napi/ |
| D | jsnapi.cpp | 667 JSHandle<ecmascript::SourceTextModule> ecmaModule = moduleManager->HostGetImportedModule(entry); in GetExportObject() 687 …JSHandle<ecmascript::SourceTextModule> ecmaModule = moduleManager->HostGetImportedModule(file.c_st… in GetExportObjectFromBuffer() 2772 ecmascript::SourceTextModule::Instantiate(thread, moduleRecord); in InitForConcurrentFunction() 2778 …JSHandle<ecmascript::SourceTextModule> module = JSHandle<ecmascript::SourceTextModule>::Cast(modul… in InitForConcurrentFunction() 2780 ecmascript::SourceTextModule::EvaluateForConcurrent(thread, module); in InitForConcurrentFunction()
|
| /arkcompiler/ets_runtime/ecmascript/mem/ |
| D | object_xray.h | 576 SourceTextModule::Cast(object)->VisitRangeSlot(visitor); in VisitObjectBody()
|
| /arkcompiler/ets_runtime/ecmascript/tests/ |
| D | dump_test.cpp | 1253 CHECK_DUMP_FIELDS(ModuleRecord::SIZE, SourceTextModule::SIZE, 12U); in HWTEST_F_L0() 1254 JSHandle<SourceTextModule> moduleSourceRecord = factory->NewSourceTextModule(); in HWTEST_F_L0()
|