Index: src/disassembler.cc |
diff --git a/src/disassembler.cc b/src/disassembler.cc |
index 8fe1e7feddb69a8e73d95627d71dd574e5861442..bd4c66e5f68f2f6a02a7c1f4e051d5d6efe4cf02 100644 |
--- a/src/disassembler.cc |
+++ b/src/disassembler.cc |
@@ -170,14 +170,9 @@ static int DecodeIt(Isolate* isolate, std::ostream* os, |
} |
RelocInfo::Mode rmode = relocinfo.rmode(); |
- if (RelocInfo::IsPosition(rmode)) { |
- if (RelocInfo::IsStatementPosition(rmode)) { |
- out.AddFormatted(" ;; debug: statement %" V8PRIdPTR, |
- relocinfo.data()); |
- } else { |
- out.AddFormatted(" ;; debug: position %" V8PRIdPTR, |
- relocinfo.data()); |
- } |
+ if (rmode == RelocInfo::DEOPT_POSITION) { |
+ out.AddFormatted(" ;; debug: deopt position '%d'", |
+ static_cast<int>(relocinfo.data())); |
} else if (rmode == RelocInfo::DEOPT_REASON) { |
Deoptimizer::DeoptReason reason = |
static_cast<Deoptimizer::DeoptReason>(relocinfo.data()); |