| Index: src/spaces-inl.h
|
| diff --git a/src/spaces-inl.h b/src/spaces-inl.h
|
| index 8a0dd07c2008ae72d79ded48cf49ad21b5e26127..78062232166145cc88a09837ce3b2aee50672f2a 100644
|
| --- a/src/spaces-inl.h
|
| +++ b/src/spaces-inl.h
|
| @@ -430,7 +430,7 @@ HeapObject* PagedSpace::AllocateLinearly(AllocationInfo* alloc_info,
|
|
|
|
|
| // Raw allocation.
|
| -Object* PagedSpace::AllocateRaw(int size_in_bytes) {
|
| +MaybeObject* PagedSpace::AllocateRaw(int size_in_bytes) {
|
| ASSERT(HasBeenSetup());
|
| ASSERT_OBJECT_SIZE(size_in_bytes);
|
| HeapObject* object = AllocateLinearly(&allocation_info_, size_in_bytes);
|
| @@ -444,7 +444,7 @@ Object* PagedSpace::AllocateRaw(int size_in_bytes) {
|
|
|
|
|
| // Reallocating (and promoting) objects during a compacting collection.
|
| -Object* PagedSpace::MCAllocateRaw(int size_in_bytes) {
|
| +MaybeObject* PagedSpace::MCAllocateRaw(int size_in_bytes) {
|
| ASSERT(HasBeenSetup());
|
| ASSERT_OBJECT_SIZE(size_in_bytes);
|
| HeapObject* object = AllocateLinearly(&mc_forwarding_info_, size_in_bytes);
|
| @@ -471,8 +471,8 @@ HeapObject* LargeObjectChunk::GetObject() {
|
| // -----------------------------------------------------------------------------
|
| // LargeObjectSpace
|
|
|
| -Object* NewSpace::AllocateRawInternal(int size_in_bytes,
|
| - AllocationInfo* alloc_info) {
|
| +MaybeObject* NewSpace::AllocateRawInternal(int size_in_bytes,
|
| + AllocationInfo* alloc_info) {
|
| Address new_top = alloc_info->top + size_in_bytes;
|
| if (new_top > alloc_info->limit) return Failure::RetryAfterGC();
|
|
|
|
|