diff --git a/src/mips/lithium-mips.cc b/src/mips/lithium-mips.cc index 7f2a47fd4c..f264f6248e 100644 --- a/src/mips/lithium-mips.cc +++ b/src/mips/lithium-mips.cc @@ -322,8 +322,9 @@ void LAccessArgumentsAt::PrintDataTo(StringStream* stream) { void LStoreNamedField::PrintDataTo(StringStream* stream) { object()->PrintTo(stream); - hydrogen()->access().PrintTo(stream); - stream->Add(" <- "); + OStringStream os; + os << hydrogen()->access() << " <- "; + stream->Add(os.c_str()); value()->PrintTo(stream); } diff --git a/src/mips/simulator-mips.cc b/src/mips/simulator-mips.cc index f329703517..052eaed827 100644 --- a/src/mips/simulator-mips.cc +++ b/src/mips/simulator-mips.cc @@ -455,17 +455,18 @@ void MipsDebugger::Debug() { || (strcmp(cmd, "printobject") == 0)) { if (argc == 2) { int32_t value; + OFStream os(stdout); if (GetValue(arg1, &value)) { Object* obj = reinterpret_cast(value); - PrintF("%s: \n", arg1); + os << arg1 << ": \n"; #ifdef DEBUG - obj->PrintLn(); + obj->Print(os); + os << "\n"; #else - obj->ShortPrint(); - PrintF("\n"); + os << Brief(obj) << "\n"; #endif } else { - PrintF("%s unrecognized\n", arg1); + os << arg1 << " unrecognized\n"; } } else { PrintF("printobject \n");