mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #5878 from ethereum/const-opt
Move ConstantOptimiser constructor to header
This commit is contained in:
commit
3fdd0ed239
@ -134,11 +134,6 @@ bigint LiteralMethod::gasNeeded() const
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
CodeCopyMethod::CodeCopyMethod(Params const& _params, u256 const& _value):
|
|
||||||
ConstantOptimisationMethod(_params, _value)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
bigint CodeCopyMethod::gasNeeded() const
|
bigint CodeCopyMethod::gasNeeded() const
|
||||||
{
|
{
|
||||||
return combineGas(
|
return combineGas(
|
||||||
|
@ -119,7 +119,8 @@ public:
|
|||||||
class CodeCopyMethod: public ConstantOptimisationMethod
|
class CodeCopyMethod: public ConstantOptimisationMethod
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
explicit CodeCopyMethod(Params const& _params, u256 const& _value);
|
explicit CodeCopyMethod(Params const& _params, u256 const& _value):
|
||||||
|
ConstantOptimisationMethod(_params, _value) {}
|
||||||
bigint gasNeeded() const override;
|
bigint gasNeeded() const override;
|
||||||
AssemblyItems execute(Assembly& _assembly) const override;
|
AssemblyItems execute(Assembly& _assembly) const override;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user