Bug 1149352 - Part 8: Move Object marking to TraceEdge; r=jonco

This commit is contained in:
Terrence Cole
2015-03-30 16:08:06 -07:00
parent 09d02cf58b
commit 266d818bdd
42 changed files with 175 additions and 223 deletions

View File

@@ -60,12 +60,12 @@ NativeIterator::mark(JSTracer* trc)
for (HeapPtrFlatString* str = begin(); str < end(); str++)
TraceEdge(trc, str, "prop");
if (obj)
MarkObject(trc, &obj, "obj");
TraceEdge(trc, &obj, "obj");
// The SuppressDeletedPropertyHelper loop can GC, so make sure that if the
// GC removes any elements from the list, it won't remove this one.
if (iterObj_)
MarkObjectUnbarriered(trc, &iterObj_, "iterObj");
TraceManuallyBarrieredEdge(trc, &iterObj_, "iterObj");
}
struct IdHashPolicy {