mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 06:48:38 +09:00
Fix Value::isGCThing footgun, stop returning true for NullValue
This commit is contained in:
parent
9d2e0ff0c4
commit
10b24b8110
31 changed files with 87 additions and 103 deletions
|
|
@ -8526,8 +8526,8 @@ StoreUnboxedPointer(MacroAssembler& masm, T address, MIRType type, const LAlloca
|
|||
masm.patchableCallPreBarrier(address, type);
|
||||
if (value->isConstant()) {
|
||||
Value v = value->toConstant()->toJSValue();
|
||||
if (v.isMarkable()) {
|
||||
masm.storePtr(ImmGCPtr(v.toMarkablePointer()), address);
|
||||
if (v.isGCThing()) {
|
||||
masm.storePtr(ImmGCPtr(v.toGCThing()), address);
|
||||
} else {
|
||||
MOZ_ASSERT(v.isNull());
|
||||
masm.storePtr(ImmWord(0), address);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue