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
diff --git a/src/dex_instruction.cc b/src/dex_instruction.cc
index 201a8e6..d3aa238 100644
--- a/src/dex_instruction.cc
+++ b/src/dex_instruction.cc
@@ -289,8 +289,8 @@
switch (insn.opcode) {
case CONST_STRING:
if (file != NULL) {
- os << StringPrintf("const-string v%d, \"%s\" // string@%d", insn.vA,
- file->StringDataByIdx(insn.vB), insn.vB);
+ os << StringPrintf("const-string v%d, %s // string@%d", insn.vA,
+ PrintableString(file->StringDataByIdx(insn.vB)).c_str(), insn.vB);
break;
} // else fall-through
case CHECK_CAST: