Index: test/cctest/test-heap-profiler.cc |
diff --git a/test/cctest/test-heap-profiler.cc b/test/cctest/test-heap-profiler.cc |
index 54052ef560eb44b19fdaec6a8ca4c529f13d7a66..cc12d656d8697898e57d262cb90d290fe7cd51a0 100644 |
--- a/test/cctest/test-heap-profiler.cc |
+++ b/test/cctest/test-heap-profiler.cc |
@@ -668,7 +668,7 @@ TEST(HeapSnapshotAddressReuse) { |
CompileRun( |
"for (var i = 0; i < 10000; ++i)\n" |
" a[i] = new A();\n"); |
- CcTest::heap()->CollectAllGarbage(i::Heap::kNoGCFlags); |
+ CcTest::heap()->CollectAllGarbage(); |
const v8::HeapSnapshot* snapshot2 = heap_profiler->TakeHeapSnapshot(); |
CHECK(ValidateSnapshot(snapshot2)); |
@@ -710,7 +710,7 @@ TEST(HeapEntryIdsAndArrayShift) { |
"for (var i = 0; i < 1; ++i)\n" |
" a.shift();\n"); |
- CcTest::heap()->CollectAllGarbage(i::Heap::kNoGCFlags); |
+ CcTest::heap()->CollectAllGarbage(); |
const v8::HeapSnapshot* snapshot2 = heap_profiler->TakeHeapSnapshot(); |
CHECK(ValidateSnapshot(snapshot2)); |
@@ -751,7 +751,7 @@ TEST(HeapEntryIdsAndGC) { |
const v8::HeapSnapshot* snapshot1 = heap_profiler->TakeHeapSnapshot(); |
CHECK(ValidateSnapshot(snapshot1)); |
- CcTest::heap()->CollectAllGarbage(i::Heap::kNoGCFlags); |
+ CcTest::heap()->CollectAllGarbage(); |
const v8::HeapSnapshot* snapshot2 = heap_profiler->TakeHeapSnapshot(); |
CHECK(ValidateSnapshot(snapshot2)); |
@@ -1060,7 +1060,7 @@ TEST(HeapSnapshotObjectsStats) { |
// We have to call GC 6 times. In other case the garbage will be |
// the reason of flakiness. |
for (int i = 0; i < 6; ++i) { |
- CcTest::heap()->CollectAllGarbage(i::Heap::kNoGCFlags); |
+ CcTest::heap()->CollectAllGarbage(); |
} |
v8::SnapshotObjectId initial_id; |