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

Revert "LibJS/Bytecode: Fuse [Not, JumpIf] instructions into JumpIfNot"

This reverts commit 795149e585.
This commit is contained in:
Andreas Kling 2024-03-06 08:04:29 +01:00
parent ea0b7192fa
commit c4a0afbe28
5 changed files with 0 additions and 53 deletions

View file

@ -1123,23 +1123,6 @@ private:
Operand m_condition;
};
class JumpIfNot final : public Jump {
public:
explicit JumpIfNot(Operand condition, Label true_target, Label false_target)
: Jump(Type::JumpIfNot, move(true_target), move(false_target), sizeof(*this))
, m_condition(condition)
{
}
ThrowCompletionOr<void> execute_impl(Bytecode::Interpreter&) const;
ByteString to_byte_string_impl(Bytecode::Executable const&) const;
Operand condition() const { return m_condition; }
private:
Operand m_condition;
};
// NOTE: The raw operator is used for comparing two Int32 values.
#define JS_ENUMERATE_FUSABLE_BINARY_OPS(X) \
X(GreaterThan, >, greater_than) \