/arkcompiler/runtime_core/static_core/libpandafile/ |
H A D | file_reader.h | 89 MethodItem *methodItem); 90 void SetMethodCodeIfPresent(std::optional<File::EntityId> &codeId, MethodItem *methodItem, 93 MethodItem *CreateMethodItem(ClassItem *cls, File::EntityId methodId); 108 void InstUpdateId(CodeItem *codeItem, MethodItem *methodItem, std::map<BaseItem *, File::EntityId> &reverseDone); 191 void InstCheckByFlags(BytecodeInstruction &inst, MethodItem *methodItem,
|
H A D | file_items.h | 894 class MethodItem : public BaseMethodItem { class in ark::panda_file::ClassTag::MethodTag::FieldTag 896 MethodItem(ClassItem *cls, StringItem *name, ProtoItem *proto, uint32_t accessFlags, 899 ~MethodItem() override = default; 901 DEFAULT_MOVE_SEMANTIC(MethodItem); 902 DEFAULT_COPY_SEMANTIC(MethodItem); 1130 MethodItem *AddMethod(Args... args) in AddMethod() 1133 return methods_.insert(std::make_unique<MethodItem>(this, std::forward<Args>(args)...))->get(); in AddMethod() 1238 bool operator()(const StringItem *m1, const std::unique_ptr<MethodItem> &m2) const in operator ()() 1243 bool operator()(const std::unique_ptr<MethodItem> &m1, const StringItem *str2) const in operator ()() 1248 bool operator()(const std::unique_ptr<MethodItem> [all...] |
H A D | file_items.cpp | 398 ParamAnnotationsItem::ParamAnnotationsItem(MethodItem *method, bool isRuntimeAnnotations) in ParamAnnotationsItem() 542 MethodItem::MethodItem(ClassItem *cls, StringItem *name, ProtoItem *proto, uint32_t accessFlags, in MethodItem() function in ark::panda_file::MethodItem 548 size_t MethodItem::CalculateSize() const in CalculateSize() 588 bool MethodItem::WriteRuntimeAnnotations(Writer *writer) in WriteRuntimeAnnotations() 605 bool MethodItem::WriteTypeAnnotations(Writer *writer) in WriteTypeAnnotations() 622 bool MethodItem::WriteTaggedData(Writer *writer) in WriteTaggedData() 671 bool MethodItem::Write(Writer *writer) in Write()
|
H A D | file_reader.cpp | 591 MethodItem *methodItem) in GetCatchTypeItem() 607 void FileReader::SetMethodCodeIfPresent(std::optional<File::EntityId> &codeId, MethodItem *methodItem, in SetMethodCodeIfPresent() 652 MethodItem *FileReader::CreateMethodItem(ClassItem *cls, File::EntityId methodId) in CreateMethodItem() 656 return static_cast<MethodItem *>(it->second); in CreateMethodItem() 672 return static_cast<MethodItem *>(itCheck->second); in CreateMethodItem() 1091 void FileReader::InstCheckByFlags(BytecodeInstruction &inst, MethodItem *methodItem, in InstCheckByFlags() 1141 auto *methodItem = static_cast<MethodItem *>(paramItem); in UpdateCodeAndDebugInfoDependencies() 1165 void FileReader::InstUpdateId(CodeItem *codeItem, MethodItem *methodItem, in InstUpdateId() 1242 auto *methodItem = static_cast<MethodItem *>(paramItem); in ComputeLayoutAndUpdateIndices() 1270 auto *methodItem = static_cast<MethodItem *>(paramIte in ComputeLayoutAndUpdateIndices() [all...] |
H A D | file_item_container.cpp | 282 void ItemContainer::DeduplicateDebugInfo(MethodItem *method, ItemDeduper *debugInfoDeduper, in DeduplicateDebugInfo() 299 static void DeduplicateCode(MethodItem *method, ItemDeduper *codeDeduper) in DeduplicateCode() 328 auto *methodItem = static_cast<MethodItem *>(paramItem); in DeduplicateCodeAndDebugInfo() 408 auto *methodItem = static_cast<MethodItem *>(paramItem); in DeduplicateAnnotations()
|
H A D | file_item_container.h | 104 static_assert(!std::is_same_v<T, MethodItem>, "Use ClassItem instance to create MethodItem"); in CreateItem() 200 void DeduplicateDebugInfo(MethodItem *method, ItemDeduper *debugInfoDeduper, ItemDeduper *lineNumberProgramDeduper);
|
/arkcompiler/runtime_core/static_core/static_linker/ |
H A D | linker_context.h | 38 panda_file::MethodItem *mi; 93 panda_file::MethodItem *omi; 94 panda_file::MethodItem *nmi; 190 void MergeMethod(const panda_file::FileReader *reader, panda_file::ClassItem *clz, panda_file::MethodItem *oi); 204 std::pair<bool, bool> UpdateDebugInfo(panda_file::MethodItem *ni, panda_file::MethodItem *oi); 206 void CreateTryBlocks(panda_file::MethodItem *ni, panda_file::CodeItem *nci, panda_file::MethodItem *oi, 304 std::variant<bool, panda_file::MethodItem *> TryFindMethod(panda_file::BaseClassItem *klass,
|
H A D | linker_context.cpp | 197 MergeMethod(reader, ni, reinterpret_cast<panda_file::MethodItem *>(mi)); in MergeClass() 221 void Context::MergeMethod(const panda_file::FileReader *reader, panda_file::ClassItem *clz, panda_file::MethodItem *oi) in MergeMethod() 269 std::pair<bool, bool> Context::UpdateDebugInfo(panda_file::MethodItem *ni, panda_file::MethodItem *oi) in UpdateDebugInfo() 301 void Context::CreateTryBlocks(panda_file::MethodItem *ni, panda_file::CodeItem *nci, in CreateTryBlocks() 302 [[maybe_unused]] panda_file::MethodItem *oi, panda_file::CodeItem *oci) in CreateTryBlocks() 334 std::variant<bool, panda_file::MethodItem *> Context::TryFindMethod(panda_file::BaseClassItem *klass, in TryFindMethod() 370 if (std::holds_alternative<panda_file::MethodItem *>(res)) { in TryFindMethod() 414 ASSERT(std::holds_alternative<panda_file::MethodItem *>(res)); in MergeForeignMethod() 415 auto meth = std::get<panda_file::MethodItem *>(re in MergeForeignMethod() [all...] |
H A D | linker_code_parser_context.cpp | 127 auto meth = i.GetValue<panda_file::MethodItem *>(); in ApplyLiteralArrayChange() 131 newIts.emplace_back(static_cast<panda_file::MethodItem *>(iter->second)); in ApplyLiteralArrayChange()
|
/arkcompiler/runtime_core/libpandafile/ |
H A D | file_reader.h | 76 MethodItem *CreateMethodItem(ClassItem *cls, File::EntityId method_id); 88 void EnumerateBlocks(MethodDataAccessor method_acc, MethodItem *method_item); 92 void AddIndexDependencyInstFlag(CodeItem *code_item, MethodItem *method_item, 94 void UpdateIdInstFlag(CodeItem *code_item, MethodItem *method_item,
|
H A D | file_items.h | 881 class MethodItem : public BaseMethodItem { class in panda::panda_file::ClassTag::MethodTag::FieldTag::FunctionKind::ItemRank 883 MethodItem(ClassItem *cls, StringItem *name, ProtoItem *proto, uint32_t access_flags, 886 ~MethodItem() override = default; 888 DEFAULT_MOVE_SEMANTIC(MethodItem); 889 DEFAULT_COPY_SEMANTIC(MethodItem); 1101 MethodItem *AddMethod(Args... args) in AddMethod() 1104 return methods_.insert(std::make_unique<MethodItem>(this, std::forward<Args>(args)..., container_))->get(); in AddMethod() 1174 bool operator()(const std::unique_ptr<MethodItem> &m1, const std::unique_ptr<MethodItem> &m2) const in operator ()() 1201 std::multiset<std::unique_ptr<MethodItem>, MethodCompByNam [all...] |
H A D | file_items.cpp | 441 ParamAnnotationsItem::ParamAnnotationsItem(MethodItem *method, bool is_runtime_annotations) in ParamAnnotationsItem() 601 MethodItem::MethodItem(ClassItem *cls, StringItem *name, ProtoItem *proto, uint32_t access_flags, in MethodItem() function in panda::panda_file::MethodItem 611 size_t MethodItem::CalculateSize() const in CalculateSize() 647 bool MethodItem::WriteRuntimeAnnotations(Writer *writer) in WriteRuntimeAnnotations() 664 bool MethodItem::WriteTypeAnnotations(Writer *writer) in WriteTypeAnnotations() 681 bool MethodItem::WriteTaggedData(Writer *writer) in WriteTaggedData() 724 bool MethodItem::Write(Writer *writer) in Write()
|
H A D | file_reader.cpp | 620 void FileReader::EnumerateBlocks(MethodDataAccessor method_acc, MethodItem *method_item) in EnumerateBlocks() 659 MethodItem *FileReader::CreateMethodItem(ClassItem *cls, File::EntityId method_id) in CreateMethodItem() 664 return static_cast<MethodItem *>(it->second); in CreateMethodItem() 682 return static_cast<MethodItem *>(it_check->second); in CreateMethodItem() 1280 void AddIndexDependencyInstFlag(CodeItem *code_item, MethodItem *method_item, in AddIndexDependencyInstFlag() 1336 auto *method_item = static_cast<MethodItem *>(param_item); in UpdateCodeAndDebugInfoDependencies() 1354 void UpdateIdInstFlag(CodeItem *code_item, MethodItem *method_item, in UpdateIdInstFlag() 1429 auto *method_item = static_cast<MethodItem *>(param_item); in ComputeLayoutAndUpdateIndices() 1455 auto *method_item = static_cast<MethodItem *>(param_item); in ComputeLayoutAndUpdateIndices()
|
H A D | file_item_container.h | 86 static_assert(!std::is_same_v<T, MethodItem>, "Use ClassItem instance to create MethodItem"); in CreateItem() 200 void DeduplicateDebugInfo(MethodItem *method, ItemDeduper *debug_info_deduper,
|
/arkcompiler/runtime_core/static_core/assembler/ |
H A D | assembly-emitter.h | 138 static void SetCodeAndDebugInfo(panda_file::ItemContainer *items, panda_file::MethodItem *method, 140 static void SetMethodSourceLang(const Program &program, panda_file::MethodItem *method, const Function &func, 144 panda_file::MethodItem *method, const Function &func); 150 const std::vector<uint8_t> *bytes, const panda_file::MethodItem *method,
|
H A D | assembly-function.h | 135 bool Emit(BytecodeEmitter &emitter, panda_file::MethodItem *method, 164 panda_file::MethodItem *method, const std::unordered_map<std::string, panda_file::BaseClassItem *> &classItems,
|
H A D | assembly-emitter.cpp | 46 using ark::panda_file::MethodItem; 248 auto methodItem = static_cast<ark::panda_file::MethodItem *>(Find(methods, name)); in CreateLiteralItem() 703 static void AddBytecodeIndexDependencies(MethodItem *method, const Ins &insn, in AddBytecodeIndexDependencies() 718 static void AddBytecodeIndexDependencies(MethodItem *method, const Function &func, in AddBytecodeIndexDependencies() 1275 void AsmEmitter::SetCodeAndDebugInfo(ItemContainer *items, MethodItem *method, const Function &func, bool emitDebugInfo) in SetCodeAndDebugInfo() 1304 void AsmEmitter::SetMethodSourceLang(const Program &program, MethodItem *method, const Function &func, in SetMethodSourceLang() 1321 const AsmEmitter::AsmEntityCollections &entities, MethodItem *method, in AddMethodAndParamsAnnotations() 1364 auto *method = static_cast<MethodItem *>(Find(entities.methodItems, name)); in MakeFunctionDebugInfoAndAnnotations() 1376 if (func.profileSize <= MethodItem::MAX_PROFILE_SIZE) { in MakeFunctionDebugInfoAndAnnotations() 1410 const MethodItem *metho in EmitDebugInfo() [all...] |
/arkcompiler/runtime_core/assembler/ |
H A D | assembly-emitter.h | 134 static void SetCodeAndDebugInfo(panda_file::ItemContainer *items, panda_file::MethodItem *method, 138 panda_file::MethodItem *method, const Function &func); 143 const std::vector<uint8_t> *bytes, const panda_file::MethodItem *method,
|
H A D | assembly-function.h | 155 bool Emit(BytecodeEmitter &emitter, panda_file::MethodItem *method, 191 panda_file::MethodItem *method, const std::unordered_map<std::string, panda_file::BaseClassItem *> &class_items,
|
H A D | assembly-emitter.cpp | 50 using panda::panda_file::MethodItem; 200 auto method_item = static_cast<panda::panda_file::MethodItem *>(Find(entities.method_items, name)); in CreateLiteralItem() 518 static bool AddDependencyByIndex(MethodItem *method, const Ins &insn, in AddDependencyByIndex() 533 static bool AddBytecodeIndexDependencies(MethodItem *method, const Function &func, in AddBytecodeIndexDependencies() 1150 void AsmEmitter::SetCodeAndDebugInfo(ItemContainer *items, MethodItem *method, const Function &func, in SetCodeAndDebugInfo() 1181 const AsmEmitter::AsmEntityCollections &entities, MethodItem *method, in AddMethodAndParamsAnnotations() 1222 auto *method = static_cast<MethodItem *>(Find(entities.method_items, name)); in MakeFunctionDebugInfoAndAnnotations() 1264 const MethodItem *method, const Function &func, const std::string &name, in EmitDebugInfo() 1307 auto *method = static_cast<MethodItem *>(Find(entities.method_items, name)); in EmitFunctions() 1592 bool Function::Emit(BytecodeEmitter &emitter, panda_file::MethodItem *metho [all...] |
/arkcompiler/runtime_core/libpandafile/tests/ |
H A D | debug_info_extractor_test.cpp | 52 MethodItem *method_item = class_item->AddMethod(method_name, proto_item, ACC_PUBLIC | ACC_STATIC, params); in PreparePandaFile() 80 MethodItem *method_item_bar = in PreparePandaFile() 103 MethodItem *method_item_baz = class_item->AddMethod(method_name_baz, proto_item_baz, ACC_PUBLIC, params_baz); in PreparePandaFile()
|
H A D | file_item_container_test.cpp | 317 void TestMethods(ClassDataAccessor class_data_accessor, MethodItem* method_item, ClassItem* class_item, in TestMethods() 377 MethodItem *method_item = class_item->AddMethod(method_name, proto_item, ACC_PUBLIC | ACC_STATIC, params); in HWTEST() 455 MethodItem *method_item = class_item->AddMethod(method_name, proto_item, ACC_PUBLIC | ACC_STATIC, params); in HWTEST() 515 void TestProtoDataAccessor(MemoryWriter& mem_writer, ClassItem* class_item, MethodItem* method_item, in TestProtoDataAccessor() 598 MethodItem *method_item = class_item->AddMethod(method_name, proto_item, ACC_PUBLIC | ACC_STATIC, params); in TestProtos() 632 MethodItem *method_item = class_item->AddMethod(method_name, proto_item, ACC_PUBLIC | ACC_STATIC, params); in HWTEST() 873 MethodItem *method_item_1 = class_item_a->AddMethod(method_name_1, proto_item_1, ACC_PUBLIC | ACC_STATIC, params_1); in CreateItems() 885 MethodItem *method_item_2 = class_item_b->AddMethod(method_name_2, proto_item_2, ACC_PUBLIC | ACC_STATIC, params_2); in CreateItems() 1113 auto *method_item = static_cast<panda_file::MethodItem *>(method); in PerformTests() 1228 MethodItem *method_ite in HWTEST() [all...] |
H A D | pgo_test.cpp | 35 MethodItem *method_item_1 = class_item_a->AddMethod(method_name_1, proto_item_1, ACC_PUBLIC | ACC_STATIC, params_1); in CreateItems()
|
/arkcompiler/runtime_core/static_core/libpandafile/tests/ |
H A D | debug_info_extractor_test.cpp | 55 MethodItem *methodItem = classItem->AddMethod(methodName, protoItem, ACC_PUBLIC | ACC_STATIC, params); in PreparePandaFile() 83 MethodItem *methodItemBar = classItem->AddMethod(methodNameBar, protoItemBar, ACC_PUBLIC | ACC_STATIC, paramsBar); in PreparePandaFile() 105 MethodItem *methodItemBaz = classItem->AddMethod(methodNameBaz, protoItemBaz, ACC_PUBLIC, paramsBaz); in PreparePandaFile()
|
H A D | file_item_container_test.cpp | 201 MethodItem *methodItem = classItem->AddMethod(methodName, protoItem, ACC_PUBLIC | ACC_STATIC, params); in TEST() 361 MethodItem *methodItem = classItem->AddMethod(methodName, protoItem, ACC_PUBLIC | ACC_STATIC, params); in TEST() 459 MethodItem *methodItem = classItem->AddMethod(methodName, protoItem, ACC_PUBLIC | ACC_STATIC, params); in TestProtos() 537 MethodItem *methodItem = classItem->AddMethod(methodName, protoItem, ACC_PUBLIC | ACC_STATIC, params); in TEST() 764 MethodItem *methodItem1 = classItemA->AddMethod(methodName1, protoItem1, ACC_PUBLIC | ACC_STATIC, params1); in TEST() 776 MethodItem *methodItem2 = classItemB->AddMethod(methodName2, protoItem2, ACC_PUBLIC | ACC_STATIC, params2); in TEST() 1015 auto *methodItem = static_cast<panda_file::MethodItem *>(method); in TEST()
|