Index: src/ast/ast.cc |
diff --git a/src/ast/ast.cc b/src/ast/ast.cc |
index c5e9b68960d157ee6226896224049106cde9aca5..d5ef3c1b3415d54dbd49232cbe1964e9243b1e24 100644 |
--- a/src/ast/ast.cc |
+++ b/src/ast/ast.cc |
@@ -253,7 +253,6 @@ static void AssignVectorSlots(Expression* expr, FeedbackVectorSpec* spec, |
// TODO(ishell): consider using ICSlotCache for variables here. |
if (assign_type == KEYED_PROPERTY) { |
*out_slot = spec->AddKeyedStoreICSlot(language_mode); |
- |
} else { |
*out_slot = spec->AddStoreICSlot(language_mode); |
} |
@@ -282,6 +281,9 @@ void Assignment::AssignFeedbackSlots(FeedbackVectorSpec* spec, |
LanguageMode language_mode, |
FeedbackSlotCache* cache) { |
AssignVectorSlots(target(), spec, language_mode, &slot_); |
+ if (true || FLAG_type_profile) { |
+ collect_type_profile_slot_ = spec->AddTypeProfileSlot(); |
+ } |
} |
void CountOperation::AssignFeedbackSlots(FeedbackVectorSpec* spec, |