Index: src/deoptimizer.cc |
diff --git a/src/deoptimizer.cc b/src/deoptimizer.cc |
index 842b070b14ff7be17efd20c4dbbe9a9a04397e8a..bf7cd935f6ef29a7422e97b4cadb9fdcc5d42b85 100644 |
--- a/src/deoptimizer.cc |
+++ b/src/deoptimizer.cc |
@@ -3383,6 +3383,7 @@ TranslatedState::TranslatedState(JavaScriptFrame* frame) |
int deopt_index = Safepoint::kNoDeoptimizationIndex; |
DeoptimizationInputData* data = |
static_cast<OptimizedFrame*>(frame)->GetDeoptimizationData(&deopt_index); |
+ DCHECK(data != nullptr && deopt_index != Safepoint::kNoDeoptimizationIndex); |
TranslationIterator it(data->TranslationByteArray(), |
data->TranslationIndex(deopt_index)->value()); |
Init(frame->fp(), &it, data->LiteralArray(), nullptr /* registers */, |