Revision: 5300
Author: sgje...@chromium.org
Date: Wed Aug 18 04:49:40 2010
Log: Fix Windows x64 build broken by r5299.
Review URL: http://codereview.chromium.org/3158019
http://code.google.com/p/v8/source/detail?r=5300

Modified:
 /branches/bleeding_edge/src/spaces-inl.h
 /branches/bleeding_edge/src/spaces.cc

=======================================
--- /branches/bleeding_edge/src/spaces-inl.h    Wed Aug 18 03:45:15 2010
+++ /branches/bleeding_edge/src/spaces-inl.h    Wed Aug 18 04:49:40 2010
@@ -243,15 +243,15 @@


 bool Page::GetPageFlag(PageFlag flag) {
-  return (flags_ & (1 << flag)) != 0;
+  return (flags_ & static_cast<intptr_t>(1 << flag)) != 0;
 }


 void Page::SetPageFlag(PageFlag flag, bool value) {
   if (value) {
-    flags_ |= (1 << flag);
+    flags_ |= static_cast<intptr_t>(1 << flag);
   } else {
-    flags_ &= ~(1 << flag);
+    flags_ &= ~static_cast<intptr_t>(1 << flag);
   }
 }

=======================================
--- /branches/bleeding_edge/src/spaces.cc       Wed Aug 18 03:45:15 2010
+++ /branches/bleeding_edge/src/spaces.cc       Wed Aug 18 04:49:40 2010
@@ -390,7 +390,7 @@
   }
   Counters::memory_allocated.Decrement(static_cast<int>(length));
   size_ -= static_cast<int>(length);
-  if (executable == EXECUTABLE) size_executable_ -= length;
+ if (executable == EXECUTABLE) size_executable_ -= static_cast<int>(length);
   ASSERT(size_ >= 0);
 }

--
v8-dev mailing list
v8-dev@googlegroups.com
http://groups.google.com/group/v8-dev

Reply via email to