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 54e1e3bac011312ee30661618222e237cfc3198a..c669e37d4523d086f7e4ab6c41da1f56116c4204 100644 |
--- a/src/full-codegen/ppc/full-codegen-ppc.cc |
+++ b/src/full-codegen/ppc/full-codegen-ppc.cc |
@@ -966,8 +966,10 @@ void FullCodeGenerator::VisitForInStatement(ForInStatement* stmt) { |
__ CompareRoot(r3, Heap::kUndefinedValueRootIndex); |
__ beq(&exit); |
__ bind(&convert); |
+ __ Push(cp); |
ToObjectStub stub(isolate()); |
__ CallStub(&stub); |
+ __ Pop(cp); |
__ bind(&done_convert); |
PrepareForBailoutForId(stmt->ToObjectId(), BailoutState::TOS_REGISTER); |
__ push(r3); |