| Index: src/heap/spaces.cc
|
| diff --git a/src/heap/spaces.cc b/src/heap/spaces.cc
|
| index de752f3b780b5173be0aac9049c6b66a3414988d..38d3a9ad3d7d2474680de8ad6f82a7c800fb4f6e 100644
|
| --- a/src/heap/spaces.cc
|
| +++ b/src/heap/spaces.cc
|
| @@ -990,6 +990,16 @@ size_t PagedSpace::CommittedPhysicalMemory() {
|
| }
|
|
|
|
|
| +bool PagedSpace::ContainsSafe(Address addr) {
|
| + Page* p = Page::FromAddress(addr);
|
| + PageIterator iterator(this);
|
| + while (iterator.has_next()) {
|
| + if (iterator.next() == p) return true;
|
| + }
|
| + return false;
|
| +}
|
| +
|
| +
|
| Object* PagedSpace::FindObject(Address addr) {
|
| // Note: this function can only be called on iterable spaces.
|
| DCHECK(!heap()->mark_compact_collector()->in_use());
|
|
|