Index: src/x64/full-codegen-x64.cc |
diff --git a/src/x64/full-codegen-x64.cc b/src/x64/full-codegen-x64.cc |
index 9b63de9c9baf8214f42ed5cd549a886a0d96e21b..c078f979998946925dd166f50f4aeec3ce1562ef 100644 |
--- a/src/x64/full-codegen-x64.cc |
+++ b/src/x64/full-codegen-x64.cc |
@@ -1149,7 +1149,8 @@ void FullCodeGenerator::VisitForInStatement(ForInStatement* stmt) { |
// No need for a write barrier, we are storing a Smi in the feedback vector. |
__ Move(rbx, FeedbackVector()); |
- __ Move(FieldOperand(rbx, FixedArray::OffsetOfElementAt(slot.ToInt())), |
+ int vector_index = FeedbackVector()->GetIndex(slot); |
+ __ Move(FieldOperand(rbx, FixedArray::OffsetOfElementAt(vector_index)), |
TypeFeedbackVector::MegamorphicSentinel(isolate())); |
__ Move(rbx, Smi::FromInt(1)); // Smi indicates slow check |
__ movp(rcx, Operand(rsp, 0 * kPointerSize)); // Get enumerated object |