| Index: src/mips/full-codegen-mips.cc
|
| diff --git a/src/mips/full-codegen-mips.cc b/src/mips/full-codegen-mips.cc
|
| index f7c13c84525d982db51e9402b84c11f6d31edb5a..aa7518fd511db6abda87c9e68499ecd4258e39f7 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
|
|
|