Index: src/x64/code-stubs-x64.cc |
diff --git a/src/x64/code-stubs-x64.cc b/src/x64/code-stubs-x64.cc |
index a74f325d3dad35eec1a39733c0d46a626f91675e..1e14f83d9b2de1b523d3e87616cd738497bf09f6 100644 |
--- a/src/x64/code-stubs-x64.cc |
+++ b/src/x64/code-stubs-x64.cc |
@@ -3291,7 +3291,9 @@ void CompareICStub::GenerateBooleans(MacroAssembler* masm) { |
__ AssertSmi(rax); |
__ movp(rdx, FieldOperand(rdx, Oddball::kToNumberOffset)); |
__ AssertSmi(rdx); |
- __ xchgp(rax, rdx); |
+ __ pushq(rax); |
+ __ movq(rax, rdx); |
+ __ popq(rdx); |
} |
__ subp(rax, rdx); |
__ Ret(); |