summaryrefslogtreecommitdiff
path: root/deps/v8/src/heap/local-heap-inl.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/heap/local-heap-inl.h')
-rw-r--r--deps/v8/src/heap/local-heap-inl.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/deps/v8/src/heap/local-heap-inl.h b/deps/v8/src/heap/local-heap-inl.h
index 030e5b1932..abff7072df 100644
--- a/deps/v8/src/heap/local-heap-inl.h
+++ b/deps/v8/src/heap/local-heap-inl.h
@@ -72,7 +72,8 @@ Address LocalHeap::AllocateRawOrFail(int object_size, AllocationType type,
AllocationAlignment alignment) {
DCHECK(!FLAG_enable_third_party_heap);
AllocationResult result = AllocateRaw(object_size, type, origin, alignment);
- if (!result.IsRetry()) return result.ToObject().address();
+ HeapObject object;
+ if (result.To(&object)) return object.address();
return PerformCollectionAndAllocateAgain(object_size, type, origin,
alignment);
}