summaryrefslogtreecommitdiff
path: root/js/src/gc/Marking.h
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2022-05-25 18:33:46 +0000
committerMoonchild <moonchild@palemoon.org>2022-05-25 18:33:46 +0000
commitcd55d0fbe4e5dddfc7e0bcc97ffa8a5a9febaff2 (patch)
tree6ac4b39944482f62a472488792b9345e43b28148 /js/src/gc/Marking.h
parent46c9f72fc0b85a800d003774d3298c66e56de913 (diff)
downloaduxp-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.h8
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>