Add Istanbul to evmc_revision

This commit is contained in:
Alex Beregszaszi 2019-01-04 14:44:47 +00:00
parent 52da38836f
commit f064fdcbd8
4 changed files with 7 additions and 1 deletions

View File

@ -141,6 +141,7 @@ const (
SpuriousDragon Revision = C.EVMC_SPURIOUS_DRAGON
Byzantium Revision = C.EVMC_BYZANTIUM
Constantinople Revision = C.EVMC_CONSTANTINOPLE
Istanbul Revision = C.EVMC_ISTANBUL
)
type Instance struct {

View File

@ -706,8 +706,9 @@ enum evmc_revision
EVMC_SPURIOUS_DRAGON = 3,
EVMC_BYZANTIUM = 4,
EVMC_CONSTANTINOPLE = 5,
EVMC_ISTANBUL = 6,
EVMC_LATEST_REVISION = EVMC_CONSTANTINOPLE
EVMC_LATEST_REVISION = EVMC_ISTANBUL
};

View File

@ -1321,6 +1321,8 @@ const struct evmc_instruction_metrics* evmc_get_instruction_metrics_table(
{
switch (revision)
{
case EVMC_ISTANBUL:
/* Currently the same as Costantinople */
case EVMC_CONSTANTINOPLE:
return constantinople_metrics;
case EVMC_BYZANTIUM:

View File

@ -1045,6 +1045,8 @@ const char* const* evmc_get_instruction_names_table(enum evmc_revision revision)
{
switch (revision)
{
case EVMC_ISTANBUL:
/* Currently the same as Costantinople */
case EVMC_CONSTANTINOPLE:
return constantinople_names;
case EVMC_BYZANTIUM: