Index: test/cctest/heap/test-heap.cc |
diff --git a/test/cctest/heap/test-heap.cc b/test/cctest/heap/test-heap.cc |
index 80d3a0e84fe4c4e7a4a4291748b449396a1f22de..af5d2705dae15572ac32493f6b5c6c16c4e091db 100644 |
--- a/test/cctest/heap/test-heap.cc |
+++ b/test/cctest/heap/test-heap.cc |
@@ -5603,8 +5603,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); |