diff options
author | Linus Groh <mail@linusgroh.de> | 2021-06-07 19:53:22 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-06-07 19:53:22 +0100 |
commit | 54fc7079c636bc7a20270632a88883ed959b4f79 (patch) | |
tree | cd411b94faf6c58423ca69546745b75e8d794c3f /Userland/Libraries/LibJS/Bytecode/Op.cpp | |
parent | 8ed5b7dcfac78726ef291d0ae1ddcb375ae9d193 (diff) | |
download | serenity-54fc7079c636bc7a20270632a88883ed959b4f79.zip |
LibJS: Remove redundant Value() from bytecode bitwise ops execute()
Diffstat (limited to 'Userland/Libraries/LibJS/Bytecode/Op.cpp')
-rw-r--r-- | Userland/Libraries/LibJS/Bytecode/Op.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Libraries/LibJS/Bytecode/Op.cpp b/Userland/Libraries/LibJS/Bytecode/Op.cpp index 711ce8a3c6..58be18b91e 100644 --- a/Userland/Libraries/LibJS/Bytecode/Op.cpp +++ b/Userland/Libraries/LibJS/Bytecode/Op.cpp @@ -114,17 +114,17 @@ void AbstractEquals::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 { - 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 { - 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 |