diff options
author | chriseth <chris@ethereum.org> | 2017-04-28 19:09:48 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2017-04-28 19:14:52 +0800 |
commit | 28f10f4783bd4365654191740069a7112be03d92 (patch) | |
tree | 0a6900822f7c838ba59a0916c90b54c7e7890441 /docs | |
parent | f9bccab7b744c786f1eb12fad5cc0e499d0f1075 (diff) | |
download | dexon-solidity-28f10f4783bd4365654191740069a7112be03d92.tar dexon-solidity-28f10f4783bd4365654191740069a7112be03d92.tar.gz dexon-solidity-28f10f4783bd4365654191740069a7112be03d92.tar.bz2 dexon-solidity-28f10f4783bd4365654191740069a7112be03d92.tar.lz dexon-solidity-28f10f4783bd4365654191740069a7112be03d92.tar.xz dexon-solidity-28f10f4783bd4365654191740069a7112be03d92.tar.zst dexon-solidity-28f10f4783bd4365654191740069a7112be03d92.zip |
Remove error label / invalid jump label.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/assembly.rst | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/docs/assembly.rst b/docs/assembly.rst index 420cea17..07583a24 100644 --- a/docs/assembly.rst +++ b/docs/assembly.rst @@ -431,11 +431,6 @@ As an example how this can be done in extreme cases, please see the following. pop // We have to pop the manually pushed value here again. } -.. note:: - - ``invalidJumpLabel`` is a pre-defined label. Jumping to this location will always - result in an invalid jump, effectively aborting execution of the code. - Declaring Assembly-Local Variables ---------------------------------- @@ -699,7 +694,7 @@ The following assembly will be generated:: mstore(ret, r) return(ret, 0x20) } - default: { jump(invalidJumpLabel) } + default: { revert(0, 0) } // memory allocator function $allocate(size) -> pos { pos := mload(0x40) @@ -744,7 +739,7 @@ After the desugaring phase it looks as follows:: } $caseDefault: { - jump(invalidJumpLabel) + revert(0, 0) jump($endswitch) } $endswitch: |