diff options
author | chriseth <c@ethdev.com> | 2015-06-01 18:32:59 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2015-06-05 23:34:26 +0800 |
commit | 88096c2c694983da327fd0fc46c31dc6f7404f73 (patch) | |
tree | fb84765bb8ab726354bf9c4d44d152008ec2c530 /GasMeter.h | |
parent | d309c3c76827606c4cabd5660035df394a16b601 (diff) | |
download | dexon-solidity-88096c2c694983da327fd0fc46c31dc6f7404f73.tar dexon-solidity-88096c2c694983da327fd0fc46c31dc6f7404f73.tar.gz dexon-solidity-88096c2c694983da327fd0fc46c31dc6f7404f73.tar.bz2 dexon-solidity-88096c2c694983da327fd0fc46c31dc6f7404f73.tar.lz dexon-solidity-88096c2c694983da327fd0fc46c31dc6f7404f73.tar.xz dexon-solidity-88096c2c694983da327fd0fc46c31dc6f7404f73.tar.zst dexon-solidity-88096c2c694983da327fd0fc46c31dc6f7404f73.zip |
Compute constants
Diffstat (limited to 'GasMeter.h')
-rw-r--r-- | GasMeter.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -66,6 +66,8 @@ public: u256 const& largestMemoryAccess() const { return m_largestMemoryAccess; } + static u256 runGas(Instruction _instruction); + private: /// @returns _multiplier * (_value + 31) / 32, if _value is a known constant and infinite otherwise. GasConsumption wordGas(u256 const& _multiplier, ExpressionClasses::Id _value); @@ -76,8 +78,6 @@ private: /// given as values on the stack at the given relative positions. GasConsumption memoryGas(int _stackPosOffset, int _stackPosSize); - static GasConsumption runGas(Instruction _instruction); - std::shared_ptr<KnownState> m_state; /// Largest point where memory was accessed since the creation of this object. u256 m_largestMemoryAccess; |