Revision: 5507
Author: [email protected]
Date: Wed Sep 22 06:57:00 2010
Log: Fix a build for Win64 with VS2008.

It complaints of type conversions.

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

Modified:
 /branches/bleeding_edge/test/cctest/test-log-stack-tracer.cc

=======================================
--- /branches/bleeding_edge/test/cctest/test-log-stack-tracer.cc Thu Sep 16 01:23:34 2010 +++ /branches/bleeding_edge/test/cctest/test-log-stack-tracer.cc Wed Sep 22 06:57:00 2010
@@ -241,11 +241,12 @@
   CHECK(calling_frame->is_java_script());

 #if defined(V8_HOST_ARCH_32_BIT)
-  int32_t low_bits = reinterpret_cast<intptr_t>(calling_frame->fp());
+  int32_t low_bits = reinterpret_cast<int32_t>(calling_frame->fp());
   args.This()->Set(v8_str("low_bits"), v8_num(low_bits >> 1));
 #elif defined(V8_HOST_ARCH_64_BIT)
-  int32_t low_bits = reinterpret_cast<uintptr_t>(calling_frame->fp());
- int32_t high_bits = reinterpret_cast<uintptr_t>(calling_frame->fp()) >> 32;
+  uint64_t fp = reinterpret_cast<uint64_t>(calling_frame->fp());
+  int32_t low_bits = fp & 0xffffffff;
+  int32_t high_bits = fp >> 32;
   args.This()->Set(v8_str("low_bits"), v8_num(low_bits));
   args.This()->Set(v8_str("high_bits"), v8_num(high_bits));
 #else

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

Reply via email to