[x64] Compare map instead of value to heap number map in ToStringStub.
authorbmeurer <bmeurer@chromium.org>
Tue, 22 Sep 2015 07:19:58 +0000 (00:19 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 22 Sep 2015 07:20:03 +0000 (07:20 +0000)
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

index 59d3d6a..3383458 100644 (file)
@@ -3132,7 +3132,7 @@ void ToStringStub::Generate(MacroAssembler* masm) {
   __ bind(&not_string);
 
   Label not_heap_number;
-  __ CompareRoot(rax, Heap::kHeapNumberMapRootIndex);
+  __ CompareRoot(rdi, Heap::kHeapNumberMapRootIndex);
   __ j(not_equal, &not_heap_number, Label::kNear);
   __ bind(&is_number);
   NumberToStringStub stub(isolate());