| Index: src/full-codegen/ppc/full-codegen-ppc.cc
|
| diff --git a/src/full-codegen/ppc/full-codegen-ppc.cc b/src/full-codegen/ppc/full-codegen-ppc.cc
|
| index ad401de848efdba14cde58432a43e7e33c663ccf..eaf24eb4eff00130feed5b26e44ee338a53b6941 100644
|
| --- a/src/full-codegen/ppc/full-codegen-ppc.cc
|
| +++ b/src/full-codegen/ppc/full-codegen-ppc.cc
|
| @@ -1105,7 +1105,6 @@ void FullCodeGenerator::VisitForInStatement(ForInStatement* stmt) {
|
| __ Push(r4, r3); // 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());
|
|
|
| @@ -1160,6 +1159,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());
|
|
|
|
|