diff options
author | 2012-11-08 10:39:18 -0800 | |
---|---|---|
committer | 2012-11-16 14:01:34 -0800 | |
commit | 2bcb4a496b7aa00d996df3a070524f7568fb35a1 (patch) | |
tree | 8422ab8d65b7422008094b2eaadec0dad87b2df3 /src/dex_instruction.cc | |
parent | efc6369224b036a1fb77849f7ae65b3492c832c0 (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/dex_instruction.cc')
-rw-r--r-- | src/dex_instruction.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dex_instruction.cc b/src/dex_instruction.cc index 201a8e6fcb..d3aa2389ef 100644 --- a/src/dex_instruction.cc +++ b/src/dex_instruction.cc @@ -289,8 +289,8 @@ std::string Instruction::DumpString(const DexFile* file) const { 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: |