Index: src/full-codegen/mips64/full-codegen-mips64.cc |
diff --git a/src/full-codegen/mips64/full-codegen-mips64.cc b/src/full-codegen/mips64/full-codegen-mips64.cc |
index cdaab1fdb125414cef5bf852535edde384932f19..688a9a1c401ea57177424703547145e0fea57fef 100644 |
--- a/src/full-codegen/mips64/full-codegen-mips64.cc |
+++ b/src/full-codegen/mips64/full-codegen-mips64.cc |
@@ -1122,8 +1122,10 @@ void FullCodeGenerator::VisitForInStatement(ForInStatement* stmt) { |
__ li(a1, Operand(Smi::FromInt(1))); // Smi(1) indicates slow check |
__ Push(a1, v0); // Smi and array |
__ ld(a1, FieldMemOperand(v0, FixedArray::kLengthOffset)); |
+ __ Push(a1); // Fixed array length (as smi). |
+ PrepareForBailoutForId(stmt->PrepareId(), NO_REGISTERS); |
__ li(a0, Operand(Smi::FromInt(0))); |
- __ Push(a1, a0); // Fixed array length (as smi) and initial index. |
+ __ Push(a0); // Initial index. |
// Generate code for doing the condition check. |
__ bind(&loop); |