summaryrefslogtreecommitdiff
path: root/js/src/vm
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/vm
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/vm')
-rw-r--r--js/src/vm/String.h2
-rw-r--r--js/src/vm/TaggedProto.h4
2 files changed, 1 insertions, 5 deletions
diff --git a/js/src/vm/String.h b/js/src/vm/String.h
index 0937ac24d2..4c43439cd9 100644
--- a/js/src/vm/String.h
+++ b/js/src/vm/String.h
@@ -521,7 +521,7 @@ class JSString : public js::gc::TenuredCell
}
static MOZ_ALWAYS_INLINE void writeBarrierPre(JSString* thing) {
- if (isNullLike(thing) || thing->isPermanentAtom())
+ if (!thing || thing->isPermanentAtom())
return;
TenuredCell::writeBarrierPre(thing);
diff --git a/js/src/vm/TaggedProto.h b/js/src/vm/TaggedProto.h
index 5b9fe5c7e8..10b8c1171b 100644
--- a/js/src/vm/TaggedProto.h
+++ b/js/src/vm/TaggedProto.h
@@ -68,10 +68,6 @@ struct InternalBarrierMethods<TaggedProto>
static void readBarrier(const TaggedProto& proto);
- static bool isMarkableTaggedPointer(TaggedProto proto) {
- return proto.isObject();
- }
-
static bool isMarkable(TaggedProto proto) {
return proto.isObject();
}