Index: test/cctest/test-debug.cc |
diff --git a/test/cctest/test-debug.cc b/test/cctest/test-debug.cc |
index 640fafa283ec9943b97e90a56670bade12f33189..1e3f0ab707eab90451e4c762516ad0909bf53b6e 100644 |
--- a/test/cctest/test-debug.cc |
+++ b/test/cctest/test-debug.cc |
@@ -398,8 +398,7 @@ |
// Collect garbage to ensure weak handles are cleared. |
CcTest::heap()->CollectAllGarbage(); |
- CcTest::heap()->CollectAllGarbage("CheckDebuggerUnloaded", |
- Heap::kMakeHeapIterableMask); |
+ CcTest::heap()->CollectAllGarbage(Heap::kMakeHeapIterableMask); |
// Iterate the head and check that there are no debugger related objects left. |
HeapIterator iterator(CcTest::heap()); |
@@ -814,7 +813,7 @@ |
break_point_hit_count++; |
if (break_point_hit_count % 2 == 0) { |
// Scavenge. |
- CcTest::heap()->CollectGarbageNewSpace(); |
+ CcTest::heap()->CollectGarbage(v8::internal::NEW_SPACE); |
} else { |
// Mark sweep compact. |
CcTest::heap()->CollectAllGarbage(); |
@@ -838,7 +837,7 @@ |
// Run the garbage collector to enforce heap verification if option |
// --verify-heap is set. |
- CcTest::heap()->CollectGarbageNewSpace(); |
+ CcTest::heap()->CollectGarbage(v8::internal::NEW_SPACE); |
// Set the break flag again to come back here as soon as possible. |
v8::Debug::DebugBreak(CcTest::isolate()); |
@@ -1222,7 +1221,7 @@ |
CHECK_EQ(1 + i * 3, break_point_hit_count); |
// Scavenge and call function. |
- CcTest::heap()->CollectGarbageNewSpace(); |
+ CcTest::heap()->CollectGarbage(v8::internal::NEW_SPACE); |
f->Call(recv, 0, NULL); |
CHECK_EQ(2 + i * 3, break_point_hit_count); |