Home
last modified time | relevance | path

Searched refs:mi (Results 1 – 4 of 4) sorted by relevance

/art/compiler/debug/
Delf_debug_writer.cc51 for (const MethodDebugInfo& mi : method_infos) { in WriteDebugInfo() local
52 if (mi.dex_file != nullptr) { in WriteDebugInfo()
53 auto& dex_class_def = mi.dex_file->GetClassDef(mi.class_def_index); in WriteDebugInfo()
54 const char* source_file = mi.dex_file->GetSourceFile(dex_class_def); in WriteDebugInfo()
59 cu.methods.push_back(&mi); in WriteDebugInfo()
61 … DCHECK_EQ(cu.methods.front()->is_code_address_text_relative, mi.is_code_address_text_relative); in WriteDebugInfo()
62 cu.is_code_address_text_relative = mi.is_code_address_text_relative; in WriteDebugInfo()
63 cu.code_address = std::min(cu.code_address, mi.code_address); in WriteDebugInfo()
64 cu.code_end = std::max(cu.code_end, mi.code_address + mi.code_size); in WriteDebugInfo()
Delf_debug_line_writer.h87 for (const MethodDebugInfo* mi : compilation_unit.methods) { in WriteCompilationUnit() local
92 if (!seen_addresses.insert(mi->code_address).second) { in WriteCompilationUnit()
98 if (mi->code_info != nullptr) { in WriteCompilationUnit()
100 const CodeInfo code_info(mi->code_info); in WriteCompilationUnit()
148 if (!mi->is_native_debuggable) { in WriteCompilationUnit()
155 Elf_Addr method_address = base_address + mi->code_address; in WriteCompilationUnit()
158 DCHECK(mi->dex_file != nullptr); in WriteCompilationUnit()
159 const DexFile* dex = mi->dex_file; in WriteCompilationUnit()
160 if (!dex->DecodeDebugPositionInfo(mi->code_item, PositionInfoCallback, &dex2line_map)) { in WriteCompilationUnit()
175 auto& dex_class_def = dex->GetClassDef(mi->class_def_index); in WriteCompilationUnit()
[all …]
Delf_debug_info_writer.h46 static std::vector<const char*> GetParamNames(const MethodDebugInfo* mi) { in GetParamNames() argument
48 if (mi->code_item != nullptr) { in GetParamNames()
49 DCHECK(mi->dex_file != nullptr); in GetParamNames()
50 const uint8_t* stream = mi->dex_file->GetDebugInfoStream(mi->code_item); in GetParamNames()
56 names.push_back(mi->dex_file->StringDataByIdx(id)); in GetParamNames()
136 for (auto mi : compilation_unit.methods) { in Write() local
137 DCHECK(mi->dex_file != nullptr); in Write()
138 const DexFile* dex = mi->dex_file; in Write()
139 const DexFile::CodeItem* dex_code = mi->code_item; in Write()
140 const DexFile::MethodId& dex_method = dex->GetMethodId(mi->dex_method_index); in Write()
[all …]
Delf_debug_frame_writer.h224 for (const MethodDebugInfo* mi : sorted_method_infos) { in WriteCFISection() local
225 DCHECK(!mi->deduped); in WriteCFISection()
226 DCHECK(!mi->cfi.empty()); in WriteCFISection()
227 const Elf_Addr code_address = mi->code_address + in WriteCFISection()
228 (mi->is_code_address_text_relative ? builder->GetText()->GetAddress() : 0); in WriteCFISection()
234 code_address, mi->code_size, in WriteCFISection()
235 mi->cfi, format, buffer_address, &buffer, in WriteCFISection()