Bug 956080 - Rename BeginCycleCollection to TraverseRoots. r=smaug

This commit is contained in:
Andrew McCreight 2014-01-07 17:33:47 -08:00
parent b59a3ba405
commit b0d96345f5
3 changed files with 4 additions and 4 deletions

View File

@ -872,7 +872,7 @@ CycleCollectedJSRuntime::ZoneParticipant()
}
nsresult
CycleCollectedJSRuntime::BeginCycleCollection(nsCycleCollectionNoteRootCallback &aCb)
CycleCollectedJSRuntime::TraverseRoots(nsCycleCollectionNoteRootCallback &aCb)
{
static bool gcHasRun = false;
if (!gcHasRun) {

View File

@ -194,7 +194,7 @@ public:
nsCycleCollectionParticipant* GCThingParticipant();
nsCycleCollectionParticipant* ZoneParticipant();
nsresult BeginCycleCollection(nsCycleCollectionNoteRootCallback &aCb);
nsresult TraverseRoots(nsCycleCollectionNoteRootCallback &aCb);
bool UsefulToMergeZones() const;
void FixWeakMappingGrayBits() const;
bool NeedCollect() const;

View File

@ -3157,8 +3157,8 @@ nsCycleCollector::BeginCollection(ccType aCCType,
mBuilder = new GCGraphBuilder(mGraph, mResults, mJSRuntime, mListener, mergeZones);
if (mJSRuntime) {
mJSRuntime->BeginCycleCollection(*mBuilder);
timeLog.Checkpoint("mJSRuntime->BeginCycleCollection()");
mJSRuntime->TraverseRoots(*mBuilder);
timeLog.Checkpoint("mJSRuntime->TraverseRoots()");
}
AutoRestore<bool> ar(mScanInProgress);