diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-10-30 15:04:19 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-10-30 15:04:19 -0300 |
commit | 2316ec4c24a475e091ec3153a5bd908801a3a109 (patch) | |
tree | ce14172ed7d7dc8874ea282a97d41f4b380f419e /lvm.c | |
parent | a006514ea138a29b6031058d9002b48a572b5dd6 (diff) | |
download | lua-2316ec4c24a475e091ec3153a5bd908801a3a109.tar.gz lua-2316ec4c24a475e091ec3153a5bd908801a3a109.tar.bz2 lua-2316ec4c24a475e091ec3153a5bd908801a3a109.zip |
Back with optimization for 'if cond then goto'
Statements like 'if cond then goto label' generate code so that the
jump in the 'if' goes directly to the given label. This optimization
cannot be done when the jump is backwards leaving the scope of some
variable, as it cannot add the needed 'close' instruction. (The jumps
were already generated by the 'if'.)
This commit also added 'likely'/'unlikely' for tests for errors in
the parser, and it changed the way breaks outside loops are detected.
(Now they are detected like other goto's with undefined labels.)
Diffstat (limited to 'lvm.c')
0 files changed, 0 insertions, 0 deletions