Bug 1721549 - Add JS::GCReason::FIRST_RESERVED_REASON r=sfink

Since this would be useful let's add it.

Differential Revision: https://phabricator.services.mozilla.com/D120707
This commit is contained in:
Jon Coppeard 2021-07-23 17:48:16 +00:00
parent c03526cc1d
commit 96e702158d

View File

@ -581,7 +581,7 @@ namespace JS {
D(HTML_PARSER, 55) \
\
/* Reasons reserved for embeddings. */ \
D(RESERVED1, 90) \
D(RESERVED1, FIRST_RESERVED_REASON) \
D(RESERVED2, 91) \
D(RESERVED3, 92) \
D(RESERVED4, 93) \
@ -593,6 +593,7 @@ namespace JS {
enum class GCReason {
FIRST_FIREFOX_REASON = 33,
FIRST_RESERVED_REASON = 90,
#define MAKE_REASON(name, val) name = val,
GCREASONS(MAKE_REASON)