aboutsummaryrefslogtreecommitdiffstats
path: root/libevmasm/ConstantOptimiser.h
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-08-22 05:05:24 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-08-22 17:51:46 +0800
commit9897c56b2cacf162f8fd41d60e91b7f71863f8d5 (patch)
treefb0f04a445940004a8a45e03bc98d149c5cc71a7 /libevmasm/ConstantOptimiser.h
parent2a5772cff7d03de0d02c5358a6a6755e8f802697 (diff)
downloaddexon-solidity-9897c56b2cacf162f8fd41d60e91b7f71863f8d5.tar.gz
dexon-solidity-9897c56b2cacf162f8fd41d60e91b7f71863f8d5.tar.zst
dexon-solidity-9897c56b2cacf162f8fd41d60e91b7f71863f8d5.zip
Mark a lot of functions static (where possible)
Diffstat (limited to 'libevmasm/ConstantOptimiser.h')
-rw-r--r--libevmasm/ConstantOptimiser.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libevmasm/ConstantOptimiser.h b/libevmasm/ConstantOptimiser.h
index 19f14f7a..82982e25 100644
--- a/libevmasm/ConstantOptimiser.h
+++ b/libevmasm/ConstantOptimiser.h
@@ -121,7 +121,7 @@ public:
virtual AssemblyItems execute(Assembly& _assembly) const override;
protected:
- AssemblyItems const& copyRoutine() const;
+ static AssemblyItems const& copyRoutine();
};
/**
@@ -151,7 +151,7 @@ protected:
/// Tries to recursively find a way to compute @a _value.
AssemblyItems findRepresentation(u256 const& _value);
/// Recomputes the value from the calculated representation and checks for correctness.
- bool checkRepresentation(u256 const& _value, AssemblyItems const& _routine) const;
+ static bool checkRepresentation(u256 const& _value, AssemblyItems const& _routine);
bigint gasNeeded(AssemblyItems const& _routine) const;
/// Counter for the complexity of optimization, will stop when it reaches zero.