From 02a2580b1636149d0c296591004e28bcd5fb4656 Mon Sep 17 00:00:00 2001 From: bmeurer Date: Tue, 22 Sep 2015 00:19:58 -0700 Subject: [PATCH] [x64] Compare map instead of value to heap number map in ToStringStub. Fixes a typo introduced earlier, where we compare the value to heap number map instead of the map loaded previously. TBR=jarin@chromium.org Review URL: https://codereview.chromium.org/1355253002 Cr-Commit-Position: refs/heads/master@{#30859} --- src/x64/code-stubs-x64.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/x64/code-stubs-x64.cc b/src/x64/code-stubs-x64.cc index 59d3d6a58..338345825 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()); -- 2.34.1