Index: src/compiler/code-generator.cc |
diff --git a/src/compiler/code-generator.cc b/src/compiler/code-generator.cc |
index 5c831eb6ddce70b532923f9147e6399e5c49b6d7..878ace3be1e631a75bc31ff5670852348ef581cc 100644 |
--- a/src/compiler/code-generator.cc |
+++ b/src/compiler/code-generator.cc |
@@ -215,7 +215,9 @@ void CodeGenerator::PopulateDeoptimizationData(Handle<Code> code_object) { |
for (int i = 0; i < deopt_count; i++) { |
FrameStateDescriptor* descriptor = code()->GetDeoptimizationEntry(i); |
data->SetAstId(i, descriptor->bailout_id()); |
- data->SetTranslationIndex(i, Smi::FromInt(0)); |
+ CHECK_NE(NULL, deoptimization_states_[i]); |
+ data->SetTranslationIndex( |
+ i, Smi::FromInt(deoptimization_states_[i]->translation_id_)); |
data->SetArgumentsStackHeight(i, Smi::FromInt(0)); |
data->SetPc(i, Smi::FromInt(-1)); |
} |