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

Unified Diff: src/spaces-inl.h

Issue 7389008: Make Win64 compile. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/gc
Patch Set: Addressed review comments Created 9 years, 5 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 | « src/spaces.cc ('k') | src/store-buffer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/spaces-inl.h
diff --git a/src/spaces-inl.h b/src/spaces-inl.h
index 19c1b3611b81abcd4bb2cda73480a2c229ab2e48..644ab2eaa31a0550be76612fb45daa6bafcdaa3b 100644
--- a/src/spaces-inl.h
+++ b/src/spaces-inl.h
@@ -168,7 +168,8 @@ Page* Page::Initialize(Heap* heap,
ASSERT(chunk->owner() == owner);
owner->IncreaseCapacity(Page::kObjectAreaSize);
owner->Free(page->ObjectAreaStart(),
- page->ObjectAreaEnd() - page->ObjectAreaStart());
+ static_cast<int>(page->ObjectAreaEnd() -
+ page->ObjectAreaStart()));
heap->incremental_marking()->SetOldSpacePageFlags(chunk);
@@ -301,13 +302,13 @@ MaybeObject* NewSpace::AllocateRawInternal(int size_in_bytes) {
allocation_info_.limit = Min(
allocation_info_.limit + inline_allocation_limit_step_,
high);
- int bytes_allocated = new_top - top_on_previous_step_;
+ int bytes_allocated = static_cast<int>(new_top - top_on_previous_step_);
heap()->incremental_marking()->Step(bytes_allocated);
top_on_previous_step_ = new_top;
return AllocateRawInternal(size_in_bytes);
} else if (AddFreshPage()) {
// Switched to new page. Try allocating again.
- int bytes_allocated = old_top - top_on_previous_step_;
+ int bytes_allocated = static_cast<int>(old_top - top_on_previous_step_);
heap()->incremental_marking()->Step(bytes_allocated);
top_on_previous_step_ = to_space_.page_low();
return AllocateRawInternal(size_in_bytes);
« no previous file with comments | « src/spaces.cc ('k') | src/store-buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698