зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1600596: Remove unused functions UninlinedIsInsideNursery and PushArena. r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D55435 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
2f552606a6
Коммит
33766e4d76
|
@ -8122,10 +8122,6 @@ AutoSuppressGC::AutoSuppressGC(JSContext* cx)
|
|||
suppressGC_++;
|
||||
}
|
||||
|
||||
bool js::UninlinedIsInsideNursery(const gc::Cell* cell) {
|
||||
return IsInsideNursery(cell);
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
AutoDisableProxyCheck::AutoDisableProxyCheck() {
|
||||
TlsContext.get()->disableStrictProxyChecking();
|
||||
|
|
|
@ -197,9 +197,6 @@ struct MOZ_RAII AutoDisableCompactingGC {
|
|||
JSContext* cx;
|
||||
};
|
||||
|
||||
// This is the same as IsInsideNursery, but not inlined.
|
||||
bool UninlinedIsInsideNursery(const gc::Cell* cell);
|
||||
|
||||
} /* namespace js */
|
||||
|
||||
#endif /* gc_GC_h */
|
||||
|
|
|
@ -2734,26 +2734,6 @@ inline void GCMarker::appendToDelayedMarkingList(Arena** listTail,
|
|||
*listTail = arena;
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
static void PushArenaTyped(GCMarker* gcmarker, Arena* arena) {
|
||||
for (ArenaCellIterUnderGC i(arena); !i.done(); i.next()) {
|
||||
gcmarker->traverse(i.get<T>());
|
||||
}
|
||||
}
|
||||
|
||||
struct PushArenaFunctor {
|
||||
template <typename T>
|
||||
void operator()(GCMarker* gcmarker, Arena* arena) {
|
||||
PushArenaTyped<T>(gcmarker, arena);
|
||||
}
|
||||
};
|
||||
|
||||
void gc::PushArena(GCMarker* gcmarker, Arena* arena) {
|
||||
DispatchTraceKindTyped(PushArenaFunctor(),
|
||||
MapAllocToTraceKind(arena->getAllocKind()), gcmarker,
|
||||
arena);
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
void GCMarker::checkZone(void* p) {
|
||||
MOZ_ASSERT(started);
|
||||
|
|
|
@ -38,14 +38,9 @@ bool IsTracerKind(JSTracer* trc, JS::CallbackTracer::TracerKind kind);
|
|||
|
||||
namespace gc {
|
||||
|
||||
class Arena;
|
||||
struct Cell;
|
||||
class TenuredCell;
|
||||
|
||||
/*** Special Cases ***/
|
||||
|
||||
void PushArena(GCMarker* gcmarker, Arena* arena);
|
||||
|
||||
/*** Liveness ***/
|
||||
|
||||
// The IsMarkedInternal and IsAboutToBeFinalizedInternal function templates are
|
||||
|
|
|
@ -76,12 +76,6 @@ const void* CompileRuntime::addressOfZone() {
|
|||
return runtime()->mainContextFromAnyThread()->addressOfZone();
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
bool CompileRuntime::isInsideNursery(gc::Cell* cell) {
|
||||
return UninlinedIsInsideNursery(cell);
|
||||
}
|
||||
#endif
|
||||
|
||||
const DOMCallbacks* CompileRuntime::DOMcallbacks() {
|
||||
return runtime()->DOMcallbacks;
|
||||
}
|
||||
|
|
|
@ -49,10 +49,6 @@ class CompileRuntime {
|
|||
const void* addressOfInterruptBits();
|
||||
const void* addressOfZone();
|
||||
|
||||
#ifdef DEBUG
|
||||
bool isInsideNursery(gc::Cell* cell);
|
||||
#endif
|
||||
|
||||
// DOM callbacks must be threadsafe (and will hopefully be removed soon).
|
||||
const DOMCallbacks* DOMcallbacks();
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче