Fix Windows x64 build broken by r5299.
authorsgjesse@chromium.org <sgjesse@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 18 Aug 2010 11:49:40 +0000 (11:49 +0000)
committersgjesse@chromium.org <sgjesse@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 18 Aug 2010 11:49:40 +0000 (11:49 +0000)
Review URL: http://codereview.chromium.org/3158019

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@5300 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/spaces-inl.h
src/spaces.cc

index f6552de..3b4718b 100644 (file)
@@ -243,15 +243,15 @@ void Page::InvalidateWatermark(bool value) {
 
 
 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);
   }
 }
 
index f0e5575..67adafd 100644 (file)
@@ -390,7 +390,7 @@ void MemoryAllocator::FreeRawMemory(void* mem,
   }
   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);
 }