Skip to content

Commit

Permalink
Upgrade EVMC to 9.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
chfast committed Jun 30, 2021
1 parent 3d4843c commit 81fe759
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/evmone/baseline_instruction_table.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ constexpr InstructionTable instruction_tables[] = {
create_instruction_table<EVMC_ISTANBUL>(),
create_instruction_table<EVMC_BERLIN>(),
create_instruction_table<EVMC_LONDON>(),
create_instruction_table<EVMC_SHANGHAI>(),
};
static_assert(std::size(instruction_tables) == EVMC_MAX_REVISION + 1,
"instruction table entry missing for an EVMC revision");
Expand Down
3 changes: 3 additions & 0 deletions lib/evmone/instruction_traits.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -370,4 +370,7 @@ constexpr inline std::array<int16_t, 256> gas_costs<EVMC_LONDON> = []() noexcept
return table;
}();

template <>
constexpr inline auto gas_costs<EVMC_SHANGHAI> = gas_costs<EVMC_LONDON>;

} // namespace evmone::instr
1 change: 1 addition & 0 deletions lib/evmone/instructions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,7 @@ constexpr op_table op_tables[] = {
create_op_table<EVMC_ISTANBUL>(),
create_op_table<EVMC_BERLIN>(),
create_op_table<EVMC_LONDON>(),
create_op_table<EVMC_SHANGHAI>(),
};
static_assert(
std::size(op_tables) == EVMC_MAX_REVISION + 1, "op table entry missing for an EVMC revision");
Expand Down

0 comments on commit 81fe759

Please sign in to comment.