Index: src/lithium-codegen.cc |
diff --git a/src/lithium-codegen.cc b/src/lithium-codegen.cc |
index ea6b83a06a68fb2de9d579a10c94dc836f9d08fa..4534b46d80206a227fd44ca587b54909534b4cd5 100644 |
--- a/src/lithium-codegen.cc |
+++ b/src/lithium-codegen.cc |
@@ -2,10 +2,12 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#include "src/v8.h" |
- |
#include "src/lithium-codegen.h" |
+#include <sstream> |
+ |
+#include "src/v8.h" |
+ |
#if V8_TARGET_ARCH_IA32 |
#include "src/ia32/lithium-ia32.h" // NOLINT |
#include "src/ia32/lithium-codegen-ia32.h" // NOLINT |
@@ -148,11 +150,11 @@ void LCodeGenBase::Comment(const char* format, ...) { |
void LCodeGenBase::DeoptComment(const Deoptimizer::Reason& reason) { |
- OStringStream os; |
+ std::ostringstream os; |
os << ";;; deoptimize at " << HSourcePosition(reason.raw_position) << " " |
<< reason.mnemonic; |
if (reason.detail != NULL) os << ": " << reason.detail; |
- Comment("%s", os.c_str()); |
+ Comment("%s", os.str().c_str()); |
} |