Revision: 3973
Author: [email protected]
Date: Fri Feb 26 04:28:25 2010
Log: Moved initialization of xmm3 making sure it is initialized on all paths in GeneratePow - solves the sputnik failure on mac.

Review URL: http://codereview.chromium.org/661177
http://code.google.com/p/v8/source/detail?r=3973

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

=======================================
--- /branches/bleeding_edge/src/ia32/codegen-ia32.cc Fri Feb 26 03:09:06 2010 +++ /branches/bleeding_edge/src/ia32/codegen-ia32.cc Fri Feb 26 04:28:25 2010
@@ -5296,6 +5296,10 @@
       ASSERT(x.is_valid());
       ASSERT(y.is_valid());

+      // Save 1 in xmm3 - we need this several times later on
+      __ mov(p.reg(), Immediate(1));
+      __ cvtsi2sd(xmm3, Operand(p.reg()));
+
       Label y_nonsmi;
       Label x_is_double;
       // If y is a heap number go to that specific case.
@@ -5321,9 +5325,7 @@

       // Save y in x as we need to check if y is negative later.
       __ mov(x.reg(), y.reg());
-      // Save 1 in xmm3 - we need this several times later on
-      __ mov(p.reg(), Immediate(1));
-      __ cvtsi2sd(xmm3, Operand(p.reg()));
+

       // Get absolute value of y.
       Label no_neg;

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to