Index: test/cctest/test-heap-profiler.cc |
diff --git a/test/cctest/test-heap-profiler.cc b/test/cctest/test-heap-profiler.cc |
index 61aa4bf1063584f2807c960ef5ec08b624834d17..59f7a258b1094fa5a0ddb2b2e42a2170f2560f55 100644 |
--- a/test/cctest/test-heap-profiler.cc |
+++ b/test/cctest/test-heap-profiler.cc |
@@ -505,7 +505,7 @@ TEST(HeapSnapshotAddressReuse) { |
CompileRun( |
"for (var i = 0; i < 10000; ++i)\n" |
" a[i] = new A();\n"); |
- HEAP->CollectAllGarbage(i::Heap::kNoGCFlags); |
+ CcTest::heap()->CollectAllGarbage(i::Heap::kNoGCFlags); |
const v8::HeapSnapshot* snapshot2 = |
heap_profiler->TakeHeapSnapshot(v8_str("snapshot2")); |
@@ -549,7 +549,7 @@ TEST(HeapEntryIdsAndArrayShift) { |
"for (var i = 0; i < 1; ++i)\n" |
" a.shift();\n"); |
- HEAP->CollectAllGarbage(i::Heap::kNoGCFlags); |
+ CcTest::heap()->CollectAllGarbage(i::Heap::kNoGCFlags); |
const v8::HeapSnapshot* snapshot2 = |
heap_profiler->TakeHeapSnapshot(v8_str("s2")); |
@@ -594,7 +594,7 @@ TEST(HeapEntryIdsAndGC) { |
heap_profiler->TakeHeapSnapshot(s1_str); |
CHECK(ValidateSnapshot(snapshot1)); |
- HEAP->CollectAllGarbage(i::Heap::kNoGCFlags); |
+ CcTest::heap()->CollectAllGarbage(i::Heap::kNoGCFlags); |
const v8::HeapSnapshot* snapshot2 = |
heap_profiler->TakeHeapSnapshot(s2_str); |
@@ -901,7 +901,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) { |
- HEAP->CollectAllGarbage(i::Heap::kNoGCFlags); |
+ CcTest::heap()->CollectAllGarbage(i::Heap::kNoGCFlags); |
} |
v8::SnapshotObjectId initial_id; |