Index: src/compiler/instruction-selector.cc |
diff --git a/src/compiler/instruction-selector.cc b/src/compiler/instruction-selector.cc |
index f204bb849e4045acef928a2068130f5572112cd4..b551c4d027a50e56dc7cdbb4672642132e0648ae 100644 |
--- a/src/compiler/instruction-selector.cc |
+++ b/src/compiler/instruction-selector.cc |
@@ -555,6 +555,11 @@ size_t InstructionSelector::AddInputsToFrameStateDescriptor( |
DCHECK_EQ(descriptor->stack_count(), StateValuesAccess(stack).size()); |
StateValueList* values_descriptor = descriptor->GetStateValueDescriptors(); |
+ |
+ DCHECK_EQ(values_descriptor->size(), 0u); |
+ values_descriptor->ReserveSize( |
+ descriptor->GetSize(OutputFrameStateCombine::Ignore())); |
+ |
entries += AddOperandToStateValueDescriptor( |
values_descriptor, inputs, g, deduplicator, function, |
MachineType::AnyTagged(), FrameStateInputKind::kStackSlot, zone); |