Index: src/disassembler.cc |
diff --git a/src/disassembler.cc b/src/disassembler.cc |
index 215e2b88911c164d0857da74188c388ee4081c94..a411d7c25ed7dc186e49c13d14eb6a8c8f99748b 100644 |
--- a/src/disassembler.cc |
+++ b/src/disassembler.cc |
@@ -195,6 +195,11 @@ static int DecodeIt(Isolate* isolate, std::ostream* os, |
} else { |
out.AddFormatted(" ;; debug: position %d", relocinfo.data()); |
} |
+ } else if (rmode == RelocInfo::DEOPT_REASON) { |
+ Deoptimizer::DeoptReason reason = |
+ static_cast<Deoptimizer::DeoptReason>(relocinfo.data()); |
+ out.AddFormatted(" ;; debug: deopt reason '%s'", |
+ Deoptimizer::GetDeoptReason(reason)); |
} else if (rmode == RelocInfo::EMBEDDED_OBJECT) { |
HeapStringAllocator allocator; |
StringStream accumulator(&allocator); |