Bug 1838629 - Part 1: Split nursery allocation functions to allow some parts to be...
commit8a2b874fd1e29ebf757870b5b40f019ede749856
authorJon Coppeard <jcoppeard@mozilla.com>
Wed, 21 Jun 2023 09:06:28 +0000 (21 09:06 +0000)
committerJon Coppeard <jcoppeard@mozilla.com>
Wed, 21 Jun 2023 09:06:28 +0000 (21 09:06 +0000)
treea06093412f355e0f441fe1d190a3e5e8cf01f34d
parent5b7452aadd1bda0ebc8d84a4bd909eed415f8ecf
Bug 1838629 - Part 1: Split nursery allocation functions to allow some parts to be inlined r=sfink

This splits the implementation of Nursery::allocate into tryAllocate and
handleAllocationFailure with the aim of allowing us to inline the tryAllocate
part.

Nursery::allocateCell is updated along the same lines.

Differential Revision: https://phabricator.services.mozilla.com/D181189
js/src/gc/Nursery.cpp
js/src/gc/Nursery.h