Index: src/full-codegen/arm64/full-codegen-arm64.cc |
diff --git a/src/full-codegen/arm64/full-codegen-arm64.cc b/src/full-codegen/arm64/full-codegen-arm64.cc |
index 8af038adc8a26c70c590b4fc181f75428d0fd9a4..ca0ae7f6c1420120fc8552d5c58ea9a16f6fa3cd 100644 |
--- a/src/full-codegen/arm64/full-codegen-arm64.cc |
+++ b/src/full-codegen/arm64/full-codegen-arm64.cc |
@@ -999,8 +999,10 @@ void FullCodeGenerator::VisitForInStatement(ForInStatement* stmt) { |
__ JumpIfRoot(x0, Heap::kNullValueRootIndex, &exit); |
__ JumpIfRoot(x0, Heap::kUndefinedValueRootIndex, &exit); |
__ Bind(&convert); |
+ __ Push(cp); |
ToObjectStub stub(isolate()); |
__ CallStub(&stub); |
+ __ Pop(cp); |
__ Bind(&done_convert); |
PrepareForBailoutForId(stmt->ToObjectId(), BailoutState::TOS_REGISTER); |
__ Push(x0); |