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.
 
 
 
 
 

32 lines
364 B

#pragma once
#include <libdevcore/Common.h>
#include <libevm/ExtVMFace.h>
namespace dev
{
namespace eth
{
namespace jit
{
class VM
{
public:
/// Construct VM object.
explicit VM(u256 _gas = 0): m_gas(_gas) {}
void reset(u256 _gas = 0) { m_gas = _gas; }
bytes go(ExtVMFace& _ext);
u256 gas() const { return m_gas; }
private:
u256 m_gas = 0;
};
}
}
}