1
0
mirror of https://github.com/lua/lua.git synced 2025-01-14 05:43:00 +08:00
Roberto Ierusalimschy 2316ec4c24 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.)
2018-10-30 15:04:19 -03:00
2018-10-22 15:02:09 -03:00
all
2018-07-09 12:33:01 -03:00
2018-06-08 13:23:18 -03:00
2018-10-25 15:30:15 -03:00
2018-10-25 15:30:15 -03:00
2018-10-25 15:30:15 -03:00
2018-09-11 08:39:12 -03:00
2018-10-23 12:58:38 -03:00
2018-10-08 10:42:07 -03:00
2018-10-08 10:42:07 -03:00
2018-10-25 15:30:15 -03:00
2018-07-12 15:56:44 -03:00
2018-06-18 15:25:19 -03:00
Description
No description provided
16 MiB
Languages
C 67.4%
Lua 32%
Makefile 0.6%