aboutsummaryrefslogtreecommitdiffstats
path: root/GasMeter.h
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2015-06-01 18:32:59 +0800
committerchriseth <c@ethdev.com>2015-06-05 23:34:26 +0800
commit88096c2c694983da327fd0fc46c31dc6f7404f73 (patch)
treefb84765bb8ab726354bf9c4d44d152008ec2c530 /GasMeter.h
parentd309c3c76827606c4cabd5660035df394a16b601 (diff)
downloaddexon-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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/GasMeter.h b/GasMeter.h
index 6949c193..90f151fc 100644
--- a/GasMeter.h
+++ b/GasMeter.h
@@ -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;