diff options
author | chriseth <c@ethdev.com> | 2015-10-14 21:19:50 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2015-10-15 23:38:42 +0800 |
commit | 039b2a764f3944768bb253102f4c4b788f2dca9c (patch) | |
tree | c3cc0cac454b2f0a567b1e9d6c10e1ac16be0858 /libsolidity/CompilerUtils.h | |
parent | 7ebd536e79215f06f5ce7e14591aa494d06032b6 (diff) | |
download | dexon-solidity-039b2a764f3944768bb253102f4c4b788f2dca9c.tar dexon-solidity-039b2a764f3944768bb253102f4c4b788f2dca9c.tar.gz dexon-solidity-039b2a764f3944768bb253102f4c4b788f2dca9c.tar.bz2 dexon-solidity-039b2a764f3944768bb253102f4c4b788f2dca9c.tar.lz dexon-solidity-039b2a764f3944768bb253102f4c4b788f2dca9c.tar.xz dexon-solidity-039b2a764f3944768bb253102f4c4b788f2dca9c.tar.zst dexon-solidity-039b2a764f3944768bb253102f4c4b788f2dca9c.zip |
Destructuring assignments.
Diffstat (limited to 'libsolidity/CompilerUtils.h')
-rw-r--r-- | libsolidity/CompilerUtils.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/libsolidity/CompilerUtils.h b/libsolidity/CompilerUtils.h index f335eed5..01b9f422 100644 --- a/libsolidity/CompilerUtils.h +++ b/libsolidity/CompilerUtils.h @@ -124,10 +124,11 @@ public: /// Copies an item that occupies @a _itemSize stack slots from a stack depth of @a _stackDepth /// to the top of the stack. void copyToStackTop(unsigned _stackDepth, unsigned _itemSize); - /// Moves a single stack element (with _stackDepth items on top of it) to the top of the stack. - void moveToStackTop(unsigned _stackDepth); - /// Moves a single stack element past @a _stackDepth other stack elements - void moveIntoStack(unsigned _stackDepth); + /// Moves an item that occupies @a _itemSize stack slots and has items occupying @a _stackDepth + /// slots above it to the top of the stack. + void moveToStackTop(unsigned _stackDepth, unsigned _itemSize = 1); + /// Moves @a _itemSize elements past @a _stackDepth other stack elements + void moveIntoStack(unsigned _stackDepth, unsigned _itemSize = 1); /// Removes the current value from the top of the stack. void popStackElement(Type const& _type); /// Removes element from the top of the stack _amount times. |