| Index: src/heap.cc
|
| diff --git a/src/heap.cc b/src/heap.cc
|
| index 037a7a16ea2c246427f8ed12b61ccbfae7378466..7be53c51201027e8ee4b28a437fd41b9deed9f4a 100644
|
| --- a/src/heap.cc
|
| +++ b/src/heap.cc
|
| @@ -6204,7 +6204,7 @@ bool Heap::Contains(HeapObject* value) {
|
|
|
|
|
| bool Heap::Contains(Address addr) {
|
| - if (OS::IsOutsideAllocatedSpace(addr)) return false;
|
| + if (isolate_->memory_allocator()->IsOutsideAllocatedSpace(addr)) return false;
|
| return HasBeenSetUp() &&
|
| (new_space_.ToSpaceContains(addr) ||
|
| old_pointer_space_->Contains(addr) ||
|
| @@ -6223,7 +6223,7 @@ bool Heap::InSpace(HeapObject* value, AllocationSpace space) {
|
|
|
|
|
| bool Heap::InSpace(Address addr, AllocationSpace space) {
|
| - if (OS::IsOutsideAllocatedSpace(addr)) return false;
|
| + if (isolate_->memory_allocator()->IsOutsideAllocatedSpace(addr)) return false;
|
| if (!HasBeenSetUp()) return false;
|
|
|
| switch (space) {
|
|
|