Reviewers: Michael Starzinger, Description: Make fussy Windows compiler happy.
Please review this at http://codereview.chromium.org/9178012/ SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/ Affected files: M src/spaces-inl.h Index: src/spaces-inl.h =================================================================== --- src/spaces-inl.h (revision 10413) +++ src/spaces-inl.h (working copy) @@ -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
