From 6ec4517929e8c0eca022f4771ba217db5d80beed Mon Sep 17 00:00:00 2001 From: chriseth Date: Thu, 1 Mar 2018 12:06:36 +0100 Subject: Use EVM version in gas meter and optimizer. --- libevmasm/PathGasMeter.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'libevmasm/PathGasMeter.h') diff --git a/libevmasm/PathGasMeter.h b/libevmasm/PathGasMeter.h index 4826eac2..2527d7fb 100644 --- a/libevmasm/PathGasMeter.h +++ b/libevmasm/PathGasMeter.h @@ -21,10 +21,13 @@ #pragma once +#include + +#include + #include #include #include -#include namespace dev { @@ -50,7 +53,7 @@ struct GasPath class PathGasMeter { public: - explicit PathGasMeter(AssemblyItems const& _items); + explicit PathGasMeter(AssemblyItems const& _items, solidity::EVMVersion _evmVersion); GasMeter::GasConsumption estimateMax(size_t _startIndex, std::shared_ptr const& _state); @@ -60,6 +63,7 @@ private: std::vector> m_queue; std::map m_tagPositions; AssemblyItems const& m_items; + solidity::EVMVersion m_evmVersion; }; } -- cgit