| Index: test/cctest/test-mark-compact.cc
|
| diff --git a/test/cctest/test-mark-compact.cc b/test/cctest/test-mark-compact.cc
|
| index e4ac1b7c576b066384f379d6138211983435be60..531b1f77bbbd6dbe80b6363f896b55c403f2ac8f 100644
|
| --- a/test/cctest/test-mark-compact.cc
|
| +++ b/test/cctest/test-mark-compact.cc
|
| @@ -94,7 +94,7 @@ TEST(Promotion) {
|
| CHECK(Heap::InSpace(*array, NEW_SPACE));
|
|
|
| // Call the m-c collector, so array becomes an old object.
|
| - CHECK(Heap::CollectGarbage(0, OLD_POINTER_SPACE));
|
| + Heap::CollectGarbage(OLD_POINTER_SPACE);
|
|
|
| // Array now sits in the old space
|
| CHECK(Heap::InSpace(*array, OLD_POINTER_SPACE));
|
| @@ -111,7 +111,7 @@ TEST(NoPromotion) {
|
| v8::HandleScope sc;
|
|
|
| // Do a mark compact GC to shrink the heap.
|
| - CHECK(Heap::CollectGarbage(0, OLD_POINTER_SPACE));
|
| + Heap::CollectGarbage(OLD_POINTER_SPACE);
|
|
|
| // Allocate a big Fixed array in the new space.
|
| int size = (Heap::MaxObjectSizeInPagedSpace() - FixedArray::kHeaderSize) /
|
| @@ -134,7 +134,7 @@ TEST(NoPromotion) {
|
| }
|
|
|
| // Call mark compact GC, and it should pass.
|
| - CHECK(Heap::CollectGarbage(0, OLD_POINTER_SPACE));
|
| + Heap::CollectGarbage(OLD_POINTER_SPACE);
|
|
|
| // array should not be promoted because the old space is full.
|
| CHECK(Heap::InSpace(*array, NEW_SPACE));
|
| @@ -146,7 +146,7 @@ TEST(MarkCompactCollector) {
|
|
|
| v8::HandleScope sc;
|
| // call mark-compact when heap is empty
|
| - CHECK(Heap::CollectGarbage(0, OLD_POINTER_SPACE));
|
| + Heap::CollectGarbage(OLD_POINTER_SPACE);
|
|
|
| // keep allocating garbage in new space until it fails
|
| const int ARRAY_SIZE = 100;
|
| @@ -154,7 +154,7 @@ TEST(MarkCompactCollector) {
|
| do {
|
| array = Heap::AllocateFixedArray(ARRAY_SIZE);
|
| } while (!array->IsFailure());
|
| - CHECK(Heap::CollectGarbage(0, NEW_SPACE));
|
| + Heap::CollectGarbage(NEW_SPACE);
|
|
|
| array = Heap::AllocateFixedArray(ARRAY_SIZE);
|
| CHECK(!array->IsFailure());
|
| @@ -164,7 +164,7 @@ TEST(MarkCompactCollector) {
|
| do {
|
| mapp = Heap::AllocateMap(JS_OBJECT_TYPE, JSObject::kHeaderSize);
|
| } while (!mapp->IsFailure());
|
| - CHECK(Heap::CollectGarbage(0, MAP_SPACE));
|
| + Heap::CollectGarbage(MAP_SPACE);
|
| mapp = Heap::AllocateMap(JS_OBJECT_TYPE, JSObject::kHeaderSize);
|
| CHECK(!mapp->IsFailure());
|
|
|
| @@ -182,7 +182,7 @@ TEST(MarkCompactCollector) {
|
| Top::context()->global()->SetProperty(func_name, function, NONE);
|
|
|
| JSObject* obj = JSObject::cast(Heap::AllocateJSObject(function));
|
| - CHECK(Heap::CollectGarbage(0, OLD_POINTER_SPACE));
|
| + Heap::CollectGarbage(OLD_POINTER_SPACE);
|
|
|
| func_name = String::cast(Heap::LookupAsciiSymbol("theFunction"));
|
| CHECK(Top::context()->global()->HasLocalProperty(func_name));
|
| @@ -196,7 +196,7 @@ TEST(MarkCompactCollector) {
|
| String* prop_name = String::cast(Heap::LookupAsciiSymbol("theSlot"));
|
| obj->SetProperty(prop_name, Smi::FromInt(23), NONE);
|
|
|
| - CHECK(Heap::CollectGarbage(0, OLD_POINTER_SPACE));
|
| + Heap::CollectGarbage(OLD_POINTER_SPACE);
|
|
|
| obj_name = String::cast(Heap::LookupAsciiSymbol("theObject"));
|
| CHECK(Top::context()->global()->HasLocalProperty(obj_name));
|
| @@ -264,7 +264,7 @@ TEST(GCCallback) {
|
| CHECK_EQ(0, gc_starts);
|
| CHECK_EQ(gc_ends, gc_starts);
|
|
|
| - CHECK(Heap::CollectGarbage(0, OLD_POINTER_SPACE));
|
| + Heap::CollectGarbage(OLD_POINTER_SPACE);
|
| CHECK_EQ(1, gc_starts);
|
| CHECK_EQ(gc_ends, gc_starts);
|
| }
|
| @@ -317,7 +317,7 @@ TEST(ObjectGroups) {
|
| GlobalHandles::AddGroup(g2_objects, 2);
|
| }
|
| // Do a full GC
|
| - CHECK(Heap::CollectGarbage(0, OLD_POINTER_SPACE));
|
| + Heap::CollectGarbage(OLD_POINTER_SPACE);
|
|
|
| // All object should be alive.
|
| CHECK_EQ(0, NumberOfWeakCalls);
|
| @@ -335,7 +335,7 @@ TEST(ObjectGroups) {
|
| GlobalHandles::AddGroup(g2_objects, 2);
|
| }
|
|
|
| - CHECK(Heap::CollectGarbage(0, OLD_POINTER_SPACE));
|
| + Heap::CollectGarbage(OLD_POINTER_SPACE);
|
|
|
| // All objects should be gone. 5 global handles in total.
|
| CHECK_EQ(5, NumberOfWeakCalls);
|
|
|