Index: src/heap/spaces.cc |
diff --git a/src/heap/spaces.cc b/src/heap/spaces.cc |
index bbb3402c0c29b8fa80242673f8a84a0528d26e06..655806d68ebc6154c45225f8382fd62e02fd3a91 100644 |
--- a/src/heap/spaces.cc |
+++ b/src/heap/spaces.cc |
@@ -1287,25 +1287,6 @@ bool PagedSpace::ContainsSlow(Address addr) { |
return false; |
} |
- |
-Object* PagedSpace::FindObject(Address addr) { |
- // Note: this function can only be called on iterable spaces. |
- DCHECK(!heap()->mark_compact_collector()->in_use()); |
- |
- if (!Contains(addr)) return Smi::kZero; // Signaling not found. |
- |
- Page* p = Page::FromAddress(addr); |
- HeapObjectIterator it(p); |
- for (HeapObject* obj = it.Next(); obj != NULL; obj = it.Next()) { |
- Address cur = obj->address(); |
- Address next = cur + obj->Size(); |
- if ((cur <= addr) && (addr < next)) return obj; |
- } |
- |
- UNREACHABLE(); |
- return Smi::kZero; |
-} |
- |
void PagedSpace::ShrinkImmortalImmovablePages() { |
DCHECK(!heap()->deserialization_complete()); |
MemoryChunk::UpdateHighWaterMark(allocation_info_.top()); |