Bug 1163657 - Clean up setting of mFlags in CCGraphBuilder's ctor. r=smaug

This commit is contained in:
Andrew McCreight 2015-05-15 10:33:08 -07:00
parent 92314c1891
commit 63332cbc86

View File

@ -2165,19 +2165,16 @@ CCGraphBuilder::CCGraphBuilder(CCGraph& aGraph,
mJSZoneParticipant = aJSRuntime->ZoneParticipant();
}
uint32_t flags = 0;
if (!flags && mListener) {
flags = nsCycleCollectionTraversalCallback::WANT_DEBUG_INFO;
if (mListener) {
mFlags |= nsCycleCollectionTraversalCallback::WANT_DEBUG_INFO;
bool all = false;
mListener->GetWantAllTraces(&all);
if (all) {
flags |= nsCycleCollectionTraversalCallback::WANT_ALL_TRACES;
mFlags |= nsCycleCollectionTraversalCallback::WANT_ALL_TRACES;
mWantAllTraces = true; // for nsCycleCollectionNoteRootCallback
}
}
mFlags |= flags;
mMergeZones = mMergeZones && MOZ_LIKELY(!WantAllTraces());
MOZ_ASSERT(nsCycleCollectionNoteRootCallback::WantAllTraces() ==