1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 09:48:11 +00:00

LibJS/JIT: Support Imm32 operands in Assembler::push()

This commit is contained in:
Andreas Kling 2023-10-17 18:04:19 +02:00
parent 71e41418f6
commit 2e6c02f088

View file

@ -312,6 +312,9 @@ struct Assembler {
if (to_underlying(op.reg) >= 8)
emit8(0x49);
emit8(0x50 | encode_reg(op.reg));
} else if (op.type == Operand::Type::Imm32) {
emit8(0x68);
emit32(op.offset_or_immediate);
} else {
VERIFY_NOT_REACHED();
}