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

Unified Diff: src/mark-compact.cc

Issue 380263002: Fix windows compile, again. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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/mark-compact.h ('k') | src/spaces.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/mark-compact.cc
diff --git a/src/mark-compact.cc b/src/mark-compact.cc
index 9a89402c17c16daad2fd64a74fa83c76a9cf79be..5b584e9e25df5c726e9dcf83a32b8c8eab00b2a1 100644
--- a/src/mark-compact.cc
+++ b/src/mark-compact.cc
@@ -4068,20 +4068,20 @@ intptr_t MarkCompactCollector::SweepConservatively(PagedSpace* space,
int MarkCompactCollector::SweepInParallel(PagedSpace* space,
- intptr_t required_freed_bytes) {
+ int required_freed_bytes) {
PageIterator it(space);
FreeList* free_list = space == heap()->old_pointer_space()
? free_list_old_pointer_space_.get()
: free_list_old_data_space_.get();
FreeList private_free_list(space);
- intptr_t max_freed = 0;
- intptr_t max_freed_overall = 0;
+ int max_freed = 0;
+ int max_freed_overall = 0;
while (it.has_next()) {
Page* p = it.next();
if (p->TryParallelSweeping()) {
- max_freed = SweepConservatively<SWEEP_IN_PARALLEL>(
- space, &private_free_list, p);
+ max_freed = static_cast<int>(SweepConservatively<SWEEP_IN_PARALLEL>(
Dmitry Lomov (no reviews) 2014/07/10 17:06:54 Please ASSERT no overflow
Hannes Payer (out of office) 2014/07/10 17:13:11 Done.
+ space, &private_free_list, p));
free_list->Concatenate(&private_free_list);
if (required_freed_bytes > 0 && max_freed >= required_freed_bytes) {
return max_freed;
« no previous file with comments | « src/mark-compact.h ('k') | src/spaces.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698