Index: test/cctest/heap/test-heap.cc |
diff --git a/test/cctest/heap/test-heap.cc b/test/cctest/heap/test-heap.cc |
index f5705488bd150a5a432dbd2ccf23af478249ba29..3bc9c5e57666bf8df0a85ffebe71a27743e38f2b 100644 |
--- a/test/cctest/heap/test-heap.cc |
+++ b/test/cctest/heap/test-heap.cc |
@@ -5527,8 +5527,8 @@ TEST(Regress507979) { |
Handle<FixedArray> o1 = isolate->factory()->NewFixedArray(kFixedArrayLen); |
Handle<FixedArray> o2 = isolate->factory()->NewFixedArray(kFixedArrayLen); |
- CHECK(heap->InNewSpace(o1->address())); |
- CHECK(heap->InNewSpace(o2->address())); |
+ CHECK(heap->InNewSpace(*o1)); |
+ CHECK(heap->InNewSpace(*o2)); |
HeapIterator it(heap, i::HeapIterator::kFilterUnreachable); |