Bug 523998 - Add assertions to detect cases where objects were not touched by shape regeneration. r=dmandelin.

--HG--
extra : rebase_source : 6a71b143bdb82a81e00c082df5dc4c15198ad5d6
This commit is contained in:
Jason Orendorff 2009-11-12 16:50:12 -06:00
Родитель 6019e0bbb6
Коммит 5a45fd911f
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -315,6 +315,7 @@ js_FillPropertyCache(JSContext *cx, JSObject *obj,
kshape = OBJ_SHAPE(obj);
vshape = scope->shape;
}
JS_ASSERT(kshape < SHAPE_OVERFLOW_BIT);
khash = PROPERTY_CACHE_HASH_PC(pc, kshape);
if (obj == pobj) {
@ -354,6 +355,7 @@ js_FillPropertyCache(JSContext *cx, JSObject *obj,
obj->setDelegate();
}
}
JS_ASSERT(vshape < SHAPE_OVERFLOW_BIT);
entry = &cache->table[khash];
PCMETER(PCVAL_IS_NULL(entry->vword) || cache->recycles++);