mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:27:45 +00:00
LibJS: Add bytecode generation for BinaryOp::InstanceOf
This commit is contained in:
parent
5e996de8c6
commit
9c0d83d11d
4 changed files with 35 additions and 2 deletions
|
@ -449,6 +449,25 @@ private:
|
|||
Register m_src2;
|
||||
};
|
||||
|
||||
class InstanceOf final : public Instruction {
|
||||
public:
|
||||
InstanceOf(Register dst, Register src1, Register src2)
|
||||
: Instruction(Type::InstanceOf)
|
||||
, m_dst(dst)
|
||||
, m_src1(src1)
|
||||
, m_src2(src2)
|
||||
{
|
||||
}
|
||||
|
||||
void execute(Bytecode::Interpreter&) const;
|
||||
String to_string() const;
|
||||
|
||||
private:
|
||||
Register m_dst;
|
||||
Register m_src1;
|
||||
Register m_src2;
|
||||
};
|
||||
|
||||
class BitwiseNot final : public Instruction {
|
||||
public:
|
||||
BitwiseNot(Register dst, Register src)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue