From 8fdae69d9fb4a36aabccf828c0f6f3bc27f268ff Mon Sep 17 00:00:00 2001 From: "weiliang.lin@intel.com" Date: Wed, 8 Oct 2014 06:11:22 +0000 Subject: [PATCH] X87: Replace OStream with std::ostream. port r24319. original commit message: Replace OStream with std::ostream. BUG= R=weiliang.lin@intel.com Review URL: https://codereview.chromium.org/635203002 Patch from Chunyang Dai . git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@24447 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/x87/lithium-x87.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/x87/lithium-x87.cc b/src/x87/lithium-x87.cc index c23bce4..b00a0d9 100644 --- a/src/x87/lithium-x87.cc +++ b/src/x87/lithium-x87.cc @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +#include + #include "src/v8.h" #if V8_TARGET_ARCH_X87 @@ -378,7 +380,7 @@ void LStoreNamedField::PrintDataTo(StringStream* stream) { object()->PrintTo(stream); std::ostringstream os; os << hydrogen()->access() << " <- "; - stream->Add(os.c_str()); + stream->Add(os.str().c_str()); value()->PrintTo(stream); } -- 2.7.4