diff --git a/src/full-codegen/ppc/full-codegen-ppc.cc b/src/full-codegen/ppc/full-codegen-ppc.cc index a973ba6f73c8..85d198da2f59 100644 --- a/src/full-codegen/ppc/full-codegen-ppc.cc +++ b/src/full-codegen/ppc/full-codegen-ppc.cc @@ -1116,6 +1116,7 @@ void FullCodeGenerator::VisitForInStatement(ForInStatement* stmt) { // Generate code for the going to the next element by incrementing // the index (smi) stored on top of the stack. __ bind(loop_statement.continue_label()); + PrepareForBailoutForId(stmt->IncrementId(), BailoutState::NO_REGISTERS); __ pop(r3); __ AddSmiLiteral(r3, r3, Smi::FromInt(1), r0); __ push(r3); diff --git a/src/full-codegen/s390/full-codegen-s390.cc b/src/full-codegen/s390/full-codegen-s390.cc index 47755895b994..91fa86de809b 100644 --- a/src/full-codegen/s390/full-codegen-s390.cc +++ b/src/full-codegen/s390/full-codegen-s390.cc @@ -1085,6 +1085,7 @@ void FullCodeGenerator::VisitForInStatement(ForInStatement* stmt) { // Generate code for the going to the next element by incrementing // the index (smi) stored on top of the stack. __ bind(loop_statement.continue_label()); + PrepareForBailoutForId(stmt->IncrementId(), BailoutState::NO_REGISTERS); __ pop(r2); __ AddSmiLiteral(r2, r2, Smi::FromInt(1), r0); __ push(r2);