Index: src/full-codegen/mips64/full-codegen-mips64.cc |
diff --git a/src/full-codegen/mips64/full-codegen-mips64.cc b/src/full-codegen/mips64/full-codegen-mips64.cc |
index 71a5699526ebb847ba1da8480d87c66015033917..c9253af8cae78c37fcdcfd0870899a53eddab6e9 100644 |
--- a/src/full-codegen/mips64/full-codegen-mips64.cc |
+++ b/src/full-codegen/mips64/full-codegen-mips64.cc |
@@ -999,8 +999,10 @@ void FullCodeGenerator::VisitForInStatement(ForInStatement* stmt) { |
__ LoadRoot(at, Heap::kUndefinedValueRootIndex); // In delay slot. |
__ Branch(&exit, eq, a0, Operand(at)); |
__ bind(&convert); |
+ __ Push(cp); |
ToObjectStub stub(isolate()); |
__ CallStub(&stub); |
+ __ Pop(cp); |
__ mov(a0, v0); |
__ bind(&done_convert); |
PrepareForBailoutForId(stmt->ToObjectId(), BailoutState::TOS_REGISTER); |