mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 04:41:11 +00:00
Bug 1931429 - Remove unused public nursery configuration helpers r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D229058
This commit is contained in:
parent
4067ba76e8
commit
a17b296e1b
@ -774,14 +774,6 @@ static MOZ_ALWAYS_INLINE bool GCThingIsMarkedGrayInCC(GCCellPtr thing) {
|
||||
|
||||
extern JS_PUBLIC_API JS::TraceKind GCThingTraceKind(void* thing);
|
||||
|
||||
extern JS_PUBLIC_API void EnableNurseryStrings(JSContext* cx);
|
||||
|
||||
extern JS_PUBLIC_API void DisableNurseryStrings(JSContext* cx);
|
||||
|
||||
extern JS_PUBLIC_API void EnableNurseryBigInts(JSContext* cx);
|
||||
|
||||
extern JS_PUBLIC_API void DisableNurseryBigInts(JSContext* cx);
|
||||
|
||||
/*
|
||||
* Returns true when writes to GC thing pointers (and reads from weak pointers)
|
||||
* must call an incremental barrier. This is generally only true when running
|
||||
|
@ -2543,27 +2543,3 @@ void js::Nursery::sweepMapAndSetObjects() {
|
||||
}
|
||||
|
||||
void js::Nursery::joinDecommitTask() { decommitTask->join(); }
|
||||
|
||||
JS_PUBLIC_API void JS::EnableNurseryStrings(JSContext* cx) {
|
||||
AutoEmptyNursery empty(cx);
|
||||
ReleaseAllJITCode(cx->gcContext());
|
||||
cx->runtime()->gc.nursery().enableStrings();
|
||||
}
|
||||
|
||||
JS_PUBLIC_API void JS::DisableNurseryStrings(JSContext* cx) {
|
||||
AutoEmptyNursery empty(cx);
|
||||
ReleaseAllJITCode(cx->gcContext());
|
||||
cx->runtime()->gc.nursery().disableStrings();
|
||||
}
|
||||
|
||||
JS_PUBLIC_API void JS::EnableNurseryBigInts(JSContext* cx) {
|
||||
AutoEmptyNursery empty(cx);
|
||||
ReleaseAllJITCode(cx->gcContext());
|
||||
cx->runtime()->gc.nursery().enableBigInts();
|
||||
}
|
||||
|
||||
JS_PUBLIC_API void JS::DisableNurseryBigInts(JSContext* cx) {
|
||||
AutoEmptyNursery empty(cx);
|
||||
ReleaseAllJITCode(cx->gcContext());
|
||||
cx->runtime()->gc.nursery().disableBigInts();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user