Bug 727281 - Make JSObject* for Root and Barriered marking indirect; r=billm

This will allow us to move HeapPtr and rooted objects when tracing.
This commit is contained in:
Terrence Cole
2012-02-14 15:19:55 -08:00
parent 3353476ebb
commit d5bba64499
22 changed files with 152 additions and 103 deletions

View File

@@ -148,9 +148,9 @@ void
NativeIterator::mark(JSTracer *trc)
{
for (HeapPtr<JSFlatString> *str = begin(); str < end(); str++)
MarkString(trc, *str, "prop");
MarkString(trc, str, "prop");
if (obj)
MarkObject(trc, obj, "obj");
MarkObject(trc, &obj, "obj");
}
static void