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
parent 9240526f3a
commit db3df46fd6

View File

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