TraceRecorder::record_SetPropMiss mis-layered on top of record_SetPropHit (454689, r=mrbkap).

This commit is contained in:
Brendan Eich
2008-09-11 15:53:00 -07:00
parent b169cca65e
commit 112d38d453
5 changed files with 30 additions and 21 deletions

View File

@@ -577,6 +577,7 @@ js_AddProperty(JSContext* cx, JSObject* obj, JSScopeProperty* sprop)
uint32 slot = sprop->slot;
if (!scope->table && sprop->parent == scope->lastProp && slot == scope->map.freeslot) {
if (slot < STOBJ_NSLOTS(obj) && !OBJ_GET_CLASS(cx, obj)->reserveSlots) {
JS_ASSERT(JSVAL_IS_VOID(STOBJ_GET_SLOT(obj, scope->map.freeslot)));
++scope->map.freeslot;
} else {
if (!js_AllocSlot(cx, obj, &slot)) {