/* * Copyright (c) 2021, Andreas Kling * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include namespace JS::Bytecode { class Instruction { public: virtual ~Instruction(); virtual String to_string() const = 0; virtual void execute(Bytecode::Interpreter&) const = 0; }; }