mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 925088 - SpiderMonkey: Fold loads into branchTest32. r=nbp
This commit is contained in:
parent
46f2c768f7
commit
890486dfd3
@ -4827,8 +4827,7 @@ CodeGenerator::visitCharCodeAt(LCharCodeAt *lir)
|
||||
return false;
|
||||
|
||||
Address lengthAndFlagsAddr(str, JSString::offsetOfLengthAndFlags());
|
||||
masm.loadPtr(lengthAndFlagsAddr, output);
|
||||
masm.branchTest32(Assembler::Zero, output, Imm32(JSString::FLAGS_MASK), ool->entry());
|
||||
masm.branchTest32(Assembler::Zero, lengthAndFlagsAddr, Imm32(JSString::FLAGS_MASK), ool->entry());
|
||||
|
||||
// getChars
|
||||
Address charsAddr(str, JSString::offsetOfChars());
|
||||
|
@ -875,8 +875,7 @@ MacroAssembler::checkInterruptFlagsPar(const Register &tempReg,
|
||||
Label *fail)
|
||||
{
|
||||
movePtr(ImmPtr(GetIonContext()->runtime->addressOfInterrupt()), tempReg);
|
||||
load32(Address(tempReg, 0), tempReg);
|
||||
branchTest32(Assembler::NonZero, tempReg, tempReg, fail);
|
||||
branch32(Assembler::NonZero, Address(tempReg, 0), Imm32(0), fail);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user