Remove isVerifyPreBarriersEnabled() stub and callers

This commit is contained in:
wolfbeast 2017-06-26 22:51:31 +02:00 • committed by Roy Tam
commit a2355a9bc6
4 changed files with 2 additions and 6 deletions

View file

@ -838,8 +838,6 @@ class GCRuntime
AutoMaybeStartBackgroundAllocation& maybeStartBGAlloc);
void recycleChunk(Chunk* chunk, const AutoLockGC& lock);
bool isVerifyPreBarriersEnabled() const { return false; }
// Free certain LifoAlloc blocks when it is safe to do so.
void freeUnusedLifoBlocksAfterSweeping(LifoAlloc* lifo);
void freeAllLifoBlocksAfterSweeping(LifoAlloc* lifo);

View file

@ -188,7 +188,6 @@ void
js::Nursery::enable()
{
MOZ_ASSERT(isEmpty());
MOZ_ASSERT(!runtime()->gc.isVerifyPreBarriersEnabled());
if (isEnabled())
return;

View file

@ -6744,7 +6744,7 @@ JS::IsIncrementalGCEnabled(JSContext* cx)
JS_PUBLIC_API(bool)
JS::IsIncrementalGCInProgress(JSContext* cx)
{
return cx->gc.isIncrementalGCInProgress() && !cx->gc.isVerifyPreBarriersEnabled();
return cx->gc.isIncrementalGCInProgress();
}
JS_PUBLIC_API(bool)

View file

@ -868,8 +868,7 @@ bool
JSRuntime::activeGCInAtomsZone()
{
Zone* zone = atomsCompartment_->zone();
return (zone->needsIncrementalBarrier() && !gc.isVerifyPreBarriersEnabled()) ||
zone->wasGCStarted();
return zone->needsIncrementalBarrier() || zone->wasGCStarted();
}
void