Index: src/compiler/code-generator.cc |
diff --git a/src/compiler/code-generator.cc b/src/compiler/code-generator.cc |
index 4cb3d9474ba6c9cc7b4d31482855a27f70455c95..16bf92c3639a45c8f9593dfe5affcfd58d0cbd4c 100644 |
--- a/src/compiler/code-generator.cc |
+++ b/src/compiler/code-generator.cc |
@@ -49,7 +49,8 @@ CodeGenerator::CodeGenerator(Frame* frame, Linkage* linkage, |
last_lazy_deopt_pc_(0), |
jump_tables_(nullptr), |
ools_(nullptr), |
- osr_pc_offset_(-1) { |
+ osr_pc_offset_(-1), |
+ needs_frame_(frame->GetSpillSlotCount() > 0 || code->ContainsCall()) { |
for (int i = 0; i < code->InstructionBlockCount(); ++i) { |
new (&labels_[i]) Label; |
} |