Index: src/x64/code-stubs-x64.cc |
diff --git a/src/x64/code-stubs-x64.cc b/src/x64/code-stubs-x64.cc |
index 59d3d6a58207465da8755270ba65f71269c460b2..3383458252c32ec26344ae9ae53fcfc110351e63 100644 |
--- a/src/x64/code-stubs-x64.cc |
+++ b/src/x64/code-stubs-x64.cc |
@@ -3132,7 +3132,7 @@ void ToStringStub::Generate(MacroAssembler* masm) { |
__ bind(¬_string); |
Label not_heap_number; |
- __ CompareRoot(rax, Heap::kHeapNumberMapRootIndex); |
+ __ CompareRoot(rdi, Heap::kHeapNumberMapRootIndex); |
__ j(not_equal, ¬_heap_number, Label::kNear); |
__ bind(&is_number); |
NumberToStringStub stub(isolate()); |