diff options
author | chriseth <c@ethdev.com> | 2017-01-24 08:09:10 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2017-01-24 08:09:55 +0800 |
commit | 997f5d751a21263b1f104d547486abca3ee3bff6 (patch) | |
tree | f509018263427961284f6c89b4a309edd1cae6f2 /libevmasm/AssemblyItem.h | |
parent | c5a501addd2c339621af76db86bcf87c7111fc8d (diff) | |
download | dexon-solidity-997f5d751a21263b1f104d547486abca3ee3bff6.tar dexon-solidity-997f5d751a21263b1f104d547486abca3ee3bff6.tar.gz dexon-solidity-997f5d751a21263b1f104d547486abca3ee3bff6.tar.bz2 dexon-solidity-997f5d751a21263b1f104d547486abca3ee3bff6.tar.lz dexon-solidity-997f5d751a21263b1f104d547486abca3ee3bff6.tar.xz dexon-solidity-997f5d751a21263b1f104d547486abca3ee3bff6.tar.zst dexon-solidity-997f5d751a21263b1f104d547486abca3ee3bff6.zip |
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; |