mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 21:27:44 +00:00
LibJS: Add <<, >> and >>> assignment operators
This commit is contained in:
parent
1e10965e61
commit
6612e026ba
1 changed files with 9 additions and 0 deletions
|
@ -223,6 +223,15 @@ Optional<Bytecode::Register> AssignmentExpression::generate_bytecode(Bytecode::G
|
||||||
case AssignmentOp::BitwiseXorAssignment:
|
case AssignmentOp::BitwiseXorAssignment:
|
||||||
generator.emit<Bytecode::Op::BitwiseXor>(dst_reg, *lhs_reg, *rhs_reg);
|
generator.emit<Bytecode::Op::BitwiseXor>(dst_reg, *lhs_reg, *rhs_reg);
|
||||||
break;
|
break;
|
||||||
|
case AssignmentOp::LeftShiftAssignment:
|
||||||
|
generator.emit<Bytecode::Op::LeftShift>(dst_reg, *lhs_reg, *rhs_reg);
|
||||||
|
break;
|
||||||
|
case AssignmentOp::RightShiftAssignment:
|
||||||
|
generator.emit<Bytecode::Op::RightShift>(dst_reg, *lhs_reg, *rhs_reg);
|
||||||
|
break;
|
||||||
|
case AssignmentOp::UnsignedRightShiftAssignment:
|
||||||
|
generator.emit<Bytecode::Op::UnsignedRightShift>(dst_reg, *lhs_reg, *rhs_reg);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
TODO();
|
TODO();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue