Revision: 17657
Author:   [email protected]
Date:     Tue Nov 12 15:11:06 2013 UTC
Log: Fix implementation of compare-minus-zero-and-branch on ia32 and x64.

[email protected]
BUG=

Review URL: https://codereview.chromium.org/63573004
http://code.google.com/p/v8/source/detail?r=17657

Modified:
 /branches/bleeding_edge/src/ia32/lithium-codegen-ia32.cc
 /branches/bleeding_edge/src/x64/lithium-codegen-x64.cc

=======================================
--- /branches/bleeding_edge/src/ia32/lithium-codegen-ia32.cc Tue Nov 12 11:53:13 2013 UTC +++ /branches/bleeding_edge/src/ia32/lithium-codegen-ia32.cc Tue Nov 12 15:11:06 2013 UTC
@@ -2689,7 +2689,7 @@
   } else {
     Register value = ToRegister(instr->value());
     Handle<Map> map = masm()->isolate()->factory()->heap_number_map();
-    __ CheckMap(eax, map, &if_false, DO_SMI_CHECK);
+    __ CheckMap(value, map, &if_false, DO_SMI_CHECK);
     __ cmp(FieldOperand(value, HeapNumber::kExponentOffset),
            Immediate(0x80000000));
     __ j(not_equal, &if_false);
=======================================
--- /branches/bleeding_edge/src/x64/lithium-codegen-x64.cc Tue Nov 12 11:53:13 2013 UTC +++ /branches/bleeding_edge/src/x64/lithium-codegen-x64.cc Tue Nov 12 15:11:06 2013 UTC
@@ -2263,7 +2263,7 @@
   } else {
     Register value = ToRegister(instr->value());
     Handle<Map> map = masm()->isolate()->factory()->heap_number_map();
-    __ CheckMap(rax, map, &if_false, DO_SMI_CHECK);
+    __ CheckMap(value, map, &if_false, DO_SMI_CHECK);
     __ cmpl(FieldOperand(value, HeapNumber::kExponentOffset),
             Immediate(0x80000000));
     __ j(not_equal, &if_false);

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to