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 |
|
Roberto Ierusalimschy
|
1448e736f0
|
better documentation for constructor syntax
|
2009-10-14 13:43:11 -03:00 |
|
Roberto Ierusalimschy
|
6e415e9387
|
local function definition does not need to correct debug information
|
2009-10-13 16:35:42 -03:00 |
|
Roberto Ierusalimschy
|
916587508c
|
parser keeps list of active local variables in a single dynamic array,
therefore saving C stack space
|
2009-10-11 17:02:19 -03:00 |
|
Roberto Ierusalimschy
|
0ac3d07ea6
|
first implementation of lexical environments
|
2009-09-30 12:38:37 -03:00 |
|
Roberto Ierusalimschy
|
5938212748
|
information about upvalues (where they come from) kept in Proto structure,
instead of sequence of pseudo-opcodes after OP_CLOSURE
|
2009-09-28 13:32:50 -03:00 |
|
Roberto Ierusalimschy
|
f8e354e240
|
detail (space between function name and its parameter list)
|
2009-09-23 17:14:00 -03:00 |
|
Roberto Ierusalimschy
|
4e1ffc482a
|
test for 'fs' being NULL at the end of 'close_func' is useless ('fs'
cannot be NULl and the new ls->fs can only be NULL when the token
is EOS, in which case anchor_token has no effect).
|
2009-08-10 17:41:04 -03:00 |
|
Roberto Ierusalimschy
|
d7872dcf91
|
small optimization (reorder of BinOpr enum to unify some cases
in switches)
|
2009-06-18 13:35:05 -03:00 |
|
Roberto Ierusalimschy
|
2598138ece
|
new function 'luaK_codek' (detail)
|
2009-06-10 13:52:03 -03:00 |
|
Roberto Ierusalimschy
|
d7bc346d7a
|
no more code checking
|
2009-04-30 14:42:21 -03:00 |
|
Roberto Ierusalimschy
|
3dbf305408
|
no more support for old-style varargs
|
2009-03-26 09:57:01 -03:00 |
|
Roberto Ierusalimschy
|
84b3daebbd
|
generic for coded as two dedicated instructions to simplify resumption
|
2008-10-30 13:39:30 -02:00 |
|
Roberto Ierusalimschy
|
9e58e0df8f
|
some cleaning
|
2008-10-28 10:55:00 -02:00 |
|
Roberto Ierusalimschy
|
198be23f36
|
added structure for local-variable information to allow extra
checkings if needed
|
2008-05-08 12:44:51 -03:00 |
|
Roberto Ierusalimschy
|
5627d51e05
|
corrected error message ("too many constants" -> "too many functions")
|
2008-04-02 14:19:22 -03:00 |
|
Roberto Ierusalimschy
|
3138afbe2e
|
parser should not call 'luaX_lexerror'
|
2007-10-25 14:45:47 -02:00 |
|
Roberto Ierusalimschy
|
4eef0aaad1
|
detail
|
2007-10-18 09:01:52 -02:00 |
|
Roberto Ierusalimschy
|
f6a81dbe97
|
BUG: too many variables in an assignment may cause a C stack overflow
|
2007-07-31 16:39:52 -03:00 |
|
Roberto Ierusalimschy
|
aa003eba8e
|
details
|
2007-05-11 14:28:56 -03:00 |
|
Roberto Ierusalimschy
|
5f4f0d4a63
|
no more optimization to avoid LOADNIL at function start
|
2007-03-27 11:11:38 -03:00 |
|
Roberto Ierusalimschy
|
92dc64e121
|
more regularity in the use of quotes in error messages
|
2007-02-07 15:49:18 -02:00 |
|
Roberto Ierusalimschy
|
4d7cfff6df
|
comments
|
2006-11-22 09:02:03 -02:00 |
|
Roberto Ierusalimschy
|
9f5a052c27
|
error message
|
2006-10-24 10:31:48 -03:00 |
|
Roberto Ierusalimschy
|
bd869c7b31
|
details
|
2006-09-14 15:42:28 -03:00 |
|
Roberto Ierusalimschy
|
d5a23dde90
|
little better error messages for internal arrays overflows
|
2006-09-14 09:59:06 -03:00 |
|
Roberto Ierusalimschy
|
93bf618504
|
BUG: there is only one C stack, so nCcalls must be global
|
2006-08-15 16:59:20 -03:00 |
|
Roberto Ierusalimschy
|
0782416a74
|
bug: wrong limit for list constructors
|
2006-07-12 16:02:50 -03:00 |
|