Fix OP_MOVS to not clobber random memory (bug 5868, r=psychonic).
This commit is contained in:
parent
e970c36419
commit
582162460f
@ -1020,8 +1020,9 @@ Compiler::emitOp(OPCODE op)
|
||||
__ cld();
|
||||
__ push(esi);
|
||||
__ push(edi);
|
||||
__ lea(esi, Operand(dat, pri, NoScale));
|
||||
// Note: set edi first, since we need esi.
|
||||
__ lea(edi, Operand(dat, alt, NoScale));
|
||||
__ lea(esi, Operand(dat, pri, NoScale));
|
||||
if (dwords) {
|
||||
__ movl(ecx, dwords);
|
||||
__ rep_movsd();
|
||||
|
Loading…
Reference in New Issue
Block a user