bool PutByIdVariant::reallocatesStorage() const { if (kind() != Transition) return false; if (oldStructureForTransition()->outOfLineCapacity() == newStructure()->outOfLineCapacity()) return false; return true; }
bool PutByIdVariant::reallocatesStorage() const { switch (kind()) { case Transition: return oldStructureForTransition()->outOfLineCapacity() != newStructure()->outOfLineCapacity(); case Setter: return true; default: return false; } }