Bug 850922 - Don't put NULL getterobj/setterobj in the reloctable store buffers; r=billm

--HG--
extra : rebase_source : 21ac1e5d6cba8a0771c9612c304ff4206a29f902
This commit is contained in:
Terrence Cole 2013-03-13 16:58:40 -07:00
Родитель 9240526f3a
Коммит db3df46fd6
1 изменённых файлов: 4 добавлений и 2 удалений

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

@ -106,15 +106,17 @@ BaseShape::operator=(const BaseShape &other)
getterObj = other.getterObj;
GetterSetterWriteBarrierPost(runtime(), &getterObj);
} else {
if (rawGetter)
GetterSetterWriteBarrierPostRemove(runtime(), &getterObj);
rawGetter = other.rawGetter;
GetterSetterWriteBarrierPostRemove(runtime(), &getterObj);
}
if (flags & HAS_SETTER_OBJECT) {
setterObj = other.setterObj;
GetterSetterWriteBarrierPost(runtime(), &setterObj);
} else {
if (rawSetter)
GetterSetterWriteBarrierPostRemove(runtime(), &setterObj);
rawSetter = other.rawSetter;
GetterSetterWriteBarrierPostRemove(runtime(), &setterObj);
}
compartment_ = other.compartment_;
return *this;