Lines Matching refs:method_id
167 void Disassembler::AddMethodToTables(const panda_file::File::EntityId &method_id)
170 GetMethod(&new_method, method_id);
177 GetMethodAnnotations(new_method, method_id);
178 method_name_to_id_.emplace(signature, method_id);
183 void Disassembler::GetMethod(pandasm::Function *method, const panda_file::File::EntityId &method_id)
185 LOG(DEBUG, DISASSEMBLER) << "\n[getting method]\nid: " << method_id << " (0x" << std::hex << method_id << ")";
193 panda_file::MethodDataAccessor method_accessor(*file_, method_id);
195 method->name = GetFullMethodName(method_id);
199 GetMetaData(method, method_id);
204 const IdList id_list = GetInstructions(method, method_id, code_id);
210 LOG(ERROR, DISASSEMBLER) << "> error encountered at " << method_id << " (0x" << std::hex << method_id
592 void Disassembler::GetMethodAnnotations(pandasm::Function &method, const panda_file::File::EntityId &method_id)
594 panda_file::MethodDataAccessor mda(*file_, method_id);
773 LabelTable Disassembler::GetExceptions(pandasm::Function *method, panda_file::File::EntityId method_id,
801 const auto class_id = file_->ResolveClassIndex(method_id, class_idx);
949 void Disassembler::GetMetaData(pandasm::Function *method, const panda_file::File::EntityId &method_id) const
951 LOG(DEBUG, DISASSEMBLER) << "[getting metadata]\nmethod id: " << method_id << " (0x" << std::hex << method_id
960 panda_file::MethodDataAccessor method_accessor(*file_, method_id);
1264 std::string Disassembler::GetFullMethodName(const panda_file::File::EntityId &method_id) const
1266 panda::panda_file::MethodDataAccessor method_accessor(*file_, method_id);
1280 std::string Disassembler::GetMethodSignature(const panda_file::File::EntityId &method_id) const
1282 panda::panda_file::MethodDataAccessor method_accessor(*file_, method_id);
1284 pandasm::Function method(GetFullMethodName(method_id), file_language_);
1288 GetMetaData(&method, method_id);
1331 void Disassembler::GetMethodInfo(const panda_file::File::EntityId &method_id, MethodInfo *method_info) const
1335 panda_file::MethodDataAccessor method_accessor {*file_, method_id};
1354 method_info->line_number_table = debug_info_extractor_->GetLineNumberTable(method_id);
1355 method_info->column_number_table = debug_info_extractor_->GetColumnNumberTable(method_id);
1356 method_info->local_variable_table = debug_info_extractor_->GetLocalVariableTable(method_id);
1362 for (auto info : debug_info_extractor_->GetParameterInfo(method_id)) {
2130 std::string Disassembler::IDToString(BytecodeInstruction bc_ins, panda_file::File::EntityId method_id, size_t idx) const
2133 const auto offset = file_->ResolveOffsetByIndex(method_id, bc_ins.GetId(idx).AsIndex());
2192 IdList Disassembler::GetInstructions(pandasm::Function *method, panda_file::File::EntityId method_id,
2205 LabelTable label_table = GetExceptions(method, method_id, code_id);
2218 auto pa_ins = BytecodeInstructionToPandasmInstruction(bc_ins, method_id);
2226 const auto arg_method_id = file_->ResolveMethodIndex(method_id, arg_method_idx);