Index: src/ast/ast.cc |
diff --git a/src/ast/ast.cc b/src/ast/ast.cc |
index 003e44e28487980436db3ed1a6d26fa2d4d60ecc..052c83ca85fb81df417a36944f51bf4e4658d100 100644 |
--- a/src/ast/ast.cc |
+++ b/src/ast/ast.cc |
@@ -148,15 +148,11 @@ static void AssignVectorSlots(Expression* expr, FeedbackVectorSpec* spec, |
} |
} |
- |
-void ForEachStatement::AssignFeedbackVectorSlots( |
- Isolate* isolate, FeedbackVectorSpec* spec, |
- FeedbackVectorSlotCache* cache) { |
- // TODO(adamk): for-of statements do not make use of this feedback slot. |
- // The each_slot_ should be specific to ForInStatement, and this work moved |
- // there. |
- if (IsForOfStatement()) return; |
+void ForInStatement::AssignFeedbackVectorSlots(Isolate* isolate, |
+ FeedbackVectorSpec* spec, |
+ FeedbackVectorSlotCache* cache) { |
AssignVectorSlots(each(), spec, &each_slot_); |
+ for_in_feedback_slot_ = spec->AddGeneralSlot(); |
} |