/arkcompiler/runtime_core/static_core/plugins/ets/runtime/napi/ |
H A D | ets_napi.h | 635 ets_object CallObjectMethod(ets_object obj, ets_method method_id, ...) in CallObjectMethod() 638 va_start(args, method_id); in CallObjectMethod() 639 ets_object res = native_interface->CallObjectMethodList(this, obj, method_id, args); in CallObjectMethod() 643 ets_object CallObjectMethodList(ets_object obj, ets_method method_id, va_list args) in CallObjectMethodList() 645 return native_interface->CallObjectMethodList(this, obj, method_id, args); in CallObjectMethodList() 647 ets_object CallObjectMethodArray(ets_object obj, ets_method method_id, const ets_value *args) in CallObjectMethodArray() 649 return native_interface->CallObjectMethodArray(this, obj, method_id, args); in CallObjectMethodArray() 651 ets_boolean CallBooleanMethod(ets_object obj, ets_method method_id, ...) in CallBooleanMethod() 654 va_start(args, method_id); in CallBooleanMethod() 655 ets_boolean res = native_interface->CallBooleanMethodList(this, obj, method_id, arg in CallBooleanMethod() [all...] |
/arkcompiler/runtime_core/libpandafile/ |
H A D | method_data_accessor.cpp | 20 MethodDataAccessor::MethodDataAccessor(const File &panda_file, File::EntityId method_id) in MethodDataAccessor() argument 21 : panda_file_(panda_file), method_id_(method_id) in MethodDataAccessor() 23 auto sp = panda_file_.GetSpanFromId(method_id); in MethodDataAccessor() 28 class_off_ = panda_file.ResolveClassIndex(method_id, class_idx_).GetOffset(); in MethodDataAccessor() 30 proto_off_ = panda_file.ResolveProtoIndex(method_id, proto_idx_).GetOffset(); in MethodDataAccessor() 36 is_external_ = panda_file_.IsExternal(method_id); in MethodDataAccessor()
|
H A D | debug_info_extractor.h | 66 const LineNumberTable &GetLineNumberTable(File::EntityId method_id) const; 68 const ColumnNumberTable &GetColumnNumberTable(File::EntityId method_id) const; 70 const LocalVariableTable &GetLocalVariableTable(File::EntityId method_id) const; 72 const std::vector<ParamInfo> &GetParameterInfo(File::EntityId method_id) const; 74 const char *GetSourceFile(File::EntityId method_id) const; 76 const char *GetSourceCode(File::EntityId method_id) const; 86 File::EntityId method_id; member
|
H A D | debug_info_extractor.cpp | 260 File::EntityId method_id = mda.GetMethodId(); in Extract() 266 ASSERT(methods_.find(method_id.GetOffset()) == methods_.end()); in Extract() 267 methods_.emplace(method_id.GetOffset(), in Extract() 268 MethodDebugInfo {source_file, source_code, method_id, handler.GetLineNumberTable(), in Extract() 275 const LineNumberTable &DebugInfoExtractor::GetLineNumberTable(File::EntityId method_id) const in GetLineNumberTable() 277 auto it = methods_.find(method_id.GetOffset()); in GetLineNumberTable() 286 const ColumnNumberTable &DebugInfoExtractor::GetColumnNumberTable(File::EntityId method_id) const in GetColumnNumberTable() 288 auto it = methods_.find(method_id.GetOffset()); in GetColumnNumberTable() 297 const LocalVariableTable &DebugInfoExtractor::GetLocalVariableTable(File::EntityId method_id) const in GetLocalVariableTable() 299 auto it = methods_.find(method_id in GetLocalVariableTable() [all...] |
H A D | method_data_accessor-inl.h | 27 inline File::EntityId MethodDataAccessor::GetNameId(const File &panda_file, File::EntityId method_id) in GetNameId() argument 30 auto sp = panda_file.GetSpanFromId(method_id).SubSpan(IDX_SIZE * SKIP_NUM); in GetNameId() 35 inline panda_file::File::StringData MethodDataAccessor::GetName(const File &panda_file, File::EntityId method_id) in GetName() argument 37 return panda_file.GetStringData(GetNameId(panda_file, method_id)); in GetName() 41 inline File::EntityId MethodDataAccessor::GetProtoId(const File &panda_file, File::EntityId method_id) in GetProtoId() argument 44 auto sp = panda_file.GetSpanFromId(method_id).SubSpan(IDX_SIZE * SKIP_NUM); in GetProtoId() 46 return File::EntityId(panda_file.ResolveProtoIndex(method_id, proto_idx_).GetOffset()); in GetProtoId() 50 inline File::EntityId MethodDataAccessor::GetClassId(const File &panda_file, File::EntityId method_id) in GetClassId() argument 52 auto sp = panda_file.GetSpanFromId(method_id); in GetClassId() 54 return File::EntityId(panda_file.ResolveClassIndex(method_id, class_id in GetClassId() [all...] |
H A D | method_data_accessor.h | 28 MethodDataAccessor(const File &panda_file, File::EntityId method_id); 33 static File::EntityId GetNameId(const File &panda_file, File::EntityId method_id); 36 static panda_file::File::StringData GetName(const File &panda_file, File::EntityId method_id); 39 static File::EntityId GetProtoId(const File &panda_file, File::EntityId method_id); 42 static File::EntityId GetClassId(const File &panda_file, File::EntityId method_id);
|
H A D | file_reader.h | 76 MethodItem *CreateMethodItem(ClassItem *cls, File::EntityId method_id); 77 ForeignMethodItem *CreateForeignMethodItem(BaseClassItem *fcls, File::EntityId method_id); 149 inline BaseItem *CreateGenericMethodItem(BaseClassItem *class_item, File::EntityId method_id) in CreateGenericMethodItem() argument 151 if (file_->IsExternal(method_id)) { in CreateGenericMethodItem() 152 return CreateForeignMethodItem(class_item, method_id); in CreateGenericMethodItem() 154 return CreateMethodItem(static_cast<ClassItem *>(class_item), method_id); in CreateGenericMethodItem()
|
H A D | file_reader.cpp | 166 File::EntityId method_id(helpers::Read<sizeof(uint32_t)>(&sp)); in CreateLiteralArrayItem() 167 MethodDataAccessor method_acc(*file_, method_id); in CreateLiteralArrayItem() 170 literal_array.emplace_back(CreateMethodItem(class_item, method_id)); in CreateLiteralArrayItem() 268 const File::EntityId method_id {scalar.Get<uint32_t>()}; in CreateAnnotationItem() 269 MethodDataAccessor method_acc(*file_, method_id); in CreateAnnotationItem() 271 elem_value_item = container_.GetOrCreateIdValueItem(CreateGenericMethodItem(cls_item, method_id)); in CreateAnnotationItem() 452 const File::EntityId method_id {array.Get<uint32_t>(j)}; in CreateAnnotationItem() 453 MethodDataAccessor method_acc(*file_, method_id); in CreateAnnotationItem() 455 items.emplace_back(ScalarValueItem(CreateGenericMethodItem(cls_item, method_id))); in CreateAnnotationItem() 641 File::EntityId catch_cls_id = file_->ResolveClassIndex(method_id, catch_bloc in EnumerateBlocks() 659 CreateMethodItem(ClassItem *cls, File::EntityId method_id) CreateMethodItem() argument 815 CreateForeignMethodItem(BaseClassItem *fcls, File::EntityId method_id) CreateForeignMethodItem() argument 1291 File::EntityId method_id = reverse_done.find(method_item)->second; AddIndexDependencyInstFlag() local 1299 File::EntityId method_id = reverse_done.find(method_item)->second; AddIndexDependencyInstFlag() local 1307 File::EntityId method_id = reverse_done.find(method_item)->second; AddIndexDependencyInstFlag() local 1365 File::EntityId method_id = reverse_done.find(method_item)->second; UpdateIdInstFlag() local 1374 File::EntityId method_id = reverse_done.find(method_item)->second; UpdateIdInstFlag() local 1383 File::EntityId method_id = reverse_done.find(method_item)->second; UpdateIdInstFlag() local [all...] |
H A D | index_accessor.h | 27 IndexAccessor(const File &pf, File::EntityId method_id) in IndexAccessor() argument 30 auto sp = pf.GetSpanFromId(method_id).SubSpan(IDX_SIZE * (SKIP_NUM - 1) + ID_SIZE); in IndexAccessor()
|
/arkcompiler/runtime_core/disassembler/tests/ |
H A D | disassembler_imm_tests.cpp | 24 panda_file::File::EntityId method_id {0x00}; 33 const panda::pandasm::Ins &ins = disasm.BytecodeInstructionToPandasmInstruction(inst, method_id); in TEST() 42 const panda::pandasm::Ins &ins = disasm.BytecodeInstructionToPandasmInstruction(inst, method_id); in TEST() 51 const panda::pandasm::Ins &ins = disasm.BytecodeInstructionToPandasmInstruction(inst, method_id); in TEST() 60 const panda::pandasm::Ins &ins = disasm.BytecodeInstructionToPandasmInstruction(inst, method_id); in TEST() 72 const panda::pandasm::Ins &ins = disasm.BytecodeInstructionToPandasmInstruction(inst, method_id); in TEST() 81 const panda::pandasm::Ins &ins = disasm.BytecodeInstructionToPandasmInstruction(inst, method_id); in TEST() 90 const panda::pandasm::Ins &ins = disasm.BytecodeInstructionToPandasmInstruction(inst, method_id); in TEST() 100 const panda::pandasm::Ins &ins = disasm.BytecodeInstructionToPandasmInstruction(inst, method_id); in TEST()
|
/arkcompiler/runtime_core/libpandafile/tests/ |
H A D | debug_info_extractor_test.cpp | 271 File::EntityId method_id, size_t offset) in GetLocalVariableInfoWrapper() 273 std::vector<panda_file::LocalVariableInfo> variables = extractor.GetLocalVariableTable(method_id); in GetLocalVariableInfoWrapper() 284 static SourcePairLocation GetSourcePairLocationWrapper(DebugInfoExtractor extractor, File::EntityId method_id, in GetSourcePairLocationWrapper() argument 287 panda_file::LineNumberTable line_table = extractor.GetLineNumberTable(method_id); in GetSourcePairLocationWrapper() 297 return SourcePairLocation {extractor.GetSourceFile(method_id), line.value()}; in GetSourcePairLocationWrapper() 335 auto [method_id, bytecode_offset] = GetBreakpointAddressWrapper(extractor, SourcePairLocation {SOURCE_FILE, 6}); in HWTEST_F() 336 ASSERT_TRUE(method_id.IsValid()); in HWTEST_F() 339 auto source_location = GetSourcePairLocationWrapper(extractor, method_id, 2); in HWTEST_F() 343 auto vars = GetLocalVariableInfoWrapper(extractor, method_id, 4); in HWTEST_F() 359 auto method_id in HWTEST_F() local 270 GetLocalVariableInfoWrapper(DebugInfoExtractor extractor, File::EntityId method_id, size_t offset) GetLocalVariableInfoWrapper() argument 374 auto method_id = GetBreakpointAddressWrapper(extractor, SourcePairLocation {SOURCE_FILE, 16}).first; HWTEST_F() local [all...] |
/arkcompiler/runtime_core/verifier/ |
H A D | verifier.cpp | 103 const panda_file::File::EntityId method_id = panda_file::File::EntityId(id); in VerifyRegisterIndex() local 104 panda_file::MethodDataAccessor method_accessor {*file_, method_id}; in VerifyRegisterIndex() 209 bool Verifier::CheckConstantPoolActions(const verifier::ActionType type, panda_file::File::EntityId method_id) in CheckConstantPoolActions() argument 213 return CheckConstantPoolMethodContent(method_id); in CheckConstantPoolActions() 216 all_method_ids_.push_back(method_id.GetOffset()); in CheckConstantPoolActions() 217 return CollectIdInInstructions(method_id); in CheckConstantPoolActions() 225 bool Verifier::CollectIdInInstructions(const panda_file::File::EntityId &method_id) in CollectIdInInstructions() argument 227 panda_file::MethodDataAccessor method_accessor(*file_, method_id); in CollectIdInInstructions() 246 const auto literal_id = file_->ResolveMethodIndex(method_id, arg_literal_idx); in CollectIdInInstructions() 251 const auto arg_method_id = file_->ResolveMethodIndex(method_id, arg_method_id in CollectIdInInstructions() 371 LOG(ERROR, VERIFIER) << "Fail to verify method id. method_id(0x" << std::hex << method_id << ")!"; VerifyMethodId() local 435 const auto method_id = panda_file::File::EntityId(id).GetOffset(); VerifyMethodIdInLiteralArray() local 765 VerifySlotNumber(panda_file::MethodDataAccessor &method_accessor, const uint32_t &slot_number, const panda_file::File::EntityId &method_id) VerifySlotNumber() argument 804 auto method_id = infos.method_id; VerifyMethodInstructions() local 815 << method_id VerifyMethodInstructions() local 824 << method_id VerifyMethodInstructions() local 848 CheckConstantPoolMethodContent(const panda_file::File::EntityId &method_id) CheckConstantPoolMethodContent() argument [all...] |
H A D | verifier.h | 48 const panda_file::File::EntityId &method_id; member 87 bool CollectIdInInstructions(const panda_file::File::EntityId &method_id); 91 bool CheckConstantPoolActions(const verifier::ActionType type, panda_file::File::EntityId method_id); 92 bool VerifyMethodId(const uint32_t &method_id) const; 113 const panda_file::File::EntityId &method_id); 114 bool CheckConstantPoolMethodContent(const panda_file::File::EntityId &method_id);
|
/arkcompiler/runtime_core/static_core/verification/config/debug_breakpoint/ |
H A D | breakpoint.h | 39 #define DBG_MANAGED_BRK(ctx, method_id, method_offset) \ 40 if (ark::verifier::debug::CheckManagedBreakpoint(ctx, method_id, method_offset)) { \ 55 #define DBG_MANAGED_BRK(ctx, method_id, method_offset)
|
/arkcompiler/runtime_core/abc2program/common/ |
H A D | abc2program_entity_container.cpp | 60 std::string Abc2ProgramEntityContainer::GetFullMethodNameById(const panda_file::File::EntityId &method_id) in GetFullMethodNameById() argument 62 auto method_id_offset = method_id.GetOffset(); in GetFullMethodNameById() 67 std::string full_method_name = ConcatFullMethodNameById(method_id); in GetFullMethodNameById() 72 std::string Abc2ProgramEntityContainer::ConcatFullMethodNameById(const panda_file::File::EntityId &method_id) in ConcatFullMethodNameById() argument 74 panda::panda_file::MethodDataAccessor method_data_accessor(file_, method_id); in ConcatFullMethodNameById()
|
H A D | abc_code_converter.h | 31 panda_file::File::EntityId method_id) const; 33 std::string IDToString(BytecodeInstruction bc_ins, panda_file::File::EntityId method_id, size_t idx) const;
|
H A D | abc_code_converter.cpp | 23 std::string AbcCodeConverter::IDToString(BytecodeInstruction bc_ins, panda_file::File::EntityId method_id, in IDToString() argument 26 panda_file::File::EntityId entity_id = file_.ResolveOffsetByIndex(method_id, bc_ins.GetId(idx).AsIndex()); in IDToString()
|
H A D | abc2program_entity_container.h | 43 std::string GetFullMethodNameById(const panda_file::File::EntityId &method_id); 59 std::string ConcatFullMethodNameById(const panda_file::File::EntityId &method_id);
|
/arkcompiler/runtime_core/disassembler/ |
H A D | disassembler.h | 67 void AddMethodToTables(const panda_file::File::EntityId &method_id); 68 void GetMethod(pandasm::Function *method, const panda_file::File::EntityId &method_id); 80 panda_file::File::EntityId method_id) const; 101 void GetMethodAnnotations(pandasm::Function &method, const panda_file::File::EntityId &method_id); 109 IdList GetInstructions(pandasm::Function *method, panda_file::File::EntityId method_id, 111 LabelTable GetExceptions(pandasm::Function *method, panda_file::File::EntityId method_id, 122 void GetMetaData(pandasm::Function *method, const panda_file::File::EntityId &method_id) const; 134 std::string GetFullMethodName(const panda_file::File::EntityId &method_id) const; 135 std::string GetMethodSignature(const panda_file::File::EntityId &method_id) const; 139 void GetMethodInfo(const panda_file::File::EntityId &method_id, MethodInf [all...] |
H A D | disassembler.cpp | 167 void Disassembler::AddMethodToTables(const panda_file::File::EntityId &method_id) in AddMethodToTables() argument 170 GetMethod(&new_method, method_id); in AddMethodToTables() 177 GetMethodAnnotations(new_method, method_id); in AddMethodToTables() 178 method_name_to_id_.emplace(signature, method_id); in AddMethodToTables() 183 void Disassembler::GetMethod(pandasm::Function *method, const panda_file::File::EntityId &method_id) in GetMethod() argument 185 LOG(DEBUG, DISASSEMBLER) << "\n[getting method]\nid: " << method_id << " (0x" << std::hex << method_id << ")"; in GetMethod() local 193 panda_file::MethodDataAccessor method_accessor(*file_, method_id); in GetMethod() 195 method->name = GetFullMethodName(method_id); in GetMethod() 199 GetMetaData(method, method_id); in GetMethod() 210 LOG(ERROR, DISASSEMBLER) << "> error encountered at " << method_id << " (0x" << std::hex << method_id GetMethod() local 592 GetMethodAnnotations(pandasm::Function &method, const panda_file::File::EntityId &method_id) GetMethodAnnotations() argument 773 GetExceptions(pandasm::Function *method, panda_file::File::EntityId method_id, panda_file::File::EntityId code_id) const GetExceptions() argument 951 LOG(DEBUG, DISASSEMBLER) << "[getting metadata]\\nmethod id: " << method_id << " (0x" << std::hex << method_id GetMetaData() local 1331 GetMethodInfo(const panda_file::File::EntityId &method_id, MethodInfo *method_info) const GetMethodInfo() argument 2130 IDToString(BytecodeInstruction bc_ins, panda_file::File::EntityId method_id, size_t idx) const IDToString() argument 2192 GetInstructions(pandasm::Function *method, panda_file::File::EntityId method_id, panda_file::File::EntityId code_id) const GetInstructions() argument [all...] |
/arkcompiler/runtime_core/libpandafile/util/ |
H A D | collect_util.cpp | 65 panda_file::File::EntityId method_id = method_accessor.GetMethodId(); in CollectClassLiteralArray() 78 GetLiteralArrayIdInBytecodeInst(class_data_accessor.GetPandaFile(), method_id, bc_ins); in CollectClassLiteralArray() 119 const panda_file::File &file_, panda_file::File::EntityId method_id, in GetLiteralArrayIdInBytecodeInst() 127 const auto literal_id = file_.ResolveMethodIndex(method_id, arg_literal_idx); in GetLiteralArrayIdInBytecodeInst() 118 GetLiteralArrayIdInBytecodeInst( const panda_file::File &file_, panda_file::File::EntityId method_id, panda::BytecodeInst<BytecodeInstMode::FAST> bc_ins) GetLiteralArrayIdInBytecodeInst() argument
|
H A D | collect_util.h | 38 panda_file::File::EntityId method_id,
|
/arkcompiler/runtime_core/static_core/disassembler/tests/ |
H A D | functions_test.cpp | 133 auto [pf, method_id] = BuildPandaMethod(); in TEST() 139 d.GetMethod(&method, method_id); in TEST() 163 auto [pf, method_id] = BuildPandaMethod(); in TEST() 169 d.GetMethod(&method, method_id); in TEST()
|
/arkcompiler/runtime_core/bytecode_optimizer/tests/ |
H A D | runtime_adapter_test.cpp | 192 const auto method_id = adapter.ResolveMethodIndex(main, 0); in TEST() local 193 EXPECT_NE(method_id, 0); in TEST() 194 EXPECT_NE(adapter.GetClassIdForMethod(main, method_id), 0); in TEST() 195 EXPECT_EQ(adapter.GetMethodArgumentType(main, method_id, 0), compiler::DataType::Type::INT32); in TEST()
|
/arkcompiler/runtime_core/abc2program/ |
H A D | abc_class_processor.cpp | 120 panda_file::File::EntityId method_id = mda.GetMethodId(); in FillFunctions() 121 AbcMethodProcessor method_processor(method_id, entity_container_); in FillFunctions()
|