mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1130903 - Avoid calling unboxValue with ScratchDoubleReg, r=jandem.
This commit is contained in:
parent
5112c3404f
commit
a055c57555
@ -769,10 +769,17 @@ MacroAssembler::storeUnboxedProperty(T address, JSValueType type,
|
||||
jump(failure);
|
||||
}
|
||||
} else {
|
||||
if (failure)
|
||||
branchTestNumber(Assembler::NotEqual, value.reg().valueReg(), failure);
|
||||
unboxValue(value.reg().valueReg(), AnyRegister(ScratchDoubleReg));
|
||||
ValueOperand reg = value.reg().valueReg();
|
||||
Label notInt32, end;
|
||||
branchTestInt32(Assembler::NotEqual, reg, ¬Int32);
|
||||
int32ValueToDouble(reg, ScratchDoubleReg);
|
||||
storeDouble(ScratchDoubleReg, address);
|
||||
jump(&end);
|
||||
bind(¬Int32);
|
||||
if (failure)
|
||||
branchTestDouble(Assembler::NotEqual, reg, failure);
|
||||
storeValue(reg, address);
|
||||
bind(&end);
|
||||
}
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user