Roberto Ierusalimschy
|
8bb272a3e3
|
new conversion float->integer: conversion is valid only when
float has an exact representation as an integer
|
2014-07-17 09:30:53 -03:00 |
|
Roberto Ierusalimschy
|
5bbb4a06a6
|
removed unused parameter Ä'L' in macro 'api_check' and company
|
2014-07-15 18:26:50 -03:00 |
|
Roberto Ierusalimschy
|
16493b777f
|
'lua_sethook' returns void
|
2013-12-09 12:21:10 -02:00 |
|
Roberto Ierusalimschy
|
98d76cdcae
|
bug: Wrong error message in some short-cut expressions
|
2013-07-10 17:32:36 -03:00 |
|
Roberto Ierusalimschy
|
f2043b7a58
|
correct error message for conversion errors from float to int
|
2013-05-06 14:21:59 -03:00 |
|
Roberto Ierusalimschy
|
9b9becf384
|
added 'const' to parameters of 'luaG_concaterror'
|
2013-04-29 13:58:10 -03:00 |
|
Roberto Ierusalimschy
|
4abe99dc34
|
new interface for 'tonumber'
|
2013-04-26 13:03:50 -03:00 |
|
Roberto Ierusalimschy
|
a2f5c28a80
|
new operation '//' (integer division)
|
2013-04-26 10:08:29 -03:00 |
|
Roberto Ierusalimschy
|
32bf6c9b27
|
functions 'traceexec', 'callTM', and 'call_binTM' moved to other
files to make 'lvm.c' a little smaller
|
2013-04-25 12:59:42 -03:00 |
|
Roberto Ierusalimschy
|
a3e1c40d6d
|
remove of unecessary luaD_checkstack. (In some cases, C should
ensure stack space; in others, Lua can use the extra slots for
temporary values.)
|
2012-08-16 14:34:28 -03:00 |
|
Roberto Ierusalimschy
|
fd22ccd6d0
|
object tag keeps variant bits too -> no need for 'isC' field in
Closures + more strick typing for closure variants
|
2012-01-20 20:05:50 -02:00 |
|
Roberto Ierusalimschy
|
6d8b672094
|
more uses of 'l_noret'
|
2011-11-30 10:43:51 -02:00 |
|
Roberto Ierusalimschy
|
217e67cb22
|
new type 'l_noret' for function that do not return
|
2011-10-07 17:45:19 -03:00 |
|
Roberto Ierusalimschy
|
2275030b86
|
details (and missing 'break's)
|
2011-09-13 15:05:59 -03:00 |
|
Roberto Ierusalimschy
|
05de314701
|
upvalue names always can be NULL (if debug info was removed), so
always check for that case
|
2011-09-13 14:40:20 -03:00 |
|
Roberto Ierusalimschy
|
0b65cb74cd
|
new implementation for 'getobjname': first search for relevant
instruction (new function 'findsetreg') and then try to build
a meaningful name
|
2011-08-12 17:01:44 -03:00 |
|
Roberto Ierusalimschy
|
92afcf2823
|
no more 'luaH_setstr (used only once) + 'luaH_setint' receives value
to be set.
|
2011-08-09 17:58:29 -03:00 |
|
Roberto Ierusalimschy
|
3b44821334
|
stricter control (using tag variants) over closure kinds (Lua x C)
|
2011-06-02 16:31:40 -03:00 |
|
Roberto Ierusalimschy
|
d120ec29ca
|
bug in OP_SELF when method name goes to a register
|
2011-04-28 11:00:11 -03:00 |
|
Roberto Ierusalimschy
|
4758113043
|
change in opcode OP_LOADNIL: B is used as a counter instead of a
register. (Avoids an assignment to R(B), not present in any other
instruction.)
|
2011-04-19 13:22:13 -03:00 |
|
Roberto Ierusalimschy
|
a4e644add2
|
small bug (masked by wrong entry for OP_TEST in opcodes.c)
|
2011-04-18 16:49:13 -03:00 |
|
Roberto Ierusalimschy
|
2e9b8476ca
|
detail ('luai_apicheck' should be used always through macro 'api_check')
|
2011-04-18 12:02:37 -03:00 |
|
Roberto Ierusalimschy
|
427ee519db
|
new instruction OP_LOADKX (to replace OP_LOADK with extra argument)
|
2011-04-07 15:14:12 -03:00 |
|
Roberto Ierusalimschy
|
c4ea0c3b29
|
detail (cleaning trailing spaces)
|
2011-01-26 14:30:02 -02:00 |
|
Roberto Ierusalimschy
|
12779b2b71
|
getlocal/setlocal can access vararg parameters
|
2010-11-30 15:17:51 -02:00 |
|
Roberto Ierusalimschy
|
cd0ebd0a80
|
'proto->source' may be NULL (if dump strips debug information)
|
2010-10-11 17:24:42 -03:00 |
|
Roberto Ierusalimschy
|
0df2238063
|
name "_ENV" configurable through 'luaconf.h'
|
2010-09-07 16:21:39 -03:00 |
|
Roberto Ierusalimschy
|
ca3865cf1b
|
'getlocal' gets information about parameters of Lua functions
|
2010-06-21 13:30:12 -03:00 |
|
Roberto Ierusalimschy
|
409741e900
|
'what' may be NULL in 'kname'
|
2010-06-16 10:44:36 -03:00 |
|
Roberto Ierusalimschy
|
7dfa4cd655
|
first implementation of light C functions
|
2010-04-14 12:13:48 -03:00 |
|
Roberto Ierusalimschy
|
28aa733c15
|
macro 'eqstr' was being used to compare non-string entities
|
2010-04-08 14:06:33 -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
|
c295147874
|
when finding a 'name' for a function, handle the case when the function
is a for iterator
|
2010-03-05 11:01:29 -03:00 |
|
Roberto Ierusalimschy
|
0fe2576a39
|
new instructions to optimize indexing on upvalues
|
2010-02-26 17:40:29 -03:00 |
|
Roberto Ierusalimschy
|
070d3743a7
|
"no value" added to array luaT_typenames + occurrences of "userdata"
in that array unified in a single address
|
2010-01-13 14:18:25 -02:00 |
|
Roberto Ierusalimschy
|
427e01eb63
|
removed useless initialization
|
2010-01-11 15:37:59 -02:00 |
|
Roberto Ierusalimschy
|
5bcfe0c700
|
new debug info 'isvararg' and 'nparams'
|
2010-01-06 12:42:35 -02:00 |
|
Roberto Ierusalimschy
|
513d0258d9
|
details
|
2009-12-01 14:31:04 -02:00 |
|
Roberto Ierusalimschy
|
19a6c38745
|
detail in 'currentpc' (only needs to work for Lua functions)
|
2009-11-26 13:34:15 -02:00 |
|
Roberto Ierusalimschy
|
b0f2b288a6
|
new scheme for debug info about tail calls: no more 'fake' stack entries,
but stack entry knows whether it was tail called
|
2009-11-25 13:27:51 -02:00 |
|
Roberto Ierusalimschy
|
b114c99a60
|
two small bugs: 'debug.getinfo' did not consider negative indices as out
of range + 'debug.[gs]etlocal' crash on tail calls
|
2009-10-13 16:07:40 -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
|
ab75bd23ee
|
handle extended opcodes (with OP_EXTRAARG) when checking metamethod
calls
|
2009-09-28 09:37:17 -03:00 |
|
Roberto Ierusalimschy
|
fcc46467fa
|
limit of constants per function changed to 2^26 using extra arguments
to opcodes LOADK, GETGLOBAL, and SETGLOBAL
|
2009-09-23 17:33:05 -03:00 |
|
Roberto Ierusalimschy
|
3135a6bbab
|
luaH_[gs]etnum renamed to luaH_[gs]etint (as they only accept integers,
not generic numbers)
|
2009-08-07 13:17:41 -03:00 |
|
Roberto Ierusalimschy
|
2258ec6bc9
|
'getline' renamed to 'getfuncline' (to avoid problems with POSIX)
|
2009-06-10 13:57:53 -03:00 |
|
Roberto Ierusalimschy
|
9423e22aa3
|
no more L->base + ci->base only for Lua functions (C functions may use
'func')
|
2009-06-01 16:09:26 -03:00 |
|
Roberto Ierusalimschy
|
e67dc3a227
|
'symbexec' merged with 'getobjname' (as only use for symbolic execution
now is to find a "good" name for an object)
|
2009-05-04 15:26:21 -03:00 |
|
Roberto Ierusalimschy
|
d7bc346d7a
|
no more code checking
|
2009-04-30 14:42:21 -03:00 |
|
Roberto Ierusalimschy
|
c1f78ff3d3
|
unused arguments removed
|
2009-04-27 15:58:31 -03:00 |
|
Roberto Ierusalimschy
|
d3037d97ec
|
several small improvements based on 'ci' being fixed now (including
erasing savedpc from lua_State)
|
2009-04-17 19:00:01 -03:00 |
|
Roberto Ierusalimschy
|
4f88418170
|
'CallInfo' stack implemented as double-linked list instead of an array
|
2009-04-17 11:28:06 -03:00 |
|
Roberto Ierusalimschy
|
3dbf305408
|
no more support for old-style varargs
|
2009-03-26 09:57:01 -03:00 |
|
Roberto Ierusalimschy
|
ba484b9eb1
|
yielding across lua_call (first version)
|
2009-03-10 14:14:37 -03:00 |
|
Roberto Ierusalimschy
|
1817dfc301
|
initial separation, in CallInfo, of what is relevant only to Lua
functions or only to C functions
|
2009-03-04 10:32:29 -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
|
f94cd2201c
|
better control of call status through CallInfo
|
2008-08-26 10:27:42 -03:00 |
|
Roberto Ierusalimschy
|
4d8a1103d3
|
useless #define removed (pointed by lint)
|
2008-07-03 11:24:11 -03:00 |
|
Roberto Ierusalimschy
|
85bda9eef5
|
bugs: precheck must use check (instead of assert) and ensures that
code size is at least 1
|
2008-04-02 16:14:16 -03:00 |
|
Roberto Ierusalimschy
|
a4d3080fe3
|
SETLIST extra argument now is an "instruction" (OP_EXTRAARG)
|
2008-04-02 14:38:54 -03:00 |
|
Roberto Ierusalimschy
|
fc8d077612
|
bug: wrong error message in some concatenations
|
2007-05-29 15:59:59 -03:00 |
|
Roberto Ierusalimschy
|
becf19feef
|
better names for metamethods in debug information
|
2007-05-09 12:49:36 -03:00 |
|
Roberto Ierusalimschy
|
97505caa64
|
detail
|
2007-03-26 15:35:34 -03:00 |
|
Roberto Ierusalimschy
|
a68df3898d
|
detail
|
2006-11-22 09:43:47 -02:00 |
|
Roberto Ierusalimschy
|
d1ef7e0ec6
|
avoid local "pc" in interpreter loop (tricky optimization with no real gain)
|
2006-09-19 10:57:50 -03:00 |
|
Roberto Ierusalimschy
|
a7c9e45c64
|
avoid trailing white spaces
|
2006-09-11 11:07:24 -03:00 |
|
Roberto Ierusalimschy
|
ca7e5b5cb6
|
wrong message error in some cases involving closures
|
2006-08-07 16:04:06 -03:00 |
|
Roberto Ierusalimschy
|
3ca9af51a4
|
emergency garbage collector (core forces a GC when allocation fails)
|
2006-07-11 12:53:29 -03:00 |
|
Roberto Ierusalimschy
|
c505f341d6
|
small changes in casts
|
2005-12-22 14:19:56 -02:00 |
|
Roberto Ierusalimschy
|
930018e273
|
lua_getlocal/setlocal work also for C locals and temporaries
|
2005-11-01 14:08:52 -02:00 |
|
Roberto Ierusalimschy
|
0fa9b16148
|
details
|
2005-10-06 17:43:44 -03:00 |
|
Roberto Ierusalimschy
|
680fc88cc2
|
a small bug
|
2005-08-04 10:37:38 -03:00 |
|
Roberto Ierusalimschy
|
87be01598b
|
warnings Visual C
|
2005-07-11 10:59:03 -03:00 |
|
Roberto Ierusalimschy
|
69cc0a12fe
|
small bug
|
2005-06-28 10:01:31 -03:00 |
|
Roberto Ierusalimschy
|
3c2cf9db67
|
some extra consistency checks
|
2005-06-13 11:39:19 -03:00 |
|
Roberto Ierusalimschy
|
bf2b342ac1
|
better control for compatibility code for varargs
|
2005-06-13 11:15:54 -03:00 |
|
Roberto Ierusalimschy
|
90de38bf1f
|
warnings in VS .Net
|
2005-05-31 11:25:18 -03:00 |
|
Roberto Ierusalimschy
|
67578ec51f
|
several small details
|
2005-05-17 16:49:15 -03:00 |
|
Roberto Ierusalimschy
|
c2bb9abcec
|
better quotes for strings in error messages
|
2005-05-16 18:19:00 -03:00 |
|
Roberto Ierusalimschy
|
a2b78aad49
|
debug information for active lines
|
2005-05-16 15:45:15 -03:00 |
|
Roberto Ierusalimschy
|
1ab2b93462
|
debug information for last line of a function definition
|
2005-05-05 17:47:02 -03:00 |
|
Roberto Ierusalimschy
|
65f4a0f636
|
no more compatibility code for traversing tables
|
2005-05-04 17:42:28 -03:00 |
|
Roberto Ierusalimschy
|
8c3c3e7691
|
small bug for tail-recursive debugging
|
2005-04-14 10:30:47 -03:00 |
|
Roberto Ierusalimschy
|
7b6c3b463e
|
small optimizations
|
2005-04-05 10:41:29 -03:00 |
|
Roberto Ierusalimschy
|
0316308c0d
|
removed dirt optimizations that gave small gains
|
2005-04-04 15:12:51 -03:00 |
|
Roberto Ierusalimschy
|
3d19aee78f
|
`luac' may generate code without upvalue names
|
2004-12-20 13:50:00 -02:00 |
|
Roberto Ierusalimschy
|
c78940f21a
|
static names do not need `luaX_' prefix
|
2004-12-03 18:50:25 -02:00 |
|
Roberto Ierusalimschy
|
5cb6037d49
|
cannot jump to a setlist count
|
2004-10-07 14:27:00 -03:00 |
|
Roberto Ierusalimschy
|
f7e9465a0c
|
new format for SETLIST opcode
|
2004-10-04 16:04:34 -03:00 |
|
Roberto Ierusalimschy
|
2aba14b623
|
details
|
2004-09-01 10:47:31 -03:00 |
|
Roberto Ierusalimschy
|
02a2c01ccd
|
new way to code RK values
|
2004-06-29 15:49:02 -03:00 |
|
Roberto Ierusalimschy
|
e8d4fe7236
|
new macro lua_threadyield' + lock stuff in luaconf.h' + details
|
2004-06-02 16:07:55 -03:00 |
|
Roberto Ierusalimschy
|
616438fe9a
|
new way to use vararg' parameters (with ...')
|
2004-05-31 15:51:50 -03:00 |
|
Roberto Ierusalimschy
|
b4cd38ba6c
|
new scheme for configuration through `luaconf.h'
|
2004-04-30 17:13:38 -03:00 |
|
Roberto Ierusalimschy
|
ef8c0d7d90
|
better message for errors with upvalues
|
2004-03-23 10:10:16 -03:00 |
|
Roberto Ierusalimschy
|
898e8a6794
|
added include to stdarg.h (as it uses vararg facilities)
|
2004-02-20 13:01:05 -03:00 |
|
Roberto Ierusalimschy
|
47fc57a252
|
TObject' renamed to TValue' + other name changes and better assertions
for incremental garbage collection
|
2003-12-10 10:13:36 -02:00 |
|
Roberto Ierusalimschy
|
07201066bd
|
core does not look for function name in globals (too particular)
|
2003-10-20 16:42:28 -02:00 |
|
Roberto Ierusalimschy
|
c7cf92e6f3
|
avoid unecessary includes of `stdlib'
|
2003-10-02 16:21:09 -03:00 |
|
Roberto Ierusalimschy
|
fa26d294ae
|
new way to control `pc' of running functions
|
2003-07-16 17:49:02 -03:00 |
|
Roberto Ierusalimschy
|
5a761e3a15
|
opcode number may be invalid
|
2003-07-10 08:59:06 -03:00 |
|
Roberto Ierusalimschy
|
c116dcb92b
|
better information about instruction behavior (use of arguments)
|
2003-05-14 09:09:12 -03:00 |
|
Roberto Ierusalimschy
|
6d268b0b00
|
new semantics for "for" local variables
|
2003-05-13 17:15:59 -03:00 |
|
Roberto Ierusalimschy
|
17149b7d43
|
avoid warnings (Instruction' may not fit into an int')
|
2003-04-28 10:31:06 -03:00 |
|
Roberto Ierusalimschy
|
abc304f9da
|
avoid name colision (for alllua.c)
|
2003-03-19 18:24:04 -03:00 |
|
Roberto Ierusalimschy
|
ab9e062928
|
name changes to avoid name collision between macros and variables
|
2003-03-18 09:50:04 -03:00 |
|
Roberto Ierusalimschy
|
2e66248f8a
|
unused argument
|
2003-03-18 09:24:38 -03:00 |
|
Roberto Ierusalimschy
|
59ce42dbd5
|
detail
|
2003-02-27 09:32:30 -03:00 |
|
Roberto Ierusalimschy
|
92f6e0c1bf
|
no-nonsense debug information about tail calls
|
2003-02-27 08:52:30 -03:00 |
|
Roberto Ierusalimschy
|
c4f9c887fc
|
expressions too complex for an ARM compiler...
|
2003-02-19 07:28:58 -03:00 |
|
Roberto Ierusalimschy
|
7a40cdbda0
|
different variables for number of upvalues and size of upvalue array
(makes code clearer)
|
2003-02-11 08:46:24 -02:00 |
|
Roberto Ierusalimschy
|
73517e86b0
|
OP_TFORLOOP uses extra stack space
|
2002-12-11 10:34:22 -02:00 |
|
Roberto Ierusalimschy
|
9bd3fc1039
|
TFORLOOP makes a call that affects all values above it on the stack
|
2002-12-06 15:15:35 -02:00 |
|
Roberto Ierusalimschy
|
27c6b4d422
|
each .c file defines its own name
|
2002-12-04 15:38:31 -02:00 |
|
Roberto Ierusalimschy
|
c194a46bc5
|
detail
|
2002-11-26 06:59:48 -02:00 |
|
Roberto Ierusalimschy
|
5f698f8b6f
|
simpler interface to hooks + use of `int' to count hooks
|
2002-11-25 15:47:13 -02:00 |
|
Roberto Ierusalimschy
|
ddc144e4d2
|
keep L->ci->base in L->base for faster access
|
2002-11-21 13:16:04 -02:00 |
|
Roberto Ierusalimschy
|
43013b39cc
|
new representation for hooks (to allow asynchronous calls to sethook)
|
2002-11-18 09:01:55 -02:00 |
|
Roberto Ierusalimschy
|
dff9be4224
|
new macros to distinguish different types of object moves (for future GC
evolution).
|
2002-11-07 13:37:10 -02:00 |
|
Roberto Ierusalimschy
|
c196348717
|
in case of memory allocation errors, sizecode and sizelineinfo can
be different
|
2002-10-16 17:40:58 -03:00 |
|
Roberto Ierusalimschy
|
1bdde38bd2
|
no more newlines at the end of error messages
|
2002-09-05 16:45:42 -03:00 |
|
Roberto Ierusalimschy
|
6c283b2f4f
|
new simetric format for ABC instructions, to avoid exchanging operands
for `commutative' operators
|
2002-08-20 17:03:05 -03:00 |
|
Roberto Ierusalimschy
|
8e4ac679ff
|
use a linear count for count hook
|
2002-08-12 14:23:12 -03:00 |
|
Roberto Ierusalimschy
|
9998082839
|
external messages add their own extra information
|
2002-08-08 17:08:41 -03:00 |
|
Roberto Ierusalimschy
|
5016f43aa4
|
(much) cleaner way to control function states
|
2002-08-07 16:22:39 -03:00 |
|
Roberto Ierusalimschy
|
c1c100a0c0
|
warnings in other compilers
|
2002-08-07 11:35:55 -03:00 |
|
Roberto Ierusalimschy
|
2e38c6ae5a
|
luadebug.h' content now is included in lua.h'
|
2002-08-06 15:01:50 -03:00 |
|
Roberto Ierusalimschy
|
a2fa48a570
|
new (old?) error handling scheme
|
2002-08-06 12:32:22 -03:00 |
|
Roberto Ierusalimschy
|
0417a4bb0b
|
new implementation for tailcalls and error handling
|
2002-08-05 11:51:21 -03:00 |
|
Roberto Ierusalimschy
|
e5146fb01f
|
CallInfo has different fields for C functions and Lua functions
|
2002-07-16 11:26:56 -03:00 |
|
Roberto Ierusalimschy
|
39b2d58c39
|
new interface for debug hooks
|
2002-07-08 15:21:33 -03:00 |
|
Roberto Ierusalimschy
|
922f36a05b
|
details
|
2002-06-24 12:07:21 -03:00 |
|
Roberto Ierusalimschy
|
e572dffa15
|
small bug building error messages
|
2002-06-20 17:39:44 -03:00 |
|
Roberto Ierusalimschy
|
6ee2dbdfe9
|
traceback stops at first protected call
|
2002-06-18 14:10:43 -03:00 |
|
Roberto Ierusalimschy
|
1dbe708aa8
|
new protocol for error handling
|
2002-06-18 12:19:27 -03:00 |
|
Roberto Ierusalimschy
|
864c96f36c
|
new fallback for equality `__eq'
|
2002-06-13 10:39:55 -03:00 |
|
Roberto Ierusalimschy
|
000d081fd0
|
warnings from other compilers
|
2002-06-06 15:17:33 -03:00 |
|
Roberto Ierusalimschy
|
955def0348
|
new names for string formating functions
|
2002-05-16 15:39:46 -03:00 |
|
Roberto Ierusalimschy
|
b7a0503c1d
|
new format for error messages
|
2002-05-15 15:57:44 -03:00 |
|
Roberto Ierusalimschy
|
1c328a191a
|
no more `global' declarations
|
2002-05-14 14:52:22 -03:00 |
|
Roberto Ierusalimschy
|
af19d55635
|
generic for also coded to make test at the end of the loop
|
2002-05-13 10:09:00 -03:00 |
|
Roberto Ierusalimschy
|
78b40bf57d
|
`skip' instructions must be followed by a jump
|
2002-05-09 11:14:34 -03:00 |
|
Roberto Ierusalimschy
|
dea6b6da94
|
new function lua_vpushstr' to replace uses of sprintf'
|
2002-05-07 14:36:56 -03:00 |
|
Roberto Ierusalimschy
|
9a0f0dcc77
|
precompiler may create functions without `lineinfo'
|
2002-05-02 10:06:20 -03:00 |
|
Roberto Ierusalimschy
|
9b38a696d5
|
avoid names that differ only in capitalization
|
2002-04-24 17:07:46 -03:00 |
|
Roberto Ierusalimschy
|
f388ee4a82
|
new way to handle errors
|
2002-04-22 11:40:23 -03:00 |
|
Roberto Ierusalimschy
|
6c7334a9ac
|
line trace uses savedpc' to save last pc' seen
|
2002-04-10 09:11:07 -03:00 |
|
Roberto Ierusalimschy
|
7b65328c8e
|
new semantics for `generic for' (with state)
|
2002-04-09 16:47:44 -03:00 |
|