/arkcompiler/runtime_core/libpandafile/ |
D | debug_info_extractor.cpp | 242 File::EntityId method_id = mda.GetMethodId(); in Extract() local 248 methods_.push_back({source_file, source_code, method_id, handler.GetLineNumberTable(), in Extract() 255 const LineNumberTable &DebugInfoExtractor::GetLineNumberTable(File::EntityId method_id) const in GetLineNumberTable() 258 if (method.method_id == method_id) { in GetLineNumberTable() 267 const ColumnNumberTable &DebugInfoExtractor::GetColumnNumberTable(File::EntityId method_id) const in GetColumnNumberTable() 270 if (method.method_id == method_id) { in GetColumnNumberTable() 279 const LocalVariableTable &DebugInfoExtractor::GetLocalVariableTable(File::EntityId method_id) const in GetLocalVariableTable() 282 if (method.method_id == method_id) { in GetLocalVariableTable() 291 …ebugInfoExtractor::ParamInfo> &DebugInfoExtractor::GetParameterInfo(File::EntityId method_id) const in GetParameterInfo() 294 if (method.method_id == method_id) { in GetParameterInfo() [all …]
|
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() 29 proto_off_ = panda_file.ResolveProtoIndex(method_id, proto_idx_).GetOffset(); in MethodDataAccessor() 34 is_external_ = panda_file_.IsExternal(method_id); in MethodDataAccessor()
|
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
|
D | method_data_accessor-inl.h | 27 …line 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 …ile::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 …ine 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 …ine 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_idx).GetOffset()); in GetClassId()
|
D | file_reader.h | 76 MethodItem *CreateMethodItem(ClassItem *cls, File::EntityId method_id); 77 ForeignMethodItem *CreateForeignMethodItem(BaseClassItem *fcls, File::EntityId method_id); 145 inline BaseItem *CreateGenericMethodItem(BaseClassItem *class_item, File::EntityId method_id) in CreateGenericMethodItem() argument 147 if (file_->IsExternal(method_id)) { in CreateGenericMethodItem() 148 return CreateForeignMethodItem(class_item, method_id); in CreateGenericMethodItem() 150 return CreateMethodItem(static_cast<ClassItem *>(class_item), method_id); in CreateGenericMethodItem()
|
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);
|
D | file_reader.cpp | 164 File::EntityId method_id(helpers::Read<sizeof(uint32_t)>(&sp)); in CreateLiteralArrayItem() local 165 MethodDataAccessor method_acc(*file_, method_id); in CreateLiteralArrayItem() 168 literal_array.emplace_back(CreateMethodItem(class_item, method_id)); in CreateLiteralArrayItem() 266 const File::EntityId method_id {scalar.Get<uint32_t>()}; in CreateAnnotationItem() local 267 MethodDataAccessor method_acc(*file_, method_id); in CreateAnnotationItem() 269 … elem_value_item = container_.GetOrCreateIdValueItem(CreateGenericMethodItem(cls_item, method_id)); in CreateAnnotationItem() 450 const File::EntityId method_id {array.Get<uint32_t>(j)}; in CreateAnnotationItem() local 451 MethodDataAccessor method_acc(*file_, method_id); in CreateAnnotationItem() 453 … items.emplace_back(ScalarValueItem(CreateGenericMethodItem(cls_item, method_id))); in CreateAnnotationItem() 601 MethodItem *FileReader::CreateMethodItem(ClassItem *cls, File::EntityId method_id) in CreateMethodItem() argument [all …]
|
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/libpandafile/tests/ |
D | debug_info_extractor_test.cpp | 271 … File::EntityId method_id, size_t offset) in GetLocalVariableInfoWrapper() argument 273 … std::vector<panda_file::LocalVariableInfo> variables = extractor.GetLocalVariableTable(method_id); in GetLocalVariableInfoWrapper() 284 …cePairLocation 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 {SOU… 336 ASSERT_TRUE(method_id.IsValid()); 339 auto source_location = GetSourcePairLocationWrapper(extractor, method_id, 2); 343 auto vars = GetLocalVariableInfoWrapper(extractor, method_id, 4); 359 …auto method_id = GetBreakpointAddressWrapper(extractor, SourcePairLocation {SOURCE_FILE, 14}).firs… variable [all …]
|
D | file_item_container_test.cpp | 689 for (const auto &method_id : methods) { variable 690 for (const auto &info : extractor.GetParameterInfo(method_id)) {
|
/arkcompiler/runtime_core/disassembler/ |
D | disassembler.h | 66 void AddMethodToTables(const panda_file::File::EntityId &method_id); 67 void GetMethod(pandasm::Function *method, const panda_file::File::EntityId &method_id); 87 IdList GetInstructions(pandasm::Function *method, panda_file::File::EntityId method_id, 89 LabelTable GetExceptions(pandasm::Function *method, panda_file::File::EntityId method_id, 100 void GetMetaData(pandasm::Function *method, const panda_file::File::EntityId &method_id) const; 110 std::string GetFullMethodName(const panda_file::File::EntityId &method_id) const; 111 std::string GetMethodSignature(const panda_file::File::EntityId &method_id) const; 115 void GetMethodInfo(const panda_file::File::EntityId &method_id, MethodInfo *method_info) const; 153 … panda_file::File::EntityId method_id) const; 155 …std::string IDToString(BytecodeInstruction bc_ins, panda_file::File::EntityId method_id, size_t id…
|
D | disassembler.cpp | 148 void Disassembler::AddMethodToTables(const panda_file::File::EntityId &method_id) in AddMethodToTables() argument 151 GetMethod(&new_method, method_id); in AddMethodToTables() 158 method_name_to_id_.emplace(signature, method_id); in AddMethodToTables() 163 void Disassembler::GetMethod(pandasm::Function *method, const panda_file::File::EntityId &method_id) in GetMethod() argument 165 …DEBUG, DISASSEMBLER) << "\n[getting method]\nid: " << method_id << " (0x" << std::hex << method_id… in GetMethod() 173 panda_file::MethodDataAccessor method_accessor(*file_, method_id); in GetMethod() 175 method->name = GetFullMethodName(method_id); in GetMethod() 180 GetMetaData(method, method_id); in GetMethod() 183 … const IdList id_list = GetInstructions(method, method_id, method_accessor.GetCodeId().value()); in GetMethod() 189 …G(ERROR, DISASSEMBLER) << "> error encountered at " << method_id << " (0x" << std::hex << method_id in GetMethod() [all …]
|
/arkcompiler/runtime_core/disassembler/templates/ |
D | bc_ins_to_pandasm_ins.cpp.erb | 21 … panda_file::File::EntityId method_id) const { 48 ins.ids.push_back(IDToString(bc_ins, method_id, <%=id_count%>)); 60 // if format has ID in it - recieve it. else instruction is indirect call and id = method_id 65 id = file_->ResolveMethodIndex(method_id, idx); 67 id = method_id; 82 << "> error encountered in code of " << std::dec << method_id.GetOffset() << " (" 83 … << "0x" << std::hex << method_id.GetOffset() << ") while disassembling call <" << ins.ToString("")
|
/arkcompiler/runtime_core/bytecode_optimizer/tests/ |
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/assembler/templates/ |
D | operand_types_print.h.erb | 36 % elsif properties.include?('method_id')
|
D | ins_emit.h.erb | 73 % if prop == 'method_id' 106 % if prop == 'method_id'
|
D | isa.h.erb | 32 % flags << "InstFlags::METHOD_ID" if insn.properties.include? 'method_id'
|
D | opcode_parsing.h.erb | 107 % elsif properties.include?("method_id")
|
/arkcompiler/runtime_core/libark_defect_scan_aux/ |
D | abc_file.cpp | 226 uint32_t method_id = inst.GetImms()[1]; in GetStringByInst() local 227 return GetStringByMethodId(EntityId(method_id)); in GetStringByInst() 958 auto method_id = EntityId(std::get<uint32_t>(value)); in ResolveDefineClassWithBufferInst() local 959 std::string member_func_name = GetStringByMethodId(method_id); in ResolveDefineClassWithBufferInst() 1080 std::string AbcFile::GetStringByMethodId(EntityId method_id) const in GetStringByMethodId() 1082 panda_file::MethodDataAccessor mda {*panda_file_, method_id}; in GetStringByMethodId()
|
/arkcompiler/runtime_core/libark_defect_scan_aux/include/ |
D | abc_file.h | 121 std::string GetStringByMethodId(panda_file::File::EntityId method_id) const;
|
/arkcompiler/ets_frontend/ts2panda/templates/ |
D | builtinsMap.ts.erb | 88 % elsif (args[i].include?("method_id"))
|
D | irnodes.ts.erb | 72 % if %i[method_id type_id field_id string_id literalarray_id callsite_id].include?(name)
|
/arkcompiler/runtime_core/compiler/optimizer/templates/ |
D | generate_ecma.inl.erb | 60 % if param.method_id?
|
D | inst_builder_gen.cpp.erb | 328 % if inst.properties.include?("method_id")
|
/arkcompiler/ets_frontend/es2panda/compiler/templates/ |
D | isa.h.erb | 112 % if %i[method_id type_id field_id string_id stringId callsite_id literalarray_id].include?(nam…
|