diff --git a/js/src/jit/x86-shared/MacroAssembler-x86-shared.cpp b/js/src/jit/x86-shared/MacroAssembler-x86-shared.cpp index f9b0f9b71c7f..c9740f08dd48 100644 --- a/js/src/jit/x86-shared/MacroAssembler-x86-shared.cpp +++ b/js/src/jit/x86-shared/MacroAssembler-x86-shared.cpp @@ -1174,11 +1174,11 @@ static void AtomicFetchOp(MacroAssembler& masm, switch (Scalar::byteSize(arrayType)) { case 1: - CheckBytereg(value); CheckBytereg(output); switch (op) { case AtomicFetchAddOp: case AtomicFetchSubOp: + CheckBytereg(value); // But not for the bitwise ops SetupValue(masm, op, value, output); if (access) masm.append(*access, masm.size()); masm.lock_xaddb(output, Operand(mem));