You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
520 B
35 lines
520 B
11 years ago
|
|
||
|
#pragma once
|
||
|
|
||
|
#include <libdevcore/Common.h>
|
||
11 years ago
|
#include <libevm/VMFace.h>
|
||
11 years ago
|
#include <libevm/ExtVMFace.h>
|
||
|
|
||
|
namespace dev
|
||
|
{
|
||
|
namespace eth
|
||
|
{
|
||
10 years ago
|
|
||
|
class VMFactory;
|
||
|
|
||
11 years ago
|
namespace jit
|
||
|
{
|
||
|
|
||
11 years ago
|
class VM: public VMFace
|
||
11 years ago
|
{
|
||
11 years ago
|
virtual bytesConstRef go(ExtVMFace& _ext, OnOpFunc const& _onOp = {}, uint64_t _steps = (uint64_t)-1) override final;
|
||
11 years ago
|
|
||
10 years ago
|
enum Kind: bool { Interpreter, JIT };
|
||
|
static std::unique_ptr<VMFace> create(Kind, u256 _gas = 0);
|
||
|
|
||
11 years ago
|
private:
|
||
10 years ago
|
friend VMFactory;
|
||
11 years ago
|
explicit VM(u256 _gas = 0): VMFace(_gas) {}
|
||
|
|
||
11 years ago
|
bytes m_output;
|
||
11 years ago
|
};
|
||
|
|
||
|
}
|
||
|
}
|
||
|
}
|