Index: test/cctest/test-alloc.cc |
diff --git a/test/cctest/test-alloc.cc b/test/cctest/test-alloc.cc |
index bc9844004554693ec3d51c373e49f59a85484cfc..7a5979a951013f10b1186342415b807fcb6ca3ab 100644 |
--- a/test/cctest/test-alloc.cc |
+++ b/test/cctest/test-alloc.cc |
@@ -37,7 +37,7 @@ using namespace v8::internal; |
static MaybeObject* AllocateAfterFailures() { |
static int attempts = 0; |
if (++attempts < 3) return Failure::RetryAfterGC(); |
- Heap* heap = CcTest::i_isolate()->heap(); |
+ Heap* heap = CcTest::heap(); |
// New space. |
SimulateFullSpace(heap->new_space()); |