aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/solidityExecutionFramework.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
commit4111cdf376de08ae45a2e0ca4105132fa3f8985f (patch)
tree399daa65a933d6a25de47cfc90881367646e175b /libsolidity/solidityExecutionFramework.h
parent8ba801ec0e885ebca5babadef007f20bcdde1f0b (diff)
downloaddexon-solidity-4111cdf376de08ae45a2e0ca4105132fa3f8985f.tar
dexon-solidity-4111cdf376de08ae45a2e0ca4105132fa3f8985f.tar.gz
dexon-solidity-4111cdf376de08ae45a2e0ca4105132fa3f8985f.tar.bz2
dexon-solidity-4111cdf376de08ae45a2e0ca4105132fa3f8985f.tar.lz
dexon-solidity-4111cdf376de08ae45a2e0ca4105132fa3f8985f.tar.xz
dexon-solidity-4111cdf376de08ae45a2e0ca4105132fa3f8985f.tar.zst
dexon-solidity-4111cdf376de08ae45a2e0ca4105132fa3f8985f.zip
Compute constants
Diffstat (limited to 'libsolidity/solidityExecutionFramework.h')
-rw-r--r--libsolidity/solidityExecutionFramework.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libsolidity/solidityExecutionFramework.h b/libsolidity/solidityExecutionFramework.h
index 1e11ae90..e81b4d7b 100644
--- a/libsolidity/solidityExecutionFramework.h
+++ b/libsolidity/solidityExecutionFramework.h
@@ -46,7 +46,7 @@ public:
{
m_compiler.reset(false, m_addStandardSources);
m_compiler.addSource("", _sourceCode);
- ETH_TEST_REQUIRE_NO_THROW(m_compiler.compile(m_optimize), "Compiling contract failed");
+ ETH_TEST_REQUIRE_NO_THROW(m_compiler.compile(m_optimize, m_optimizeRuns), "Compiling contract failed");
bytes code = m_compiler.getBytecode(_contractName);
sendMessage(code, true, _value);
return m_output;
@@ -180,6 +180,7 @@ protected:
m_logs = executive.logs();
}
+ size_t m_optimizeRuns = 200;
bool m_optimize = false;
bool m_addStandardSources = false;
dev::solidity::CompilerStack m_compiler;