Roberto Ierusalimschy 7ca3c40b50 Another way to compile goto's
The compilation of a goto or a label just create an entry and generate
boilerplate code for the gotos. As we don't know yet whether it needs a
CLOSE, we code a jump followed by a CLOSE, which is then dead code.

When a block ends (and then we know for sure whether there are variables
that need to be closed), we check the goto's against the labels of that
block. When closing a goto against a label, if it needs a CLOSE, the
compiler swaps the order of the jump and the CLOSE, making the CLOSE
active.
2025-01-10 13:54:51 -03:00
2025-01-10 13:54:51 -03:00
2024-07-27 13:32:59 -03:00
2020-09-03 09:52:43 -03:00
2024-12-17 13:36:12 -03:00
2024-06-20 13:43:33 -03:00
2024-07-27 13:32:59 -03:00
2024-11-15 12:04:53 -03:00
2024-11-29 17:26:20 -03:00
2025-01-06 12:41:39 -03:00
2024-06-20 14:46:06 -03:00
2024-10-23 17:16:17 -03:00
2020-04-23 14:48:15 -03:00
2020-09-15 14:29:52 -03:00
2024-11-15 11:57:18 -03:00
2024-07-27 13:32:59 -03:00
2024-07-27 13:32:59 -03:00
2024-10-23 17:16:17 -03:00
2024-12-05 14:27:58 -03:00
2024-09-06 14:35:04 -03:00
2020-04-23 14:48:15 -03:00
2024-07-27 13:32:59 -03:00
2025-01-10 13:54:51 -03:00
2025-01-10 13:54:51 -03:00
2020-04-23 14:48:15 -03:00
2024-11-15 12:04:53 -03:00
2024-07-27 13:32:59 -03:00
2025-01-06 12:41:39 -03:00
2024-09-12 11:08:11 -03:00
2024-07-27 13:32:59 -03:00
2024-07-27 13:32:59 -03:00
2024-11-15 11:43:32 -03:00
2024-07-27 13:32:59 -03:00
2024-03-13 09:16:51 -03:00
2024-09-06 14:35:04 -03:00
2025-01-10 13:54:51 -03:00
2024-07-27 13:32:59 -03:00
2024-06-20 13:43:33 -03:00
2024-07-27 13:32:59 -03:00
2024-11-29 17:39:20 -03:00
2023-03-09 11:12:11 -03:00
2020-12-02 15:13:13 -03:00

Lua

This is the repository of Lua development code, as seen by the Lua team. It contains the full history of all commits but is mirrored irregularly. For complete information about Lua, visit Lua.org.

Please do not send pull requests. To report issues, post a message to the Lua mailing list.

Download official Lua releases from Lua.org.

Description
No description provided
Readme 18 MiB
Languages
C 67.2%
Lua 32.2%
Makefile 0.6%