| Index: src/heap-inl.h
|
| diff --git a/src/heap-inl.h b/src/heap-inl.h
|
| index bb79b47d480c35c102673d10d8cc0affd85fd983..3bd479d008b9830d367c77c0374bbf0a1ec15512 100644
|
| --- a/src/heap-inl.h
|
| +++ b/src/heap-inl.h
|
| @@ -254,7 +254,7 @@ MaybeObject* Heap::AllocateRawCell() {
|
|
|
|
|
| bool Heap::InNewSpace(Object* object) {
|
| - bool result = new_space_.Contains(object);
|
| + bool result = new_space_.PageContains(object);
|
| ASSERT(!result || // Either not in new space
|
| gc_state_ != NOT_IN_GC || // ... or in the middle of GC
|
| InToSpace(object)); // ... or in to-space (where we allocate).
|
| @@ -267,6 +267,11 @@ bool Heap::InNewSpace(Address addr) {
|
| }
|
|
|
|
|
| +bool Heap::InNewSpacePage(Address addr) {
|
| + return new_space_.PageContains(addr);
|
| +}
|
| +
|
| +
|
| bool Heap::InFromSpace(Object* object) {
|
| return new_space_.FromSpaceContains(object);
|
| }
|
|
|