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 82d44865a05f39cdafc2f37642681e1cdea6a912..82304538d4dc0ef8deacac81eb1dfd33e043cbd2 100644 |
--- a/src/full-codegen/ppc/full-codegen-ppc.cc |
+++ b/src/full-codegen/ppc/full-codegen-ppc.cc |
@@ -1084,8 +1084,10 @@ void FullCodeGenerator::VisitForInStatement(ForInStatement* stmt) { |
__ LoadSmiLiteral(r4, Smi::FromInt(1)); // Smi(1) indicates slow check |
__ Push(r4, r3); // Smi and array |
__ LoadP(r4, FieldMemOperand(r3, FixedArray::kLengthOffset)); |
+ __ Push(r4); // Fixed array length (as smi). |
+ PrepareForBailoutForId(stmt->PrepareId(), NO_REGISTERS); |
__ LoadSmiLiteral(r3, Smi::FromInt(0)); |
- __ Push(r4, r3); // Fixed array length (as smi) and initial index. |
+ __ Push(r3); // Initial index. |
// Generate code for doing the condition check. |
__ bind(&loop); |