| Index: src/heap/spaces.h
|
| diff --git a/src/heap/spaces.h b/src/heap/spaces.h
|
| index 9ecb3c432eb0ac279eeb819e55a80d6d7180a553..1a8944995d32d419213214de5ce977c326a6205f 100644
|
| --- a/src/heap/spaces.h
|
| +++ b/src/heap/spaces.h
|
| @@ -2728,6 +2728,8 @@ class LargeObjectSpace : public Space {
|
| MUST_USE_RESULT AllocationResult
|
| AllocateRaw(int object_size, Executability executable);
|
|
|
| + bool CanAllocateSize(int size) { return Size() + size <= max_capacity_; }
|
| +
|
| // Available bytes for objects in this space.
|
| inline intptr_t Available();
|
|
|
|
|