Index: src/deoptimizer.cc |
diff --git a/src/deoptimizer.cc b/src/deoptimizer.cc |
index c6e6baa942fcdbaf3750c6e1e0fc8162c088ba86..587fc0946a9157caa542a45696d449503b6c4246 100644 |
--- a/src/deoptimizer.cc |
+++ b/src/deoptimizer.cc |
@@ -1221,6 +1221,12 @@ void Deoptimizer::DoComputeConstructStubFrame(TranslationIterator* iterator, |
output_frame->SetFrameSlot(output_offset, value); |
DebugPrintOutputSlot(value, frame_index, output_offset, "code object\n"); |
+ // The allocation site. |
+ output_offset -= kPointerSize; |
+ value = reinterpret_cast<intptr_t>(isolate_->heap()->undefined_value()); |
+ output_frame->SetFrameSlot(output_offset, value); |
+ DebugPrintOutputSlot(value, frame_index, output_offset, "allocation site\n"); |
+ |
// Number of incoming arguments. |
output_offset -= kPointerSize; |
value = reinterpret_cast<intptr_t>(Smi::FromInt(height - 1)); |