зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
6019e0bbb6
Коммит
5a45fd911f
|
@ -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++);
|
||||
|
|
Загрузка…
Ссылка в новой задаче