Instruction.h 369 B

12345678910111213141516171819202122
  1. /*
  2. * Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <AK/Forward.h>
  8. #include <LibJS/Forward.h>
  9. namespace JS::Bytecode {
  10. class Instruction {
  11. public:
  12. virtual ~Instruction();
  13. virtual String to_string() const = 0;
  14. virtual void execute(Bytecode::Interpreter&) const = 0;
  15. };
  16. }