diff options
author | chriseth <chris@ethereum.org> | 2017-01-25 00:35:21 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-25 00:35:21 +0800 |
commit | 29dab03ec8b595fc25e010bd8b60b2e280d0ebed (patch) | |
tree | 0762448b2881d491817b0d1c25456cc6ae157148 /libevmasm/AssemblyItem.h | |
parent | b52a60402d0885f8700658488b02bc48f7746aaf (diff) | |
parent | 997f5d751a21263b1f104d547486abca3ee3bff6 (diff) | |
download | dexon-solidity-29dab03ec8b595fc25e010bd8b60b2e280d0ebed.tar dexon-solidity-29dab03ec8b595fc25e010bd8b60b2e280d0ebed.tar.gz dexon-solidity-29dab03ec8b595fc25e010bd8b60b2e280d0ebed.tar.bz2 dexon-solidity-29dab03ec8b595fc25e010bd8b60b2e280d0ebed.tar.lz dexon-solidity-29dab03ec8b595fc25e010bd8b60b2e280d0ebed.tar.xz dexon-solidity-29dab03ec8b595fc25e010bd8b60b2e280d0ebed.tar.zst dexon-solidity-29dab03ec8b595fc25e010bd8b60b2e280d0ebed.zip |
Merge pull request #1600 from ethereum/functionalAsmOut
Create functional assembly output, if possible.
Diffstat (limited to 'libevmasm/AssemblyItem.h')
-rw-r--r-- | libevmasm/AssemblyItem.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libevmasm/AssemblyItem.h b/libevmasm/AssemblyItem.h index 002b3c87..464368fb 100644 --- a/libevmasm/AssemblyItem.h +++ b/libevmasm/AssemblyItem.h @@ -116,7 +116,9 @@ public: /// @returns an upper bound for the number of bytes required by this item, assuming that /// the value of a jump tag takes @a _addressLength bytes. unsigned bytesRequired(unsigned _addressLength) const; - int deposit() const; + int arguments() const; + int returnValues() const; + int deposit() const { return returnValues() - arguments(); } /// @returns true if the assembly item can be used in a functional context. bool canBeFunctional() const; |