/ark/runtime_core/assembler/tests/ |
D | emitter_test.cpp | 78 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/ |
D | vtable_builder-inl.h | 24 …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()
|
D | vtable_builder.h | 142 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);
|
D | method.h | 176 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()
|
D | method-inl.h | 169 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()
|
D | imtable_builder.h | 32 void Build(const panda_file::ClassDataAccessor *cda, ITable itable);
|
D | class_linker.h | 325 …Class *LoadBaseClass(panda_file::ClassDataAccessor *cda, LanguageContext ctx, ClassLinkerContext *… 328 …std::optional<Span<Class *>> LoadInterfaces(panda_file::ClassDataAccessor *cda, ClassLinkerContext…
|
D | runtime.h | 81 LanguageContext GetLanguageContext(panda_file::ClassDataAccessor *cda);
|
/ark/runtime_core/libpandafile/external/ |
D | file_ext.cpp | 57 … 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/ |
D | cache.cpp | 440 …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/ |
D | js_pandafile.cpp | 70 panda_file::ClassDataAccessor cda(*pf_, classId); in InitMethods() local 71 numMethods_ += cda.GetMethodsNumber(); in InitMethods()
|
D | debug_info_extractor.cpp | 235 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/ |
D | imtable_builder.cpp | 21 void IMTableBuilder::Build(const panda_file::ClassDataAccessor *cda, ITable itable) in Build() argument 23 if (cda->IsInterface() || itable.Size() == 0U) { in Build()
|
D | class_linker.cpp | 629 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()
|
D | method.cpp | 339 panda_file::CodeDataAccessor cda(*panda_file_, mda.GetCodeId().value()); in FindCatchBlock() local 343 …cda.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()
|
D | runtime.cpp | 176 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() 767 …cda.EnumerateMethods([this, &pf, method_name_bytes, &found, &ctx](panda_file::MethodDataAccessor &… in ExtractLanguageContext()
|
/ark/runtime_core/verification/verifier/ |
D | verifier.cpp | 76 panda_file::ClassDataAccessor cda(*file, class_id); in VerifierProcessFile() local 77 ctx = runtime.GetLanguageContext(&cda); in VerifierProcessFile()
|
/ark/runtime_core/libpandafile/ |
D | debug_info_extractor.cpp | 252 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/ |
D | debugger_test.cpp | 95 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/ |
D | ts_type_table.cpp | 166 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/ |
D | panda_file_translator.cpp | 81 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/ |
D | interpreter-inl.h | 2970 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/ |
D | disassembler.cpp | 1423 panda_file::ClassDataAccessor cda(*file_, class_id); in GetClassLanguage() local 1424 return PFLangToPandasmLang(cda.GetSourceLang()); in GetClassLanguage()
|
/ark/js_runtime/ecmascript/compiler/ |
D | bytecode_circuit_builder.cpp | 157 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/ |
D | interpreter-inl.h | 3724 panda_file::CodeDataAccessor cda(*pandaFile, mda.GetCodeId().value()); in FindCatchBlock() 3727 cda.EnumerateTryBlocks([&pcOffset, pc](panda_file::CodeDataAccessor::TryBlock &try_block) { in FindCatchBlock()
|