1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 00:25:09 +00:00

LibJS: Remove redundant Value() from bytecode bitwise ops execute()

This commit is contained in:
Linus Groh 2021-06-07 19:53:22 +01:00
parent 8ed5b7dcfa
commit 54fc7079c6

View file

@ -114,17 +114,17 @@ void AbstractEquals::execute(Bytecode::Interpreter& interpreter) const
void BitwiseAnd::execute(Bytecode::Interpreter& interpreter) const void BitwiseAnd::execute(Bytecode::Interpreter& interpreter) const
{ {
interpreter.reg(m_dst) = Value(bitwise_and(interpreter.global_object(), interpreter.reg(m_src1), interpreter.reg(m_src2))); interpreter.reg(m_dst) = bitwise_and(interpreter.global_object(), interpreter.reg(m_src1), interpreter.reg(m_src2));
} }
void BitwiseOr::execute(Bytecode::Interpreter& interpreter) const void BitwiseOr::execute(Bytecode::Interpreter& interpreter) const
{ {
interpreter.reg(m_dst) = Value(bitwise_or(interpreter.global_object(), interpreter.reg(m_src1), interpreter.reg(m_src2))); interpreter.reg(m_dst) = bitwise_or(interpreter.global_object(), interpreter.reg(m_src1), interpreter.reg(m_src2));
} }
void BitwiseXor::execute(Bytecode::Interpreter& interpreter) const void BitwiseXor::execute(Bytecode::Interpreter& interpreter) const
{ {
interpreter.reg(m_dst) = Value(bitwise_xor(interpreter.global_object(), interpreter.reg(m_src1), interpreter.reg(m_src2))); interpreter.reg(m_dst) = bitwise_xor(interpreter.global_object(), interpreter.reg(m_src1), interpreter.reg(m_src2));
} }
void NewString::execute(Bytecode::Interpreter& interpreter) const void NewString::execute(Bytecode::Interpreter& interpreter) const