mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
Bug 1109928, part 6 - Define CCGraphBuilder::SetFirstChild() for consistency. r=smaug
This commit is contained in:
parent
625a523a2c
commit
9df62aaa5e
@ -2077,6 +2077,11 @@ private:
|
|||||||
PtrInfo* AddWeakMapNode(JS::GCCellPtr aThing);
|
PtrInfo* AddWeakMapNode(JS::GCCellPtr aThing);
|
||||||
PtrInfo* AddWeakMapNode(JSObject* aObject);
|
PtrInfo* AddWeakMapNode(JSObject* aObject);
|
||||||
|
|
||||||
|
void SetFirstChild()
|
||||||
|
{
|
||||||
|
mCurrPi->SetFirstChild(mEdgeBuilder.Mark());
|
||||||
|
}
|
||||||
|
|
||||||
void SetLastChild()
|
void SetLastChild()
|
||||||
{
|
{
|
||||||
mCurrPi->SetLastChild(mEdgeBuilder.Mark());
|
mCurrPi->SetLastChild(mEdgeBuilder.Mark());
|
||||||
@ -2251,9 +2256,9 @@ CCGraphBuilder::BuildGraph(SliceBudget& aBudget)
|
|||||||
|
|
||||||
mCurrPi = pi;
|
mCurrPi = pi;
|
||||||
|
|
||||||
// We need to call SetFirstChild even on deleted nodes, to set their
|
// We need to call SetFirstChild() even on deleted nodes, to set their
|
||||||
// firstChild() that may be read by a prior non-deleted neighbor.
|
// firstChild() that may be read by a prior non-deleted neighbor.
|
||||||
mCurrPi->SetFirstChild(mEdgeBuilder.Mark());
|
SetFirstChild();
|
||||||
|
|
||||||
if (pi->mParticipant) {
|
if (pi->mParticipant) {
|
||||||
nsresult rv = pi->mParticipant->Traverse(pi->mPointer, *this);
|
nsresult rv = pi->mParticipant->Traverse(pi->mPointer, *this);
|
||||||
|
Loading…
Reference in New Issue
Block a user