Index: src/ast/ast.h |
diff --git a/src/ast/ast.h b/src/ast/ast.h |
index bee0bab47e5640cbcf43c89e3739993d8fdfac73..1818aa7df227a1d572965c9d62ccca57ca080267 100644 |
--- a/src/ast/ast.h |
+++ b/src/ast/ast.h |
@@ -2004,6 +2004,9 @@ class CallNew final : public Expression { |
void AssignFeedbackVectorSlots(Isolate* isolate, FeedbackVectorSpec* spec, |
FeedbackVectorSlotCache* cache) override { |
callnew_feedback_slot_ = spec->AddGeneralSlot(); |
+ // Construct calls have two slots, one right after the other. |
+ // The second slot stores the call count for monomorphic calls. |
+ spec->AddGeneralSlot(); |
} |
FeedbackVectorSlot CallNewFeedbackSlot() { |