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.)
Description
No description provided
Languages
C
67.4%
Lua
32%
Makefile
0.6%