diff --git a/src/assembler.cc b/src/assembler.cc index ff487720bc..ca30e19cb4 100644 --- a/src/assembler.cc +++ b/src/assembler.cc @@ -492,7 +492,8 @@ void RelocInfo::Print(FILE* out) { target_address()); } else if (IsPosition(rmode_)) { PrintF(out, " (%" V8_PTR_PREFIX "d)", data()); - } else if (rmode_ == RelocInfo::RUNTIME_ENTRY) { + } else if (rmode_ == RelocInfo::RUNTIME_ENTRY && + Isolate::Current()->deoptimizer_data() != NULL) { // Depotimization bailouts are stored as runtime entries. int id = Deoptimizer::GetDeoptimizationId( target_address(), Deoptimizer::EAGER); diff --git a/src/disassembler.cc b/src/disassembler.cc index d142ef6af1..e757f90253 100644 --- a/src/disassembler.cc +++ b/src/disassembler.cc @@ -282,7 +282,8 @@ static int DecodeIt(FILE* f, } else { out.AddFormatted(" %s", Code::Kind2String(kind)); } - } else if (rmode == RelocInfo::RUNTIME_ENTRY) { + } else if (rmode == RelocInfo::RUNTIME_ENTRY && + Isolate::Current()->deoptimizer_data() != NULL) { // A runtime entry reloinfo might be a deoptimization bailout. Address addr = relocinfo.target_address(); int id = Deoptimizer::GetDeoptimizationId(addr, Deoptimizer::EAGER);