Index: src/ia32/code-stubs-ia32.cc |
diff --git a/src/ia32/code-stubs-ia32.cc b/src/ia32/code-stubs-ia32.cc |
index 867153ba03569e5c47df5ae437355f93bfd663c3..6e597e2814cfd57665c55eb403871305350b1848 100644 |
--- a/src/ia32/code-stubs-ia32.cc |
+++ b/src/ia32/code-stubs-ia32.cc |
@@ -3341,7 +3341,9 @@ void CompareICStub::GenerateBooleans(MacroAssembler* masm) { |
__ AssertSmi(eax); |
__ mov(edx, FieldOperand(edx, Oddball::kToNumberOffset)); |
__ AssertSmi(edx); |
- __ xchg(eax, edx); |
+ __ push(eax); |
+ __ mov(eax, edx); |
+ __ pop(edx); |
} |
__ sub(eax, edx); |
__ Ret(); |