Revision: 10416
Author:   [email protected]
Date:     Tue Jan 17 04:49:15 2012
Log:      Make fussy Windows compiler happy.
Review URL: http://codereview.chromium.org/9178012
http://code.google.com/p/v8/source/detail?r=10416

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

=======================================
--- /branches/bleeding_edge/src/spaces-inl.h    Tue Jan 17 03:38:25 2012
+++ /branches/bleeding_edge/src/spaces-inl.h    Tue Jan 17 04:49:15 2012
@@ -166,10 +166,10 @@
   Page* page = reinterpret_cast<Page*>(chunk);
   ASSERT(chunk->size() <= kPageSize);
   ASSERT(chunk->owner() == owner);
-  intptr_t object_bytes = page->ObjectAreaEnd() - page->ObjectAreaStart();
+  int object_bytes =
+      static_cast<int>(page->ObjectAreaEnd() - page->ObjectAreaStart());
   owner->IncreaseCapacity(object_bytes);
-  owner->AddToFreeLists(page->ObjectAreaStart(),
-                        static_cast<int>(object_bytes));
+  owner->AddToFreeLists(page->ObjectAreaStart(), object_bytes);

   heap->incremental_marking()->SetOldSpacePageFlags(chunk);

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

Reply via email to