diff --git a/js/src/jit/arm64/MacroAssembler-arm64.h b/js/src/jit/arm64/MacroAssembler-arm64.h index 5db02ee76b3a..d74035ab1ada 100644 --- a/js/src/jit/arm64/MacroAssembler-arm64.h +++ b/js/src/jit/arm64/MacroAssembler-arm64.h @@ -1842,6 +1842,9 @@ class MacroAssemblerCompat : public vixl::MacroAssembler { // load: offset to the load instruction obtained by movePatchablePtr(). void writeDataRelocation(ImmGCPtr ptr, BufferOffset load) { if (ptr.value) { + if (gc::IsInsideNursery(ptr.value)) { + embedsNurseryPointers_ = true; + } dataRelocations_.writeUnsigned(load.getOffset()); } }