1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-30 05:42:06 +00:00

LibJS: Add AbstractEquals bytecode instruction for == comparison :^)

This commit is contained in:
Andreas Kling 2021-06-06 13:36:34 +02:00
parent 4bdfe73895
commit 0cc9d47e1b
3 changed files with 32 additions and 0 deletions

View file

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