From 59897dbe44f4a47befc5ced64e2349a2e5f31caf Mon Sep 17 00:00:00 2001 From: "ulan@chromium.org" Date: Wed, 30 Nov 2011 16:55:55 +0000 Subject: [PATCH] Fix compile errors on Windows and Mac introduced by r10093. BUG= TEST= Review URL: http://codereview.chromium.org/8746021 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@10099 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/heap.cc | 5 +++-- test/cctest/test-heap.cc | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/heap.cc b/src/heap.cc index 868ae48001..f948c6c88f 100644 --- a/src/heap.cc +++ b/src/heap.cc @@ -1086,7 +1086,7 @@ void Heap::Scavenge() { incremental_marking()->PrepareForScavenge(); - AdvanceSweepers(new_space_.Size()); + AdvanceSweepers(static_cast(new_space_.Size())); // Flip the semispaces. After flipping, to space is empty, from space has // live objects. @@ -4559,7 +4559,8 @@ bool Heap::IdleNotification(int hint) { intptr_t step_size = size_factor * IncrementalMarking::kAllocatedThreshold; if (incremental_marking()->IsStopped()) { - if (!IsSweepingComplete() && !AdvanceSweepers(step_size)) { + if (!IsSweepingComplete() && + !AdvanceSweepers(static_cast(step_size))) { return false; } } diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc index 3daf81991d..71f9ac5b3f 100644 --- a/test/cctest/test-heap.cc +++ b/test/cctest/test-heap.cc @@ -1313,7 +1313,7 @@ TEST(IdleNotificationAdvancesIncrementalMarking) { } intptr_t old_size = HEAP->SizeOfObjects(); bool no_idle_work = v8::V8::IdleNotification(); - while (!v8::V8::IdleNotification()); + while (!v8::V8::IdleNotification()) ; intptr_t new_size = HEAP->SizeOfObjects(); CHECK(no_idle_work || new_size < 3 * old_size / 4); }