diff options
author | chriseth <chris@ethereum.org> | 2017-12-11 19:00:47 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-11 19:00:47 +0800 |
commit | 27f38fb5b31b9f0c228238cf0471155498b951b7 (patch) | |
tree | ec3b267045e359a371f245a8dd3d87d139882804 /docs | |
parent | a5d2cecbc30e2b468488b32312a21cd86bf6dd1e (diff) | |
parent | ca16099ad046c6e67debf2796f655e83328341bd (diff) | |
download | dexon-solidity-27f38fb5b31b9f0c228238cf0471155498b951b7.tar dexon-solidity-27f38fb5b31b9f0c228238cf0471155498b951b7.tar.gz dexon-solidity-27f38fb5b31b9f0c228238cf0471155498b951b7.tar.bz2 dexon-solidity-27f38fb5b31b9f0c228238cf0471155498b951b7.tar.lz dexon-solidity-27f38fb5b31b9f0c228238cf0471155498b951b7.tar.xz dexon-solidity-27f38fb5b31b9f0c228238cf0471155498b951b7.tar.zst dexon-solidity-27f38fb5b31b9f0c228238cf0471155498b951b7.zip |
Merge pull request #3281 from GNSPS/develop
Removed manual adjustment of stack of the docs
Diffstat (limited to 'docs')
-rw-r--r-- | docs/assembly.rst | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/docs/assembly.rst b/docs/assembly.rst index c233985b..a4fa88c6 100644 --- a/docs/assembly.rst +++ b/docs/assembly.rst @@ -447,31 +447,6 @@ will have a wrong impression about the stack height at label ``two``: three: } -This problem can be fixed by manually adjusting the stack height for the -assembler - you can provide a stack height delta that is added -to the stack height just prior to the label. -Note that you will not have to care about these things if you just use -loops and assembly-level functions. - -As an example how this can be done in extreme cases, please see the following. - -.. code:: - - { - let x := 8 - jump(two) - 0 // This code is unreachable but will adjust the stack height correctly - one: - x := 9 // Now x can be accessed properly. - jump(three) - pop // Similar negative correction. - two: - 7 // push something onto the stack - jump(one) - three: - pop // We have to pop the manually pushed value here again. - } - Declaring Assembly-Local Variables ---------------------------------- |