Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Unified Diff: src/spaces-inl.h

Issue 9178012: Make fussy Windows compiler happy. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698