Home | History | Annotate | Download | only in oatdump

Lines Matching defs:oat_method

350   void AddOffsets(const OatFile::OatMethod& oat_method) {
351 uint32_t code_offset = oat_method.GetCodeOffset();
356 offsets_.insert(oat_method.GetMappingTableOffset());
357 offsets_.insert(oat_method.GetVmapTableOffset());
358 offsets_.insert(oat_method.GetGcMapOffset());
474 const OatFile::OatMethod oat_method = oat_class.GetOatMethod(class_method_index);
490 uint32_t code_offset = oat_method.GetCodeOffset();
492 uint32_t aligned_code_begin = AlignCodeOffset(oat_method.GetCodeOffset());
503 *indent2_os << StringPrintf("%p ", oat_method.GetGcMap());
505 uint32_t gc_map_offset = oat_method.GetGcMapOffset();
515 DumpGcMap(indent3_os, oat_method, code_item);
520 uint32_t method_header_offset = oat_method.GetOatQuickMethodHeaderOffset();
521 const OatQuickMethodHeader* method_header = oat_method.GetOatQuickMethodHeader();
538 *indent2_os << StringPrintf("%p ", oat_method.GetMappingTable());
540 uint32_t mapping_table_offset = oat_method.GetMappingTableOffset();
541 *indent2_os << StringPrintf("(offset=0x%08x)\n", oat_method.GetMappingTableOffset());
547 oat_method.GetMappingTableOffsetOffset());
552 DumpMappingTable(indent3_os, oat_method);
557 *indent2_os << StringPrintf("%p ", oat_method.GetVmapTable());
559 uint32_t vmap_table_offset = oat_method.GetVmapTableOffset();
566 oat_method.GetVmapTableOffsetOffset());
569 DumpVmap(*indent2_os, oat_method);
575 *indent2_os << StringPrintf("frame_size_in_bytes: %zd\n", oat_method.GetFrameSizeInBytes());
576 *indent2_os << StringPrintf("core_spill_mask: 0x%08x ", oat_method.GetCoreSpillMask());
577 DumpSpillMask(*indent2_os, oat_method.GetCoreSpillMask(), false);
579 *indent2_os << StringPrintf("fp_spill_mask: 0x%08x ", oat_method.GetFpSpillMask());
580 DumpSpillMask(*indent2_os, oat_method.GetFpSpillMask(), true);
585 uint32_t code_size_offset = oat_method.GetQuickCodeSizeOffset();
592 const void* code = oat_method.GetQuickCode();
593 uint32_t code_size = oat_method.GetQuickCodeSize();
595 code = oat_method.GetPortableCode();
596 code_size = oat_method.GetPortableCodeSize();
599 uint32_t code_offset = oat_method.GetCodeOffset();
626 DumpCode(*indent2_os, verifier.get(), oat_method, code_item, true, kPrologueBytes);
638 DumpCode(*indent2_os, verifier.get(), oat_method, code_item, true, kPrologueBytes);
642 DumpCode(*indent2_os, verifier.get(), oat_method, code_item, !success, 0);
673 void DumpVmap(std::ostream& os, const OatFile::OatMethod& oat_method) {
674 const uint8_t* raw_table = oat_method.GetVmapTable();
679 uint32_t spill_mask = oat_method.GetCoreSpillMask();
693 spill_mask = oat_method.GetFpSpillMask();
700 void DescribeVReg(std::ostream& os, const OatFile::OatMethod& oat_method,
702 const uint8_t* raw_table = oat_method.GetVmapTable();
708 uint32_t spill_mask = is_float ? oat_method.GetFpSpillMask()
709 : oat_method.GetCoreSpillMask();
712 uint32_t offset = StackVisitor::GetVRegOffset(code_item, oat_method.GetCoreSpillMask(),
713 oat_method.GetFpSpillMask(),
714 oat_method.GetFrameSizeInBytes(), reg,
721 void DumpGcMapRegisters(std::ostream& os, const OatFile::OatMethod& oat_method,
729 DescribeVReg(os, oat_method, code_item, reg, kReferenceVReg);
734 DescribeVReg(os, oat_method, code_item, reg, kReferenceVReg);
745 void DumpGcMap(std::ostream& os, const OatFile::OatMethod& oat_method,
747 const uint8_t* gc_map_raw = oat_method.GetGcMap();
751 const void* quick_code = oat_method.GetQuickCode();
758 DumpGcMapRegisters(os, oat_method, code_item, map.RegWidth() * 8, map.GetBitMap(entry));
761 const void* portable_code = oat_method.GetPortableCode();
767 DumpGcMapRegisters(os, oat_method, code_item, map.RegWidth() * 8, map.GetBitMap(entry));
772 void DumpMappingTable(std::ostream& os, const OatFile::OatMethod& oat_method) {
773 const void* quick_code = oat_method.GetQuickCode();
777 MappingTable table(oat_method.GetMappingTable());
800 uint32_t DumpMappingAtOffset(std::ostream& os, const OatFile::OatMethod& oat_method,
802 MappingTable table(oat_method.GetMappingTable());
823 void DumpGcMapAtNativePcOffset(std::ostream& os, const OatFile::OatMethod& oat_method,
825 const uint8_t* gc_map_raw = oat_method.GetGcMap();
836 DescribeVReg(os, oat_method, code_item, reg, kReferenceVReg);
841 DescribeVReg(os, oat_method, code_item, reg, kReferenceVReg);
854 const OatFile::OatMethod& oat_method,
872 DescribeVReg(os, oat_method, code_item, reg, kind);
878 DescribeVReg(os, oat_method, code_item, reg, kind);
921 const OatFile::OatMethod& oat_method, const DexFile::CodeItem* code_item,
923 const void* portable_code = oat_method.GetPortableCode();
924 const void* quick_code = oat_method.GetQuickCode();
927 code_size = oat_method.GetQuickCodeSize();
937 DumpMappingAtOffset(os, oat_method, offset, false);
941 uint32_t dex_pc = DumpMappingAtOffset(os, oat_method, offset, true);
943 DumpGcMapAtNativePcOffset(os, oat_method, code_item, offset);
945 DumpVRegsAtDexPc(os, verifier, oat_method, code_item, dex_pc);