Index: src/ast/ast.cc |
diff --git a/src/ast/ast.cc b/src/ast/ast.cc |
index b039678124d27895893374ae397b30e60b52cb6c..6aaae04ea35bab04c21e3c78ba5af333e8c70f4c 100644 |
--- a/src/ast/ast.cc |
+++ b/src/ast/ast.cc |
@@ -283,8 +283,13 @@ Assignment::Assignment(Token::Value op, Expression* target, Expression* value, |
void Assignment::AssignFeedbackSlots(FeedbackVectorSpec* spec, |
LanguageMode language_mode, |
- FeedbackSlotCache* cache) { |
+ FeedbackSlotCache* cache, |
+ bool collect_type_profile) { |
AssignVectorSlots(target(), spec, language_mode, &slot_); |
+ |
+ if (collect_type_profile) { |
+ type_profile_slot_ = spec->AddTypeProfileSlot(); |
+ } |
} |
void CountOperation::AssignFeedbackSlots(FeedbackVectorSpec* spec, |