Bug 1166944 - Inline the only user of TraceObjectSlots; r=jonco

This commit is contained in:
Terrence Cole
2015-05-21 11:29:38 -07:00
parent dd5445dbf7
commit 0afe0593af
3 changed files with 5 additions and 18 deletions

View File

@@ -4113,7 +4113,11 @@ JSObject::traceChildren(JSTracer* trc)
{
GetObjectSlotNameFunctor func(nobj);
JS::AutoTracingDetails ctx(trc, func);
TraceObjectSlots(trc, nobj, 0, nobj->slotSpan());
JS::AutoTracingIndex index(trc);
for (uint32_t i = 0; i < nobj->slotSpan(); ++i) {
TraceManuallyBarrieredEdge(trc, nobj->getSlotRef(i).unsafeGet(), "object slot");
++index;
}
}
do {