Commit 59897dbe authored by ulan@chromium.org's avatar ulan@chromium.org

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
parent d117e9d9
......@@ -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;
}
}
......
......@@ -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);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment