| Index: src/heap/spaces-inl.h
|
| diff --git a/src/heap/spaces-inl.h b/src/heap/spaces-inl.h
|
| index faf18e07a6808630db715cb7419dc67ec16ee2cf..685611e8151527a150a952be9ce47d28b64c0167 100644
|
| --- a/src/heap/spaces-inl.h
|
| +++ b/src/heap/spaces-inl.h
|
| @@ -249,9 +249,7 @@ void MemoryChunk::IncrementLiveBytes(int by) {
|
| }
|
|
|
| bool PagedSpace::Contains(Address addr) {
|
| - Page* p = Page::FromAddress(addr);
|
| - if (!Page::IsValid(p)) return false;
|
| - return p->owner() == this;
|
| + return MemoryChunk::FromAnyPointerAddress(heap(), addr)->owner() == this;
|
| }
|
|
|
| bool PagedSpace::Contains(Object* o) {
|
|
|