Index: src/lithium-codegen.cc |
diff --git a/src/lithium-codegen.cc b/src/lithium-codegen.cc |
index 12d8e2f3eebbf79b3ce1af604d133bf10dbfa5c6..3ca47e1e8da75c6556f0d54e6c649a7ada190ce9 100644 |
--- a/src/lithium-codegen.cc |
+++ b/src/lithium-codegen.cc |
@@ -153,7 +153,11 @@ |
void LCodeGenBase::DeoptComment(const Deoptimizer::Reason& reason) { |
- masm()->RecordDeoptReason(reason.deopt_reason, reason.raw_position); |
+ std::ostringstream os; |
+ os << ";;; deoptimize at " << HSourcePosition(reason.raw_position) << " " |
+ << reason.mnemonic; |
+ if (reason.detail != NULL) os << ": " << reason.detail; |
+ Comment("%s", os.str().c_str()); |
} |