diff options
author | chriseth <chris@ethereum.org> | 2017-06-02 00:16:38 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2017-06-08 21:52:45 +0800 |
commit | 19f707aeaa23b55a4a5940977a9d6351d1f06938 (patch) | |
tree | d77cd7415510a49c876071da194ab7b945eb4151 /libjulia/backends/evm/AbstractAssembly.h | |
parent | b098b363b55a687542c97c8f35f65d0eb08eb44a (diff) | |
download | dexon-solidity-19f707aeaa23b55a4a5940977a9d6351d1f06938.tar.gz dexon-solidity-19f707aeaa23b55a4a5940977a9d6351d1f06938.tar.zst dexon-solidity-19f707aeaa23b55a4a5940977a9d6351d1f06938.zip |
Some more comments.
Diffstat (limited to 'libjulia/backends/evm/AbstractAssembly.h')
-rw-r--r-- | libjulia/backends/evm/AbstractAssembly.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/libjulia/backends/evm/AbstractAssembly.h b/libjulia/backends/evm/AbstractAssembly.h index 73c6699f..baed833b 100644 --- a/libjulia/backends/evm/AbstractAssembly.h +++ b/libjulia/backends/evm/AbstractAssembly.h @@ -72,17 +72,22 @@ public: /// Append a jump instruction. /// @param _stackDiffAfter the stack adjustment after this instruction. + /// This is helpful to stack height analysis if there is no continuing control flow. virtual void appendJump(int _stackDiffAfter) = 0; /// Append a jump-to-immediate operation. + /// @param _stackDiffAfter the stack adjustment after this instruction. virtual void appendJumpTo(LabelID _label, int _stackDiffAfter = 0) = 0; /// Append a jump-to-if-immediate operation. virtual void appendJumpToIf(LabelID _label) = 0; - /// Start a subroutine. + /// Start a subroutine identified by @a _label that takes @a _arguments + /// stack slots as arguments. virtual void appendBeginsub(LabelID _label, int _arguments) = 0; - /// Call a subroutine. + /// Call a subroutine identified by @a _label, taking @a _arguments from the + /// stack upon call and putting @a _returns arguments onto the stack upon return. virtual void appendJumpsub(LabelID _label, int _arguments, int _returns) = 0; /// Return from a subroutine. + /// @param _stackDiffAfter the stack adjustment after this instruction. virtual void appendReturnsub(int _returns, int _stackDiffAfter = 0) = 0; }; |