Lines Matching refs:os
125 std::ostringstream os; in DumpHex() local
128 os << StringPrintf("0x%04x", insn[i]) << " "; in DumpHex()
131 os << " "; in DumpHex()
133 return os.str(); in DumpHex()
137 std::ostringstream os; in DumpString() local
140 case k10x: os << opcode; break; in DumpString()
141 case k12x: os << StringPrintf("%s v%d, v%d", opcode, VRegA_12x(), VRegB_12x()); break; in DumpString()
142 case k11n: os << StringPrintf("%s v%d, #%+d", opcode, VRegA_11n(), VRegB_11n()); break; in DumpString()
143 case k11x: os << StringPrintf("%s v%d", opcode, VRegA_11x()); break; in DumpString()
144 case k10t: os << StringPrintf("%s %+d", opcode, VRegA_10t()); break; in DumpString()
145 case k20t: os << StringPrintf("%s %+d", opcode, VRegA_20t()); break; in DumpString()
146 case k22x: os << StringPrintf("%s v%d, v%d", opcode, VRegA_22x(), VRegB_22x()); break; in DumpString()
147 case k21t: os << StringPrintf("%s v%d, %+d", opcode, VRegA_21t(), VRegB_21t()); break; in DumpString()
148 case k21s: os << StringPrintf("%s v%d, #%+d", opcode, VRegA_21s(), VRegB_21s()); break; in DumpString()
153 os << StringPrintf("%s v%d, #int %+d // 0x%x", opcode, VRegA_21h(), value, value); in DumpString()
156 os << StringPrintf("%s v%d, #long %+" PRId64 " // 0x%" PRIx64, opcode, VRegA_21h(), in DumpString()
166 os << StringPrintf("const-string v%d, %s // string@%d", VRegA_21c(), in DumpString()
175 … os << opcode << " v" << static_cast<int>(VRegA_21c()) << ", " << PrettyType(type_idx, *file) in DumpString()
188 …os << opcode << " v" << static_cast<int>(VRegA_21c()) << ", " << PrettyField(field_idx, *file, tr… in DumpString()
201 …os << opcode << " v" << static_cast<int>(VRegA_21c()) << ", " << PrettyField(field_idx, *file, tru… in DumpString()
206 os << StringPrintf("%s v%d, thing@%d", opcode, VRegA_21c(), VRegB_21c()); in DumpString()
211 …case k23x: os << StringPrintf("%s v%d, v%d, v%d", opcode, VRegA_23x(), VRegB_23x(), VRegC_23x());… in DumpString()
212 …case k22b: os << StringPrintf("%s v%d, v%d, #%+d", opcode, VRegA_22b(), VRegB_22b(), VRegC_22b())… in DumpString()
213 …case k22t: os << StringPrintf("%s v%d, v%d, %+d", opcode, VRegA_22t(), VRegB_22t(), VRegC_22t());… in DumpString()
214 …case k22s: os << StringPrintf("%s v%d, v%d, #%+d", opcode, VRegA_22s(), VRegB_22s(), VRegC_22s())… in DumpString()
226 …os << opcode << " v" << static_cast<int>(VRegA_22c()) << ", v" << static_cast<int>(VRegB_22c()) <<… in DumpString()
234 …os << opcode << " v" << static_cast<int>(VRegA_22c()) << ", v" << static_cast<int>(VRegB_22c()) <<… in DumpString()
247 …os << opcode << " v" << static_cast<int>(VRegA_22c()) << ", v" << static_cast<int>(VRegB_22c()) <<… in DumpString()
255 …os << opcode << " v" << static_cast<int>(VRegA_22c()) << ", v" << static_cast<int>(VRegB_22c()) <<… in DumpString()
262 …os << opcode << " v" << static_cast<int>(VRegA_22c()) << ", v" << static_cast<int>(VRegB_22c()) <<… in DumpString()
269 …os << opcode << " v" << static_cast<int>(VRegA_22c()) << ", v" << static_cast<int>(VRegB_22c()) <<… in DumpString()
274 … os << StringPrintf("%s v%d, v%d, thing@%d", opcode, VRegA_22c(), VRegB_22c(), VRegC_22c()); in DumpString()
279 case k32x: os << StringPrintf("%s v%d, v%d", opcode, VRegA_32x(), VRegB_32x()); break; in DumpString()
280 case k30t: os << StringPrintf("%s %+d", opcode, VRegA_30t()); break; in DumpString()
281 case k31t: os << StringPrintf("%s v%d, %+d", opcode, VRegA_31t(), VRegB_31t()); break; in DumpString()
282 case k31i: os << StringPrintf("%s v%d, #%+d", opcode, VRegA_31i(), VRegB_31i()); break; in DumpString()
287 os << StringPrintf("%s v%d, %s // string@%d", opcode, VRegA_31c(), in DumpString()
291 os << StringPrintf("%s v%d, string@%d", opcode, VRegA_31c(), string_idx); in DumpString()
294 os << StringPrintf("%s v%d, thing@%d", opcode, VRegA_31c(), VRegB_31c()); break; in DumpString()
304 os << opcode << " {"; in DumpString()
307 os << ", "; in DumpString()
309 os << "v" << arg[i]; in DumpString()
311 os << "}, type@" << VRegB_35c(); in DumpString()
321 os << opcode << " {"; in DumpString()
325 os << ", "; in DumpString()
327 os << "v" << arg[i]; in DumpString()
329 os << "}, " << PrettyMethod(method_idx, *file) << " // method@" << method_idx; in DumpString()
334 os << opcode << " {"; in DumpString()
338 os << ", "; in DumpString()
340 os << "v" << arg[i]; in DumpString()
342 os << "}, // vtable@" << method_idx; in DumpString()
346 os << opcode << " {v" << arg[0] << ", v" << arg[1] << ", v" << arg[2] in DumpString()
361 … os << StringPrintf("%s, {v%d .. v%d}, ", opcode, VRegC_3rc(), (VRegC_3rc() + VRegA_3rc() - 1)) in DumpString()
368 … os << StringPrintf("%s, {v%d .. v%d}, ", opcode, VRegC_3rc(), (VRegC_3rc() + VRegA_3rc() - 1)) in DumpString()
373 os << StringPrintf("%s, {v%d .. v%d}, thing@%d", opcode, VRegC_3rc(), in DumpString()
379 case k51l: os << StringPrintf("%s v%d, #%+" PRId64, opcode, VRegA_51l(), VRegB_51l()); break; in DumpString()
380 default: os << " unknown format (" << DumpHex(5) << ")"; break; in DumpString()
382 return os.str(); in DumpString()
385 std::ostream& operator<<(std::ostream& os, const Instruction::Code& code) { in operator <<() argument
386 return os << Instruction::Name(code); in operator <<()