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

LibJS: Add LessThan bytecode instruction :^)

This commit is contained in:
Andreas Kling 2021-06-04 12:03:57 +02:00
parent 6d66cdc668
commit 91640d0727
3 changed files with 32 additions and 0 deletions

View file

@ -48,6 +48,9 @@ Optional<Bytecode::Register> BinaryExpression::generate_bytecode(Bytecode::Gener
case BinaryOp::Subtraction:
generator.emit<Bytecode::Op::Sub>(dst_reg, *lhs_reg, *rhs_reg);
return dst_reg;
case BinaryOp::LessThan:
generator.emit<Bytecode::Op::LessThan>(dst_reg, *lhs_reg, *rhs_reg);
return dst_reg;
default:
TODO();
}