mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
Issue #3049 - Handle loongarch64 unary baseline inc and dec
This commit is contained in:
parent
97db44c6be
commit
499987e0f9
1 changed files with 12 additions and 0 deletions
|
|
@ -172,6 +172,18 @@ ICUnaryArith_Int32::Compiler::generateStubCode(MacroAssembler& masm)
|
|||
masm.neg32(ExtractTemp0);
|
||||
masm.tagValue(JSVAL_TYPE_INT32, ExtractTemp0, R0);
|
||||
break;
|
||||
case JSOP_INC: {
|
||||
RegisterOrInt32Constant rval = RegisterOrInt32Constant(R0.valueReg());
|
||||
masm.inc32(&rval);
|
||||
masm.tagValue(JSVAL_TYPE_INT32, R0.valueReg(), R0);
|
||||
break;
|
||||
}
|
||||
case JSOP_DEC: {
|
||||
RegisterOrInt32Constant rval = RegisterOrInt32Constant(R0.valueReg());
|
||||
masm.dec32(&rval);
|
||||
masm.tagValue(JSVAL_TYPE_INT32, R0.valueReg(), R0);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
MOZ_CRASH("Unexpected op");
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue