Bug 1838629 - Part 6: Add a nursery pointer to RootingContext r=sfink
commit44b16b3f3e2ceecfb003376bbaa9744c5a46e353
authorJon Coppeard <jcoppeard@mozilla.com>
Wed, 21 Jun 2023 09:06:29 +0000 (21 09:06 +0000)
committerJon Coppeard <jcoppeard@mozilla.com>
Wed, 21 Jun 2023 09:06:29 +0000 (21 09:06 +0000)
treed1f323e1bedd4e0b6e8db79b10c5db6f8dd31107
parent85ab48748ee7cf2e5687f891da24025eceef2e7a
Bug 1838629 - Part 6: Add a nursery pointer to RootingContext r=sfink

The inlined allocation functions are going to need to get a pointer to the
nursery without going through JSContext, which may not be visible (in fact this
causes a header dependency cycle if we try to include it in Allocator.h).

This adds a nursery pointer to JSContext's superclass. This already contains
zone and realm pointers for similar reasons.

Depends on D181193

Differential Revision: https://phabricator.services.mozilla.com/D181194
js/public/RootingAPI.h
js/src/jsfriendapi.cpp
js/src/vm/JSContext-inl.h
js/src/vm/JSContext.cpp
js/src/vm/JSContext.h