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.

27 lines
514 B

#pragma once
#include "evmjit/DataTypes.h"
namespace dev
{
namespace evmjit
{
10 years ago
enum class ReturnCode;
class ExecutionContext;
class JIT
{
public:
/// Ask JIT if the EVM code is ready for execution.
/// Returns `true` if the EVM code has been compiled and loaded into memory.
/// In this case the code can be executed without overhead.
/// \param _codeHash The Keccak hash of the EVM code.
static bool isCodeReady(h256 const& _codeHash);
10 years ago
EXPORT static ReturnCode exec(ExecutionContext& _context);
};
}
}