mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 09:22: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: | ||||
|             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…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Ryan Chandler
						Ryan Chandler