mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 17:40:27 +00:00
LibJS: Add <<, >> and >>> assignment operators
This commit is contained in:
parent
1e10965e61
commit
6612e026ba
Notes:
sideshowbarker
2024-07-18 12:40:39 +09:00
Author: https://github.com/ryangjchandler Commit: https://github.com/SerenityOS/serenity/commit/6612e026ba5 Pull-request: https://github.com/SerenityOS/serenity/pull/7895
1 changed files with 9 additions and 0 deletions
|
@ -223,6 +223,15 @@ Optional<Bytecode::Register> AssignmentExpression::generate_bytecode(Bytecode::G
|
|||
case AssignmentOp::BitwiseXorAssignment:
|
||||
generator.emit<Bytecode::Op::BitwiseXor>(dst_reg, *lhs_reg, *rhs_reg);
|
||||
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:
|
||||
TODO();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue