Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index eb7f85c6641556b75ac7dfce6592bc8c87e71de9..92ee51416189f73dcb8d80805f6ccc539a873530 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -11007,18 +11007,14 @@ |
void Code::PrintDeoptLocation(FILE* out, int bailout_id) { |
- int last_position = 0; |
- Deoptimizer::DeoptReason last_reason = Deoptimizer::kNoReason; |
- int mask = RelocInfo::ModeMask(RelocInfo::DEOPT_REASON) | |
- RelocInfo::ModeMask(RelocInfo::POSITION) | |
- RelocInfo::ModeMask(RelocInfo::RUNTIME_ENTRY); |
+ const char* last_comment = NULL; |
+ int mask = RelocInfo::ModeMask(RelocInfo::COMMENT) |
+ | RelocInfo::ModeMask(RelocInfo::RUNTIME_ENTRY); |
for (RelocIterator it(this, mask); !it.done(); it.next()) { |
RelocInfo* info = it.rinfo(); |
- if (info->rmode() == RelocInfo::POSITION) { |
- last_position = static_cast<int>(info->data()); |
- } else if (info->rmode() == RelocInfo::DEOPT_REASON) { |
- last_reason = static_cast<Deoptimizer::DeoptReason>(info->data()); |
- } else if (last_reason != Deoptimizer::kNoReason) { |
+ if (info->rmode() == RelocInfo::COMMENT) { |
+ last_comment = reinterpret_cast<const char*>(info->data()); |
+ } else if (last_comment != NULL) { |
if ((bailout_id == Deoptimizer::GetDeoptimizationId( |
GetIsolate(), info->target_address(), Deoptimizer::EAGER)) || |
(bailout_id == Deoptimizer::GetDeoptimizationId( |
@@ -11026,8 +11022,7 @@ |
(bailout_id == Deoptimizer::GetDeoptimizationId( |
GetIsolate(), info->target_address(), Deoptimizer::LAZY))) { |
CHECK(RelocInfo::IsRuntimeEntry(info->rmode())); |
- PrintF(out, " ;;; deoptimize at %d: %s\n", last_position, |
- Deoptimizer::GetDeoptReason(last_reason)); |
+ PrintF(out, " %s\n", last_comment); |
return; |
} |
} |