mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
21 lines
435 B
C++
21 lines
435 B
C++
/*
|
|
* Copyright (c) 2021, Ali Mohammad Pur <mpfard@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibWasm/AbstractMachine/Configuration.h>
|
|
|
|
namespace Wasm {
|
|
|
|
struct Interpreter {
|
|
virtual ~Interpreter() = default;
|
|
virtual void interpret(Configuration&) = 0;
|
|
virtual bool did_trap() const = 0;
|
|
virtual ByteString trap_reason() const = 0;
|
|
virtual void clear_trap() = 0;
|
|
};
|
|
|
|
}
|