Bug 856344 - Fix getAllocKind() in TradeGuts (r=bhackett)

This commit is contained in:
Bill McCloskey 2013-04-01 15:08:17 -07:00
Родитель 67b8306a16
Коммит 8e64c44531
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -1826,7 +1826,7 @@ JSObject::ReserveForTradeGuts(JSContext *cx, JSObject *aArg, JSObject *bArg,
return false;
} else {
reserved.newbshape = EmptyShape::getInitialShape(cx, aClass, aProto, a->getParent(),
b->numFixedSlots());
b->tenuredGetAllocKind());
if (!reserved.newbshape)
return false;
}
@ -1835,7 +1835,7 @@ JSObject::ReserveForTradeGuts(JSContext *cx, JSObject *aArg, JSObject *bArg,
return false;
} else {
reserved.newashape = EmptyShape::getInitialShape(cx, bClass, bProto, b->getParent(),
a->numFixedSlots());
a->tenuredGetAllocKind());
if (!reserved.newashape)
return false;
}