Index: src/ast/ast.cc |
diff --git a/src/ast/ast.cc b/src/ast/ast.cc |
index 51afdac51e5ca06be4d339bc5522921fdd64b51a..67bfe994e7529fd6542773550b656362412f6590 100644 |
--- a/src/ast/ast.cc |
+++ b/src/ast/ast.cc |
@@ -282,6 +282,9 @@ void Assignment::AssignFeedbackSlots(FeedbackVectorSpec* spec, |
LanguageMode language_mode, |
FeedbackSlotCache* cache) { |
AssignVectorSlots(target(), spec, language_mode, &slot_); |
+ if (FLAG_type_profile) { |
+ collect_type_profile_slot_ = spec->AddTypeProfileSlot(); |
+ } |
} |
void CountOperation::AssignFeedbackSlots(FeedbackVectorSpec* spec, |