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
This commit is contained in:
ulan@chromium.org 2011-11-30 16:55:55 +00:00
parent d117e9d925
commit 59897dbe44
2 changed files with 4 additions and 3 deletions
src
test/cctest

View File

@ -1086,7 +1086,7 @@ void Heap::Scavenge() {
incremental_marking()->PrepareForScavenge();
AdvanceSweepers(new_space_.Size());
AdvanceSweepers(static_cast<int>(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<int>(step_size))) {
return false;
}
}

View File

@ -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);
}