| Index: src/full-codegen/mips/full-codegen-mips.cc
|
| diff --git a/src/full-codegen/mips/full-codegen-mips.cc b/src/full-codegen/mips/full-codegen-mips.cc
|
| index 13484a87b44a53bca48f23169a4f8de8f459df3d..933b53840dd41a035706b770e4e6a900cb7bb6d4 100644
|
| --- a/src/full-codegen/mips/full-codegen-mips.cc
|
| +++ b/src/full-codegen/mips/full-codegen-mips.cc
|
| @@ -1138,7 +1138,6 @@ void FullCodeGenerator::VisitForInStatement(ForInStatement* stmt) {
|
| __ Push(a1, a0); // Fixed array length (as smi) and initial index.
|
|
|
| // Generate code for doing the condition check.
|
| - PrepareForBailoutForId(stmt->BodyId(), NO_REGISTERS);
|
| __ bind(&loop);
|
| SetExpressionAsStatementPosition(stmt->each());
|
|
|
| @@ -1190,6 +1189,8 @@ void FullCodeGenerator::VisitForInStatement(ForInStatement* stmt) {
|
| PrepareForBailoutForId(stmt->AssignmentId(), NO_REGISTERS);
|
| }
|
|
|
| + // Both Crankshaft and Turbofan expect BodyId to be right before stmt->body().
|
| + PrepareForBailoutForId(stmt->BodyId(), NO_REGISTERS);
|
| // Generate code for the body of the loop.
|
| Visit(stmt->body());
|
|
|
|
|