#include #if ETH_EVMJIT #include #endif #include "VMFactory.h" namespace dev { namespace eth { std::unique_ptr VMFactory::create(VMFactory::Kind _kind, u256 _gas) { #if ETH_EVMJIT auto vm = _kind == Kind::JIT ? static_cast(new jit::VM) : static_cast(new VM); #else VMFace* vm = new VM; #endif vm->reset(_gas); return std::unique_ptr(vm); } } }