Issue #1742 - Remove the ambiguous portions of gc that dealt with tagged pointers for shapes.

Nobody likes "isNullLike(obj)" when trying to garbage collect. It either is or
is not. Master Yoda would be pleased with this change.
This commit is contained in:
Moonchild 2022-05-25 18:33:46 +00:00 • committed by roytam1
commit 30a3ec27a2
7 changed files with 3 additions and 29 deletions

View file

@ -501,7 +501,7 @@ void
js::TraceNullableRoot(JSTracer* trc, T* thingp, const char* name)
{
AssertRootMarkingPhase(trc);
if (InternalBarrierMethods<T>::isMarkableTaggedPointer(*thingp))
if (InternalBarrierMethods<T>::isMarkable(*thingp))
DispatchToTracer(trc, ConvertToBase(thingp), name);
}