Index: src/x87/full-codegen-x87.cc |
diff --git a/src/x87/full-codegen-x87.cc b/src/x87/full-codegen-x87.cc |
index 8ae718f1609c9bdda157cb466bc0f5e3efe85f3e..746110a458d77f717ef118fba4b304090bfc0909 100644 |
--- a/src/x87/full-codegen-x87.cc |
+++ b/src/x87/full-codegen-x87.cc |
@@ -1106,7 +1106,8 @@ void FullCodeGenerator::VisitForInStatement(ForInStatement* stmt) { |
// No need for a write barrier, we are storing a Smi in the feedback vector. |
__ LoadHeapObject(ebx, FeedbackVector()); |
- __ mov(FieldOperand(ebx, FixedArray::OffsetOfElementAt(slot.ToInt())), |
+ int vector_index = FeedbackVector()->GetIndex(slot); |
+ __ mov(FieldOperand(ebx, FixedArray::OffsetOfElementAt(vector_index)), |
Immediate(TypeFeedbackVector::MegamorphicSentinel(isolate()))); |
__ mov(ebx, Immediate(Smi::FromInt(1))); // Smi indicates slow check |