Fix compilation of GrowAndShrinkNewSpace on Mac.

R=jkummerow@chromium.org
BUG=v8:1707
TEST=cctest/test-heap/GrowAndShrinkNewSpace

Review URL: http://codereview.chromium.org/7989009

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@9405 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent ad9290a6
......@@ -1231,7 +1231,7 @@ TEST(GrowAndShrinkNewSpace) {
old_capacity = new_space->Capacity();
new_space->Grow();
new_capacity = new_space->Capacity();
CHECK_EQ(2 * old_capacity, new_capacity);
CHECK(2 * old_capacity == new_capacity);
// Fill up new space to the point that it is completely full. Make sure
// that the scavenger does not undo the filling.
......@@ -1246,13 +1246,13 @@ TEST(GrowAndShrinkNewSpace) {
}
}
new_capacity = new_space->Capacity();
CHECK_EQ(old_capacity, new_capacity);
CHECK(old_capacity == new_capacity);
// Explicitly shrinking should not affect space capacity.
old_capacity = new_space->Capacity();
new_space->Shrink();
new_capacity = new_space->Capacity();
CHECK_EQ(old_capacity, new_capacity);
CHECK(old_capacity == new_capacity);
// Let the scavenger empty the new space.
HEAP->CollectGarbage(NEW_SPACE);
......@@ -1262,7 +1262,7 @@ TEST(GrowAndShrinkNewSpace) {
old_capacity = new_space->Capacity();
new_space->Shrink();
new_capacity = new_space->Capacity();
CHECK_EQ(old_capacity, 2 * new_capacity);
CHECK(old_capacity == 2 * new_capacity);
// Consecutive shrinking should not affect space capacity.
old_capacity = new_space->Capacity();
......@@ -1270,5 +1270,5 @@ TEST(GrowAndShrinkNewSpace) {
new_space->Shrink();
new_space->Shrink();
new_capacity = new_space->Capacity();
CHECK_EQ(old_capacity, new_capacity);
CHECK(old_capacity == new_capacity);
}
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