Bug 1838629 - Part 3: Move main allocation functions into CellAllocator class r=sfink
commit886c245a5828b24793a24003e7c9b45a12b0c3fb
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)
tree6781a67e76ad0d094f4037aeb3fb540801fad907
parent4ebbf53580c4359650fbc670523d2eff617688ae
Bug 1838629 - Part 3: Move main allocation functions into CellAllocator class r=sfink

Eventually parts of nursery allocation are going to get inlined in Allocator.h
where the GCRuntime definition will not always be visible, so this moves a
bunch of stuff that doesn't rely on it to the allocator class.

Depends on D181190

Differential Revision: https://phabricator.services.mozilla.com/D181191
js/src/gc/Allocator.cpp
js/src/gc/Allocator.h
js/src/gc/GCRuntime.h