diff options
author | Moonchild <moonchild@palemoon.org> | 2022-05-25 18:33:46 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2022-05-25 18:33:46 +0000 |
commit | cd55d0fbe4e5dddfc7e0bcc97ffa8a5a9febaff2 (patch) | |
tree | 6ac4b39944482f62a472488792b9345e43b28148 /js/src/gc/Marking.h | |
parent | 46c9f72fc0b85a800d003774d3298c66e56de913 (diff) | |
download | uxp-cd55d0fbe4e5dddfc7e0bcc97ffa8a5a9febaff2.tar.gz |
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.
Diffstat (limited to 'js/src/gc/Marking.h')
-rw-r--r-- | js/src/gc/Marking.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/js/src/gc/Marking.h b/js/src/gc/Marking.h index 2b9e7ace1f..40b331b311 100644 --- a/js/src/gc/Marking.h +++ b/js/src/gc/Marking.h @@ -414,14 +414,6 @@ ToMarkable(Cell* cell) return cell; } -// Return true if the pointer is nullptr, or if it is a tagged pointer to -// nullptr. -MOZ_ALWAYS_INLINE bool -IsNullTaggedPointer(void* p) -{ - return uintptr_t(p) <= LargestTaggedNullCellPointer; -} - // Wrap a GC thing pointer into a new Value or jsid. The type system enforces // that the thing pointer is a wrappable type. template <typename S, typename T> |