зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1189906 - Remove the unused UseSavedRoots enum; r=jonco
--HG-- extra : rebase_source : 62ef5c2c63d11305dc30f9b1a76020a8705a2c77
This commit is contained in:
Родитель
6aaa2346d4
Коммит
2c74e200cd
|
@ -632,13 +632,7 @@ class GCRuntime
|
||||||
TraceRuntime,
|
TraceRuntime,
|
||||||
MarkRuntime
|
MarkRuntime
|
||||||
};
|
};
|
||||||
enum TraceRootsOrUsedSaved {
|
void markRuntime(JSTracer* trc, TraceOrMarkRuntime traceOrMark = TraceRuntime);
|
||||||
TraceRoots,
|
|
||||||
UseSavedRoots
|
|
||||||
};
|
|
||||||
void markRuntime(JSTracer* trc,
|
|
||||||
TraceOrMarkRuntime traceOrMark = TraceRuntime,
|
|
||||||
TraceRootsOrUsedSaved rootsSource = TraceRoots);
|
|
||||||
|
|
||||||
void notifyDidPaint();
|
void notifyDidPaint();
|
||||||
void shrinkBuffers();
|
void shrinkBuffers();
|
||||||
|
|
|
@ -331,14 +331,11 @@ js::gc::MarkPersistentRootedChains(JSTracer* trc)
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
js::gc::GCRuntime::markRuntime(JSTracer* trc,
|
js::gc::GCRuntime::markRuntime(JSTracer* trc, TraceOrMarkRuntime traceOrMark)
|
||||||
TraceOrMarkRuntime traceOrMark,
|
|
||||||
TraceRootsOrUsedSaved rootsSource)
|
|
||||||
{
|
{
|
||||||
gcstats::AutoPhase ap(stats, gcstats::PHASE_MARK_ROOTS);
|
gcstats::AutoPhase ap(stats, gcstats::PHASE_MARK_ROOTS);
|
||||||
|
|
||||||
MOZ_ASSERT(traceOrMark == TraceRuntime || traceOrMark == MarkRuntime);
|
MOZ_ASSERT(traceOrMark == TraceRuntime || traceOrMark == MarkRuntime);
|
||||||
MOZ_ASSERT(rootsSource == TraceRoots || rootsSource == UseSavedRoots);
|
|
||||||
|
|
||||||
MOZ_ASSERT(!rt->mainThread.suppressGC);
|
MOZ_ASSERT(!rt->mainThread.suppressGC);
|
||||||
|
|
||||||
|
|
|
@ -4201,7 +4201,7 @@ js::gc::MarkingValidator::nonIncrementalMark()
|
||||||
chunk->bitmap.clear();
|
chunk->bitmap.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
gc->markRuntime(gcmarker, GCRuntime::MarkRuntime, GCRuntime::UseSavedRoots);
|
gc->markRuntime(gcmarker, GCRuntime::MarkRuntime);
|
||||||
|
|
||||||
SliceBudget budget;
|
SliceBudget budget;
|
||||||
gc->incrementalState = MARK;
|
gc->incrementalState = MARK;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче