aboutsummaryrefslogtreecommitdiffstats
path: root/docs/assembly.rst
diff options
context:
space:
mode:
authorGonçalo Sá <goncalo05@gmail.com>2017-12-05 11:20:35 +0800
committerGonçalo Sá <goncalo05@gmail.com>2017-12-05 11:20:35 +0800
commitca16099ad046c6e67debf2796f655e83328341bd (patch)
treec1048489e3b74a27bd5de3f4f0e541966b5418c2 /docs/assembly.rst
parent240c79e61450d69f45356242924c23adf2a004b4 (diff)
downloaddexon-solidity-ca16099ad046c6e67debf2796f655e83328341bd.tar.gz
dexon-solidity-ca16099ad046c6e67debf2796f655e83328341bd.tar.zst
dexon-solidity-ca16099ad046c6e67debf2796f655e83328341bd.zip
Removed manual adjustment of stack of the docs
Removed the section fo the docs regarding manual adjustment of the stack given the `unbalanced stack` check prevents its use
Diffstat (limited to 'docs/assembly.rst')
-rw-r--r--docs/assembly.rst25
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
----------------------------------