Home
last modified time | relevance | path

Searched refs:cda (Results 1 – 25 of 26) sorted by relevance

12

/ark/runtime_core/assembler/tests/
Demitter_test.cpp78 panda_file::ClassDataAccessor cda(*pf, class_id); in TEST() local
79 ASSERT_EQ(cda.GetSuperClassId().GetOffset(), 0U); in TEST()
80 ASSERT_EQ(cda.GetAccessFlags(), ACC_PUBLIC); in TEST()
81 ASSERT_EQ(cda.GetFieldsNumber(), 0U); in TEST()
82 ASSERT_EQ(cda.GetMethodsNumber(), 1U); in TEST()
83 ASSERT_EQ(cda.GetIfacesNumber(), 0U); in TEST()
85 ASSERT_FALSE(cda.GetSourceFileId().has_value()); in TEST()
87 cda.EnumerateRuntimeAnnotations([](panda_file::File::EntityId) { ASSERT_TRUE(false); }); in TEST()
89 cda.EnumerateAnnotations([](panda_file::File::EntityId) { ASSERT_TRUE(false); }); in TEST()
91 cda.EnumerateFields([](panda_file::FieldDataAccessor &) { ASSERT_TRUE(false); }); in TEST()
[all …]
/ark/runtime_core/runtime/include/
Dvtable_builder-inl.h24 …BuilderImpl<SearchBySignature, OverridePred>::BuildForInterface(panda_file::ClassDataAccessor *cda) in BuildForInterface() argument
26 ASSERT(cda->IsInterface()); in BuildForInterface()
27 cda->EnumerateMethods([this](panda_file::MethodDataAccessor &mda) { in BuildForInterface()
69 …leBuilderImpl<SearchBySignature, OverridePred>::AddClassMethods(panda_file::ClassDataAccessor *cda, in AddClassMethods() argument
72 cda->EnumerateMethods([this, ctx](panda_file::MethodDataAccessor &mda) { in AddClassMethods()
127 void VTableBuilderImpl<SearchBySignature, OverridePred>::Build(panda_file::ClassDataAccessor *cda, … in Build() argument
130 if (cda->IsInterface()) { in Build()
131 return BuildForInterface(cda); in Build()
135 AddClassMethods(cda, ctx); in Build()
Dvtable_builder.h142 panda_file::ClassDataAccessor cda(mda_.GetPandaFile(), mda_.GetClassId()); in IsInterfaceMethod()
143 return cda.IsInterface(); in IsInterfaceMethod()
262 virtual void Build(panda_file::ClassDataAccessor *cda, Class *base_class, ITable itable,
283 …void Build(panda_file::ClassDataAccessor *cda, Class *base_class, ITable itable, ClassLinkerContex…
305 void BuildForInterface(panda_file::ClassDataAccessor *cda);
311 void AddClassMethods(panda_file::ClassDataAccessor *cda, ClassLinkerContext *ctx);
Dmethod.h176 panda_file::CodeDataAccessor cda(*panda_file_, code_id_); in GetNumVregs()
177 return cda.GetNumVregs(); in GetNumVregs()
185 panda_file::CodeDataAccessor cda(*panda_file_, code_id_); in GetCodeSize()
186 return cda.GetCodeSize(); in GetCodeSize()
194 panda_file::CodeDataAccessor cda(*panda_file_, code_id_); in GetInstructions()
195 return cda.GetInstructions(); in GetInstructions()
Dmethod-inl.h169 panda_file::CodeDataAccessor cda(*panda_file_, code_id_); in InitFrame()
170 auto num_vregs = cda.GetNumVregs(); in InitFrame()
268 panda_file::CodeDataAccessor cda(*panda_file_, mda.GetCodeId().value()); in EnumerateTryBlocks()
270 cda.EnumerateTryBlocks(callback); in EnumerateTryBlocks()
Dimtable_builder.h32 void Build(const panda_file::ClassDataAccessor *cda, ITable itable);
Dclass_linker.h325 …Class *LoadBaseClass(panda_file::ClassDataAccessor *cda, LanguageContext ctx, ClassLinkerContext *…
328 …std::optional<Span<Class *>> LoadInterfaces(panda_file::ClassDataAccessor *cda, ClassLinkerContext…
Druntime.h81 LanguageContext GetLanguageContext(panda_file::ClassDataAccessor *cda);
/ark/runtime_core/libpandafile/external/
Dfile_ext.cpp57 … panda::panda_file::ClassDataAccessor cda {*panda_file_, panda::panda_file::File::EntityId(id)}; in QueryMethodSymByOffset() local
58 cda.EnumerateMethods([&](panda::panda_file::MethodDataAccessor &mda) -> void { in QueryMethodSymByOffset()
86 … panda::panda_file::ClassDataAccessor cda {*panda_file_, panda::panda_file::File::EntityId(id)}; in QueryAllMethodSyms() local
87 cda.EnumerateMethods([&](panda::panda_file::MethodDataAccessor &mda) -> void { in QueryAllMethodSyms()
/ark/runtime_core/verification/job_queue/
Dcache.cpp440 …d AddAncestors(CacheOfRuntimeThings::CachedClass *cached_class, panda_file::ClassDataAccessor *cda, in AddAncestors() argument
443 auto *pf = &cda->GetPandaFile(); in AddAncestors()
445 cda->EnumerateInterfaces([&](auto entity_id) { in AddAncestors()
457 auto super_class_id = cda->GetSuperClassId(); in AddAncestors()
478 panda_file::ClassDataAccessor cda {*pf, entity_id}; in AddToCache() local
482 auto src_lang_opt = cda.GetSourceLang(); in AddToCache()
496 cached_class.flags = GetClassFlags(cda.GetAccessFlags()); in AddToCache()
503 cached_class.ancestors.reserve(cda.GetIfacesNumber() + 1); in AddToCache()
505 auto descriptor = cda.GetDescriptor(); in AddToCache()
511 AddAncestors(&cached_class, &cda, data); in AddToCache()
[all …]
/ark/js_runtime/ecmascript/jspandafile/
Djs_pandafile.cpp70 panda_file::ClassDataAccessor cda(*pf_, classId); in InitMethods() local
71 numMethods_ += cda.GetMethodsNumber(); in InitMethods()
Ddebug_info_extractor.cpp235 ClassDataAccessor cda(pandaFile, id); in Extract() local
237 auto sourceFileId = cda.GetSourceFileId(); in Extract()
239 cda.EnumerateMethods([&](MethodDataAccessor &mda) { in Extract()
/ark/runtime_core/runtime/
Dimtable_builder.cpp21 void IMTableBuilder::Build(const panda_file::ClassDataAccessor *cda, ITable itable) in Build() argument
23 if (cda->IsInterface() || itable.Size() == 0U) { in Build()
Dclass_linker.cpp629 Class *ClassLinker::LoadBaseClass(panda_file::ClassDataAccessor *cda, LanguageContext ctx, ClassLin… in LoadBaseClass() argument
632 auto base_class_id = cda->GetSuperClassId(); in LoadBaseClass()
639 auto &pf = cda->GetPandaFile(); in LoadBaseClass()
644 … << utf::Mutf8AsCString(pf.GetStringData(cda->GetClassId()).data) << "' in ctx " in LoadBaseClass()
652 std::optional<Span<Class *>> ClassLinker::LoadInterfaces(panda_file::ClassDataAccessor *cda, in LoadInterfaces() argument
657 size_t ifaces_num = cda->GetIfacesNumber(); in LoadInterfaces()
666 auto id = cda->GetInterfaceId(i); in LoadInterfaces()
667 auto &pf = cda->GetPandaFile(); in LoadInterfaces()
671 … << "' of class '" << utf::Mutf8AsCString(pf.GetStringData(cda->GetClassId()).data) in LoadInterfaces()
Dmethod.cpp339 panda_file::CodeDataAccessor cda(*panda_file_, mda.GetCodeId().value()); in FindCatchBlock() local
343cda.EnumerateTryBlocks([&pc_offset, cls, pc, this](panda_file::CodeDataAccessor::TryBlock &try_blo… in FindCatchBlock()
450 panda_file::ClassDataAccessor cda(*panda_file_, GetClass()->GetFileId()); in GetClassSourceFile() local
451 auto source_file_id = cda.GetSourceFileId(); in GetClassSourceFile()
Druntime.cpp176 LanguageContext Runtime::GetLanguageContext(panda_file::ClassDataAccessor *cda) in GetLanguageContext() argument
178 auto res = cda->GetSourceLang(); in GetLanguageContext()
764 panda_file::ClassDataAccessor cda(*pf, class_id); in ExtractLanguageContext() local
765 LanguageContext ctx = GetLanguageContext(&cda); in ExtractLanguageContext()
767cda.EnumerateMethods([this, &pf, method_name_bytes, &found, &ctx](panda_file::MethodDataAccessor &… in ExtractLanguageContext()
/ark/runtime_core/verification/verifier/
Dverifier.cpp76 panda_file::ClassDataAccessor cda(*file, class_id); in VerifierProcessFile() local
77 ctx = runtime.GetLanguageContext(&cda); in VerifierProcessFile()
/ark/runtime_core/libpandafile/
Ddebug_info_extractor.cpp252 ClassDataAccessor cda(panda_file, id); in Extract() local
254 auto source_file_id = cda.GetSourceFileId(); in Extract()
256 cda.EnumerateMethods([&](MethodDataAccessor &mda) { in Extract()
/ark/runtime_core/runtime/tests/
Ddebugger_test.cpp95 panda_file::ClassDataAccessor cda(*file_ptr, class_id); in TEST_F() local
99 cda.EnumerateMethods([&](panda_file::MethodDataAccessor &mda) { in TEST_F()
/ark/js_runtime/ecmascript/ts_types/
Dts_type_table.cpp166 panda_file::ClassDataAccessor cda(pf, classId); in GetFileId() local
167 cda.EnumerateMethods([&fileId, &pf, &sd](panda_file::MethodDataAccessor &mda) { in GetFileId()
/ark/js_runtime/ecmascript/class_linker/
Dpanda_file_translator.cpp81 panda_file::ClassDataAccessor cda(*pf, classId); in TranslateClasses() local
82 cda.EnumerateMethods([jsPandaFile, &translatedCode, &sd, methods, &methodIdx, pf, &infoList] in TranslateClasses()
/ark/runtime_core/runtime/interpreter/
Dinterpreter-inl.h2970 panda_file::CodeDataAccessor cda(*method->GetPandaFile(), method->GetCodeId()); in CallInterpreter()
2971 auto num_vregs = cda.GetNumVregs(); in CallInterpreter()
2972 auto *instructions = cda.GetInstructions(); in CallInterpreter()
3026 panda_file::CodeDataAccessor cda(*method->GetPandaFile(), method->GetCodeId()); in CallInterpreterStackless()
3027 auto num_vregs = cda.GetNumVregs(); in CallInterpreterStackless()
3028 auto *instructions = cda.GetInstructions(); in CallInterpreterStackless()
/ark/runtime_core/disassembler/
Ddisassembler.cpp1423 panda_file::ClassDataAccessor cda(*file_, class_id); in GetClassLanguage() local
1424 return PFLangToPandasmLang(cda.GetSourceLang()); in GetClassLanguage()
/ark/js_runtime/ecmascript/compiler/
Dbytecode_circuit_builder.cpp157 panda_file::CodeDataAccessor cda(file, mda.GetCodeId().value()); in CollectTryCatchBlockInfo() local
158 cda.EnumerateTryBlocks([method, &byteCodeCurPrePc, &bytecodeBlockInfos, &byteCodeException]( in CollectTryCatchBlockInfo()
/ark/js_runtime/ecmascript/interpreter/
Dinterpreter-inl.h3724 panda_file::CodeDataAccessor cda(*pandaFile, mda.GetCodeId().value()); in FindCatchBlock()
3727 cda.EnumerateTryBlocks([&pcOffset, pc](panda_file::CodeDataAccessor::TryBlock &try_block) { in FindCatchBlock()

12