Bug 1277260, part 1 - Make PtrInfo into a class and mark it final. r=smaug

MozReview-Commit-ID: 3UJ89eCkBsd

--HG--
extra : rebase_source : 90cecf5db10f391e6d7eec2bb1d44810fe5fdd3f
This commit is contained in:
Andrew McCreight 2017-09-15 12:35:18 -07:00
Родитель 5cbceefab7
Коммит 48ee4c9a3f
1 изменённых файлов: 4 добавлений и 2 удалений

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

@ -374,7 +374,7 @@ public:
// Base types
////////////////////////////////////////////////////////////////////////
struct PtrInfo;
class PtrInfo;
class EdgePool
{
@ -579,13 +579,15 @@ enum NodeColor { black, white, grey };
// hundreds of thousands of them to be allocated and touched
// repeatedly during each cycle collection.
struct PtrInfo
class PtrInfo final
{
public:
void* mPointer;
nsCycleCollectionParticipant* mParticipant;
uint32_t mColor : 2;
uint32_t mInternalRefs : 30;
uint32_t mRefCount;
private:
EdgePool::Iterator mFirstChild;