Index: src/mips/full-codegen-mips.cc |
diff --git a/src/mips/full-codegen-mips.cc b/src/mips/full-codegen-mips.cc |
index 9f26d4cfe129381ff359bc75e907c4cff5d05390..479e3f87f72b74d168a955b561a1469ded855f2f 100644 |
--- a/src/mips/full-codegen-mips.cc |
+++ b/src/mips/full-codegen-mips.cc |
@@ -1181,7 +1181,8 @@ void FullCodeGenerator::VisitForInStatement(ForInStatement* stmt) { |
__ li(a1, FeedbackVector()); |
__ li(a2, Operand(TypeFeedbackVector::MegamorphicSentinel(isolate()))); |
- __ sw(a2, FieldMemOperand(a1, FixedArray::OffsetOfElementAt(slot.ToInt()))); |
+ int vector_index = FeedbackVector()->GetIndex(slot); |
+ __ sw(a2, FieldMemOperand(a1, FixedArray::OffsetOfElementAt(vector_index))); |
__ li(a1, Operand(Smi::FromInt(1))); // Smi indicates slow check |
__ lw(a2, MemOperand(sp, 0 * kPointerSize)); // Get enumerated object |