| Index: src/lithium-codegen.cc
|
| diff --git a/src/lithium-codegen.cc b/src/lithium-codegen.cc
|
| index bc73bb938fa94f08d1937f7fe746e249692d4115..0207188bd09b18f94471706bd3b41d1c1b58d350 100644
|
| --- a/src/lithium-codegen.cc
|
| +++ b/src/lithium-codegen.cc
|
| @@ -148,8 +148,11 @@ void LCodeGenBase::Comment(const char* format, ...) {
|
|
|
|
|
| void LCodeGenBase::DeoptComment(const Deoptimizer::Reason& reason) {
|
| - Comment(";;; deoptimize %s: %s", reason.mnemonic,
|
| - reason.detail == NULL ? "unknown reason" : reason.detail);
|
| + OStringStream os;
|
| + os << ";;; deoptimize at " << HSourcePosition(reason.raw_position) << " "
|
| + << reason.mnemonic;
|
| + if (reason.detail != NULL) os << ": " << reason.detail;
|
| + Comment("%s", os.c_str());
|
| }
|
|
|
|
|
|
|