Revision: 16327
Author:   [email protected]
Date:     Mon Aug 26 13:37:01 2013 UTC
Log:      Fix NaCl build after r16322.

[email protected]

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

Modified:
 /branches/bleeding_edge/test/cctest/test-code-stubs.cc

=======================================
--- /branches/bleeding_edge/test/cctest/test-code-stubs.cc Mon Aug 26 12:24:03 2013 UTC +++ /branches/bleeding_edge/test/cctest/test-code-stubs.cc Mon Aug 26 13:37:01 2013 UTC
@@ -42,8 +42,9 @@


 int STDCALL ConvertDToICVersion(double d) {
-  Address double_ptr = reinterpret_cast<Address>(&d);
-  uint32_t exponent_bits = Memory::uint32_at(double_ptr + kDoubleSize / 2);
+  union { double d; uint32_t u[2]; } dbl;
+  dbl.d = d;
+  uint32_t exponent_bits = dbl.u[1];
   int32_t shifted_mask = static_cast<int32_t>(Double::kExponentMask >> 32);
   int32_t exponent = (((exponent_bits & shifted_mask) >>
                        (Double::kPhysicalSignificandSize - 32)) -
@@ -54,8 +55,7 @@
     static_cast<uint32_t>(Double::kPhysicalSignificandSize);
   if (unsigned_exponent >= max_exponent) {
     if ((exponent - Double::kPhysicalSignificandSize) < 32) {
-      result = Memory::uint32_at(double_ptr) <<
-        (exponent - Double::kPhysicalSignificandSize);
+      result = dbl.u[0] << (exponent - Double::kPhysicalSignificandSize);
     }
   } else {
     uint64_t big_result =

--
--
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