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.

52 lines
564 B

#pragma once
#include <csetjmp>
#include "Utils.h"
namespace dev
{
namespace eth
{
namespace jit
{
using jmpBufRef = decltype(&jmp_buf{}[0]);
struct RuntimeData
{
enum Index
{
Gas,
Address,
Caller,
Origin,
CallValue,
CallDataSize,
GasPrice,
PrevHash,
CoinBase,
TimeStamp,
Number,
Difficulty,
GasLimit,
CodeSize,
_size,
ReturnDataOffset = CallValue, // Reuse 2 fields for return data reference
ReturnDataSize = CallDataSize
};
i256 elems[_size];
byte const* callData;
byte const* code;
jmpBufRef jmpBuf;
};
}
}
}