summaryrefslogtreecommitdiff
path: root/src/disassembler_arm.cc
diff options
context:
space:
mode:
author Ian Rogers <irogers@google.com> 2012-11-08 10:39:18 -0800
committer Ian Rogers <irogers@google.com> 2012-11-16 14:01:34 -0800
commit2bcb4a496b7aa00d996df3a070524f7568fb35a1 (patch)
tree8422ab8d65b7422008094b2eaadec0dad87b2df3 /src/disassembler_arm.cc
parentefc6369224b036a1fb77849f7ae65b3492c832c0 (diff)
Add "kind" argument to Get/SetVReg.
In order to determine where a register is promoted its necessary to know the kind of use of the register. Extend notion of precise-ness to numeric verifier register types. Dump verifier output in oatdump. Dump vregs with their location or constant value. Introduce indenting ostream utility. Change-Id: Ia3d29497877976bc24465484743bca08236e1768
Diffstat (limited to 'src/disassembler_arm.cc')
-rw-r--r--src/disassembler_arm.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/disassembler_arm.cc b/src/disassembler_arm.cc
index d047f0e726..15480b9dd9 100644
--- a/src/disassembler_arm.cc
+++ b/src/disassembler_arm.cc
@@ -275,7 +275,7 @@ void DisassemblerArm::DumpArm(std::ostream& os, const uint8_t* instr_ptr) {
opcode += kConditionCodeNames[cond];
opcode += suffixes;
// TODO: a more complete ARM disassembler could generate wider opcodes.
- os << StringPrintf("\t\t\t%p: %08x\t%-7s ", instr_ptr, instruction, opcode.c_str()) << args.str() << '\n';
+ os << StringPrintf("%p: %08x\t%-7s ", instr_ptr, instruction, opcode.c_str()) << args.str() << '\n';
}
size_t DisassemblerArm::DumpThumb32(std::ostream& os, const uint8_t* instr_ptr) {
@@ -854,7 +854,7 @@ size_t DisassemblerArm::DumpThumb32(std::ostream& os, const uint8_t* instr_ptr)
it_conditions_.pop_back();
}
- os << StringPrintf("\t\t\t%p: %08x\t%-7s ", instr_ptr, instr, opcode.str().c_str()) << args.str() << '\n';
+ os << StringPrintf("%p: %08x\t%-7s ", instr_ptr, instr, opcode.str().c_str()) << args.str() << '\n';
return 4;
}
@@ -1157,7 +1157,7 @@ size_t DisassemblerArm::DumpThumb16(std::ostream& os, const uint8_t* instr_ptr)
it_conditions_.pop_back();
}
- os << StringPrintf("\t\t\t%p: %04x \t%-7s ", instr_ptr, instr, opcode.str().c_str()) << args.str() << '\n';
+ os << StringPrintf("%p: %04x \t%-7s ", instr_ptr, instr, opcode.str().c_str()) << args.str() << '\n';
}
return 2;
}