Roberto Ierusalimschy
|
6819c2a98a
|
silly bug in 5.2 beta: assignment conflict code did not test to check
whether variable was a table element
|
2011-10-24 12:51:44 -02:00 |
|
Roberto Ierusalimschy
|
e24f1ee9ff
|
lint (unreachable code)
|
2011-09-30 09:44:45 -03:00 |
|
Roberto Ierusalimschy
|
500336efd0
|
small bug in if-goto optimization: block must be closed ('leaveblock')
*before* the jump out ('escapelist')
|
2011-09-14 14:40:26 -03:00 |
|
Roberto Ierusalimschy
|
c8f47c2934
|
optimization for |if cond then goto|
|
2011-08-30 13:38:58 -03:00 |
|
Roberto Ierusalimschy
|
121dc8af66
|
cleaner code for 'if' construct
|
2011-08-25 10:45:24 -03:00 |
|
Roberto Ierusalimschy
|
3dc5475e23
|
'nCcalls' should be local to each thread, as each thread may have its
own C stack (with LuaThreads or something similar)
|
2011-08-23 14:24:34 -03:00 |
|
Roberto Ierusalimschy
|
59bcd137ae
|
reducing even more use of C stack by the parser: struct 'FuncState'
does not need field 'L' + number of labels/gotos in a chunk may be
limited to SHRT_MAX. (Also removed some non-needed 'unsigned's.)
|
2011-07-27 15:09:01 -03:00 |
|
Roberto Ierusalimschy
|
32a12e2f3f
|
detail (cleaned whitespaces at end of lines)
|
2011-07-15 09:50:29 -03:00 |
|
Roberto Ierusalimschy
|
d93df22bf6
|
small simplifications (and assert was wrongly written)
|
2011-07-02 12:58:14 -03:00 |
|
Roberto Ierusalimschy
|
374773748b
|
back to "one-label-per-block"
|
2011-06-27 15:18:59 -03:00 |
|
Roberto Ierusalimschy
|
719c01359f
|
label syntax changed to ':🏷️:'
|
2011-06-20 13:52:48 -03:00 |
|
Roberto Ierusalimschy
|
fdede85419
|
label names must be unique inside a function
|
2011-06-16 13:36:39 -03:00 |
|
Roberto Ierusalimschy
|
c9ce754e38
|
comment
|
2011-05-02 14:33:01 -03:00 |
|
Roberto Ierusalimschy
|
f17e3624ef
|
local function name only visible to debug info after being initialized
|
2011-04-18 16:48:24 -03:00 |
|
Roberto Ierusalimschy
|
7482e8f914
|
no need of lookahead in Zio
|
2011-02-23 10:13:10 -03:00 |
|
Roberto Ierusalimschy
|
c0a865fa54
|
error for repeated label + jumps allowed to labels followed by
'no-op' statements
|
2011-02-14 14:36:34 -02:00 |
|
Roberto Ierusalimschy
|
0009ac1f3a
|
'break' does not need to be last statement in a block +
'explist1' -> 'explist' + moving a few functions around
|
2011-02-14 12:59:28 -02:00 |
|
Roberto Ierusalimschy
|
bf8b08295a
|
'break' coded as 'goto' + small bug when closing multiple gotos
to the same label
|
2011-02-10 12:50:41 -02:00 |
|
Roberto Ierusalimschy
|
3f5b56c48b
|
simpler code for repeat-until
|
2011-02-09 15:03:18 -02:00 |
|
Roberto Ierusalimschy
|
e7192dfdbb
|
corrected 'follow' for checking whether label is last statement
in a block
|
2011-02-09 14:51:28 -02:00 |
|
Roberto Ierusalimschy
|
0539f48661
|
small changes in goto-related error messages
|
2011-02-09 12:45:19 -02:00 |
|
Roberto Ierusalimschy
|
fd6c1f4898
|
ensures that all local variables are declared inside some block,
opening a new block at 'open_func'
|
2011-02-07 17:00:30 -02:00 |
|
Roberto Ierusalimschy
|
f079749287
|
some reorganization of dynamic data structures used by the parser
|
2011-02-07 15:14:50 -02:00 |
|
Roberto Ierusalimschy
|
f8d677f94c
|
no more 'OP_CLOSE' instructions (use jumps to close upvalues)
|
2011-02-07 10:28:27 -02:00 |
|
Roberto Ierusalimschy
|
7cc0e63d8a
|
first implementation of 'goto'
|
2011-02-04 15:34:43 -02:00 |
|
Roberto Ierusalimschy
|
dd547c55c8
|
new scheme to close upvalues in 'break'; jump instructions may
do the close, avoiding the need for a OP_CLOSE instruction
|
2011-02-01 16:03:10 -02:00 |
|
Roberto Ierusalimschy
|
c4ea0c3b29
|
detail (cleaning trailing spaces)
|
2011-01-26 14:30:02 -02:00 |
|
Roberto Ierusalimschy
|
7e0caa7d61
|
new closures are always created on "next" register (so that GC knows
stack limit)
|
2010-12-17 10:03:41 -02:00 |
|
Roberto Ierusalimschy
|
4a83fe569c
|
comment
|
2010-12-15 17:13:29 -02:00 |
|
Roberto Ierusalimschy
|
0df2238063
|
name "_ENV" configurable through 'luaconf.h'
|
2010-09-07 16:21:39 -03:00 |
|
Roberto Ierusalimschy
|
8d9ea59d28
|
'pushclosure' -> 'codeclosure' (as there is another 'pushclosure' in
'lvm.c) + small detail
|
2010-08-23 14:32:34 -03:00 |
|
Roberto Ierusalimschy
|
81dd13f4c6
|
new way to distinguish between indexing tables in registers and
tables in upvalues (+ fixed small bug when checking conflicts in
multiple assignments)
|
2010-07-07 13:27:29 -03:00 |
|
Roberto Ierusalimschy
|
6a02bbe1e2
|
better organization for fields in struct 'expdesc'
|
2010-07-02 17:42:40 -03:00 |
|
Roberto Ierusalimschy
|
ca3865cf1b
|
'getlocal' gets information about parameters of Lua functions
|
2010-06-21 13:30:12 -03:00 |
|
Roberto Ierusalimschy
|
bd619b9311
|
new macro MAXUPVAL (maximum number of upvalues per closure)
|
2010-05-31 13:08:55 -03:00 |
|
Roberto Ierusalimschy
|
12c764ed1e
|
semicolons now represent the empty statement
|
2010-05-15 10:32:02 -03:00 |
|
Roberto Ierusalimschy
|
058279d548
|
comments
|
2010-05-14 12:03:43 -03:00 |
|
Roberto Ierusalimschy
|
0d00729e31
|
detail (breaking a long line)
|
2010-05-13 09:03:26 -03:00 |
|
Roberto Ierusalimschy
|
c066ac10a9
|
better line numbers for function calls and unary/binary operators +
null statement + no more "ambiguous syntax" restriction
|
2010-04-17 09:46:32 -03:00 |
|
Roberto Ierusalimschy
|
6abde1b05a
|
no need to keep "_ENV" name in global state (can be kept in lex state)
|
2010-04-05 13:35:37 -03:00 |
|
Roberto Ierusalimschy
|
d394d5536a
|
new macro 'eqstr'
|
2010-04-05 13:26:37 -03:00 |
|
Roberto Ierusalimschy
|
22ef84b6c8
|
'_ENV' name permanently stored in global state for easier access
|
2010-03-13 12:55:42 -03:00 |
|
Roberto Ierusalimschy
|
25c557ec63
|
first version of _ENV; no more global variables
|
2010-03-12 16:14:06 -03:00 |
|
Roberto Ierusalimschy
|
1124cb1247
|
first step towards _ENV: all chunks have an puvalues _ENV with the
global table
|
2010-03-08 13:55:52 -03:00 |
|
Roberto Ierusalimschy
|
e560ac4862
|
when searching for a variable name, look existing upvalues before
goingg to upper levels
|
2010-03-04 15:12:57 -03:00 |
|
Roberto Ierusalimschy
|
0fe2576a39
|
new instructions to optimize indexing on upvalues
|
2010-02-26 17:40:29 -03:00 |
|
Roberto Ierusalimschy
|
389c890ed3
|
again changing macro to function to save a few bytes
|
2010-01-06 09:48:02 -02:00 |
|
Roberto Ierusalimschy
|
e3866afa97
|
macro 'luaY_checklimit' changed into a function (and renamed 'checklimit').
It makes no sense to trade space for time in the parser.
|
2010-01-05 16:46:58 -02:00 |
|
Roberto Ierusalimschy
|
3c4d970a7b
|
comment typos
|
2009-11-26 09:39:20 -02:00 |
|
Roberto Ierusalimschy
|
35fa276099
|
parser/scanner keep GC running
|
2009-11-17 14:33:38 -02:00 |
|