mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Add variables per review
This commit is contained in:
parent
eaa1a368d2
commit
a66adcf5e9
1 changed files with 5 additions and 3 deletions
|
@ -962,10 +962,12 @@ void IrLoweringX64::lowerInst(IrInst& inst, uint32_t index, const IrBlock& next)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case IrCmd::DO_ARITH:
|
case IrCmd::DO_ARITH:
|
||||||
callArithHelper(regs, build, vmRegOp(inst.a),
|
{
|
||||||
inst.b.kind == IrOpKind::VmReg ? luauRegAddress(vmRegOp(inst.b)) : luauConstantAddress(vmConstOp(inst.b)),
|
OperandX64 opb = inst.b.kind == IrOpKind::VmReg ? luauRegAddress(vmRegOp(inst.b)) : luauConstantAddress(vmConstOp(inst.b));
|
||||||
inst.c.kind == IrOpKind::VmReg ? luauRegAddress(vmRegOp(inst.c)) : luauConstantAddress(vmConstOp(inst.c)), TMS(intOp(inst.d)));
|
OperandX64 opc = inst.c.kind == IrOpKind::VmReg ? luauRegAddress(vmRegOp(inst.c)) : luauConstantAddress(vmConstOp(inst.c));
|
||||||
|
callArithHelper(regs, build, vmRegOp(inst.a), opb, opc, TMS(intOp(inst.d)));
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
case IrCmd::DO_LEN:
|
case IrCmd::DO_LEN:
|
||||||
callLengthHelper(regs, build, vmRegOp(inst.a), vmRegOp(inst.b));
|
callLengthHelper(regs, build, vmRegOp(inst.a), vmRegOp(inst.b));
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Reference in a new issue