Index: src/full-codegen/x87/full-codegen-x87.cc |
diff --git a/src/full-codegen/x87/full-codegen-x87.cc b/src/full-codegen/x87/full-codegen-x87.cc |
index 3fb42ea33fd1ad6da0668a6cc54c21673d1be00b..9670cc3ae722bafecee90b62a7d8ed353d3a5b0e 100644 |
--- a/src/full-codegen/x87/full-codegen-x87.cc |
+++ b/src/full-codegen/x87/full-codegen-x87.cc |
@@ -937,8 +937,10 @@ void FullCodeGenerator::VisitForInStatement(ForInStatement* stmt) { |
__ cmp(eax, isolate()->factory()->null_value()); |
__ j(equal, &exit); |
__ bind(&convert); |
+ __ Push(esi); |
ToObjectStub stub(isolate()); |
__ CallStub(&stub); |
+ __ Pop(esi); |
__ bind(&done_convert); |
PrepareForBailoutForId(stmt->ToObjectId(), BailoutState::TOS_REGISTER); |
__ push(eax); |