Interpreter.h 435 B

123456789101112131415161718192021
  1. /*
  2. * Copyright (c) 2021, Ali Mohammad Pur <mpfard@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <LibWasm/AbstractMachine/Configuration.h>
  8. namespace Wasm {
  9. struct Interpreter {
  10. virtual ~Interpreter() = default;
  11. virtual void interpret(Configuration&) = 0;
  12. virtual bool did_trap() const = 0;
  13. virtual ByteString trap_reason() const = 0;
  14. virtual void clear_trap() = 0;
  15. };
  16. }