Inline GC mark path (bug 639729, r=billm).

This commit is contained in:
Andreas Gal
2011-03-13 18:13:52 -07:00
parent fe46043fbd
commit 36269f6040
5 changed files with 34 additions and 31 deletions

View File

@@ -944,8 +944,7 @@ array_trace(JSTracer *trc, JSObject *obj)
JS_ASSERT(obj->isDenseArray());
uint32 capacity = obj->getDenseArrayCapacity();
for (uint32 i = 0; i < capacity; i++)
MarkValue(trc, obj->getDenseArrayElement(i), "dense_array_elems");
MarkValueRange(trc, capacity, obj->slots, "element");
}
static JSBool