Bug 1189906 - Remove the unused UseSavedRoots enum; r=jonco

This commit is contained in:
Terrence Cole 2015-07-31 13:07:13 -07:00
parent fc9b5da650
commit 43fd045479
3 changed files with 3 additions and 12 deletions

View File

@ -632,13 +632,7 @@ class GCRuntime
TraceRuntime,
MarkRuntime
};
enum TraceRootsOrUsedSaved {
TraceRoots,
UseSavedRoots
};
void markRuntime(JSTracer* trc,
TraceOrMarkRuntime traceOrMark = TraceRuntime,
TraceRootsOrUsedSaved rootsSource = TraceRoots);
void markRuntime(JSTracer* trc, TraceOrMarkRuntime traceOrMark = TraceRuntime);
void notifyDidPaint();
void shrinkBuffers();

View File

@ -331,14 +331,11 @@ js::gc::MarkPersistentRootedChains(JSTracer* trc)
}
void
js::gc::GCRuntime::markRuntime(JSTracer* trc,
TraceOrMarkRuntime traceOrMark,
TraceRootsOrUsedSaved rootsSource)
js::gc::GCRuntime::markRuntime(JSTracer* trc, TraceOrMarkRuntime traceOrMark)
{
gcstats::AutoPhase ap(stats, gcstats::PHASE_MARK_ROOTS);
MOZ_ASSERT(traceOrMark == TraceRuntime || traceOrMark == MarkRuntime);
MOZ_ASSERT(rootsSource == TraceRoots || rootsSource == UseSavedRoots);
MOZ_ASSERT(!rt->mainThread.suppressGC);

View File

@ -4201,7 +4201,7 @@ js::gc::MarkingValidator::nonIncrementalMark()
chunk->bitmap.clear();
}
gc->markRuntime(gcmarker, GCRuntime::MarkRuntime, GCRuntime::UseSavedRoots);
gc->markRuntime(gcmarker, GCRuntime::MarkRuntime);
SliceBudget budget;
gc->incrementalState = MARK;