Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Clearer handling of gray lists when entering generational mode | Roberto Ierusalimschy | 2020-08-03 | 1 | -0/+1 |
| | | | | | | | | When entering generational mode, all objects are old. So, the only objects that need to be in a gray list are threads, which can be assigned without barriers. Changes in anything else (e.g., weak tables) will trigger barriers that, if needed, will add the object to a gray list. | ||||
* | Function 'printobj' in 'ltests.c' made public | Roberto Ierusalimschy | 2020-07-27 | 1 | -1/+7 |
| | | | | It helps to have this function available for debugging. | ||||
* | Macro LUAI_ASSERT eases turning assertions on | Roberto Ierusalimschy | 2020-07-08 | 1 | -3/+1 |
| | |||||
* | Details | Roberto Ierusalimschy | 2020-04-30 | 1 | -5/+9 |
| | | | | | When in test mode (#include "tests.h"), force Lua to use its own implementation of 'lua_strx2number' and 'lua_number2strx' to test them. | ||||
* | Details | Roberto Ierusalimschy | 2020-02-27 | 1 | -3/+0 |
| | | | | | Several details in code (e.g., moving a variable to the most inner scope that encloses its uses), comments, parameter names, extra tests. | ||||
* | Clearer distinction between types and tags | Roberto Ierusalimschy | 2020-01-31 | 1 | -1/+1 |
| | | | | | LUA_T* represents only types; tags (types + Variants) are represented by LUA_V* constants. | ||||
* | Small changes around C-stack limit | Roberto Ierusalimschy | 2019-06-26 | 1 | -1/+1 |
| | | | | | | | | | - Better documentation in 'testes/cstack.lua' about using 'debug.setCstacklimit' to find a good limit. - Constant LUAI_MAXCSTACK gets added CSTACKERR (extra stack for error handling), so that it is compatible with the argument to 'debug.setCstacklimit'. | ||||
* | New function 'setCstacklimit' | Roberto Ierusalimschy | 2019-06-18 | 1 | -1/+1 |
| | | | | | Added new functions to dynamically set the C-stack limit ('lua_setCstacklimit' in the C-API, 'debug.setCstacklimit' in Lua). | ||||
* | LUAI_MAXCCALLS renamed LUAI_MAXCSTACK | Roberto Ierusalimschy | 2019-03-25 | 1 | -2/+2 |
| | | | | | | | The limit LUAI_MAXCCALLS was renamed LUAI_MAXCSTACK, which better represents its meaning. Moreover, its definition was moved to 'luaconf.h', given its importance now that Lua does not use a "stackless" implementation. | ||||
* | Changes in the control of C-stack overflow | Roberto Ierusalimschy | 2018-12-27 | 1 | -1/+1 |
| | | | | | | | | | | * unification of the 'nny' and 'nCcalls' counters; * external C functions ('lua_CFunction') count more "slots" in the C stack (to allow for their possible use of buffers) * added a new test script specific for C-stack overflows. (Most of those tests were already present, but concentrating them in a single script easies the task of checking whether 'LUAI_MAXCCALLS' is adequate in a system.) | ||||
* | Added opcodes for arithmetic with K operands | Roberto Ierusalimschy | 2018-11-23 | 1 | -1/+0 |
| | | | | | | | | Added opcodes for all seven arithmetic operators with K operands (that is, operands that are numbers in the array of constants of the function). They cover the cases of constant float operands (e.g., 'x + .0.0', 'x^0.5') and large integer operands (e.g., 'x % 10000'). | ||||
* | Deprecated the emulation of '__le' using '__lt' | Roberto Ierusalimschy | 2018-08-24 | 1 | -0/+1 |
| | | | | | | | | | | | As hinted in the manual for Lua 5.3, the emulation of the metamethod for '__le' using '__le' has been deprecated. It is slow, complicates the logic, and it is easy to avoid this emulation by defining a proper '__le' function. Moreover, often this emulation was used wrongly, with a programmer assuming that an order is total when it is not (e.g., NaN in floating-point numbers). | ||||
* | Removed extra information from RCS keyword strings | Roberto Ierusalimschy | 2018-08-23 | 1 | -1/+1 |
| | | | | | Version numbers and dates (mostly wrong) from RCS keyword strings removed from all source files; only the file name are kept. | ||||
* | reorganization of '#if's for sellecting a type for 'Rand64' + | Roberto Ierusalimschy | 2018-05-04 | 1 | -1/+5 |
| | | | | comments | ||||
* | no need to define 'luaP_opnames' in regular builds | Roberto Ierusalimschy | 2018-04-19 | 1 | -1/+5 |
| | |||||
* | use test mode to test the interpreter without jump tables | Roberto Ierusalimschy | 2018-04-11 | 1 | -1/+5 |
| | |||||
* | removed compatibility code with older versions | Roberto Ierusalimschy | 2018-02-27 | 1 | -11/+1 |
| | |||||
* | default now is compiling without compatibility options + smaller | Roberto Ierusalimschy | 2017-12-18 | 1 | -14/+14 |
| | | | | | stack size in debug mode (clang uses still more stack space when debugging). | ||||
* | new test function 'T.allocount' to restrict number of allocations | Roberto Ierusalimschy | 2017-12-07 | 1 | -1/+2 |
| | | | | before a memory-allocation error | ||||
* | no more 'stackless' implementation; 'luaV_execute' calls itself | Roberto Ierusalimschy | 2017-11-23 | 1 | -1/+5 |
| | | | | | recursively to execute function calls. 'unroll' continues all executions suspended by an yield (through a long jump) | ||||
* | includes 'stdio.h' to allow prints when testing | Roberto Ierusalimschy | 2017-11-13 | 1 | -1/+2 |
| | |||||
* | 'lineinfo' in prototypes saved as differences instead of absolute | Roberto Ierusalimschy | 2017-06-27 | 1 | -1/+2 |
| | | | | | | values, so that the array can use bytes instead of ints, reducing its size. (A new array 'abslineinfo' is used when line differences do not fit in a byte.) | ||||
* | redefine MAXINDEXRK (for debugging, to force most values to | Roberto Ierusalimschy | 2016-07-19 | 1 | -2/+5 |
| | | | | go through registers) | ||||
* | code for string cache generalized for "associative sets" (compiler | Roberto Ierusalimschy | 2015-09-22 | 1 | -1/+5 |
| | | | | will optimize away or inline the extra loops) | ||||
* | redefine 'l_sprintf' to test correctness of buffer sizes given | Roberto Ierusalimschy | 2015-06-18 | 1 | -1/+10 |
| | | | | to 'snprintf' | ||||
* | removed macro 'luai_numinvalidop' (main motivation removed, as folding | Roberto Ierusalimschy | 2014-12-26 | 1 | -6/+1 |
| | | | | does not handle any division by zero by default) | ||||
* | detail (in test for 'luai_numinvalidop', use a round float) | Roberto Ierusalimschy | 2014-12-19 | 1 | -2/+2 |
| | |||||
* | redefinition of LUAI_MAXSTACK to make stack-overflow tests run faster | Roberto Ierusalimschy | 2014-12-09 | 1 | -1/+6 |
| | |||||
* | no more 'preloadedlibs' when opening libraries (as it is dead code now) | Roberto Ierusalimschy | 2014-12-09 | 1 | -4/+1 |
| | |||||
* | in test mode, debug library is not predefined (to allow testing | Roberto Ierusalimschy | 2014-12-06 | 1 | -1/+4 |
| | | | | 'preloadedlibs') | ||||
* | some functions from test module must be exported | Roberto Ierusalimschy | 2014-11-29 | 1 | -4/+5 |
| | |||||
* | new test for macro 'luai_numinvalidop' | Roberto Ierusalimschy | 2014-11-24 | 1 | -1/+5 |
| | |||||
* | deprecated "cast macros" ('luaL_checkint', 'luaL_optint', etc.) | Roberto Ierusalimschy | 2014-10-01 | 1 | -2/+2 |
| | |||||
* | 'ipairs' respects metamethods | Roberto Ierusalimschy | 2014-07-24 | 1 | -1/+2 |
| | |||||
* | better support for extra user space associated with a Lua state | Roberto Ierusalimschy | 2014-07-24 | 1 | -5/+6 |
| | |||||
* | detail (extra byte in LUAI_EXTRASPACE to test proper alignment of | Roberto Ierusalimschy | 2014-07-23 | 1 | -2/+3 |
| | | | | a lua_State) | ||||
* | comments + proper undef of compatibility macros + no need to undef | Roberto Ierusalimschy | 2014-07-23 | 1 | -12/+22 |
| | | | | internal macros (this is the first definition) | ||||
* | ensure size for LUAI_USER_ALIGNMENT_T in tests is larger than the | Roberto Ierusalimschy | 2014-07-18 | 1 | -2/+2 |
| | | | | structures it is aligning (in most architectures) | ||||
* | new macro 'luai_userstateclose' (to test it is being called correctly) | Roberto Ierusalimschy | 2013-11-08 | 1 | -1/+3 |
| | |||||
* | 'module'/'luaL_register' and associates are deprecated | Roberto Ierusalimschy | 2010-07-28 | 1 | -2/+3 |
| | |||||
* | ensure that 'luai_userstatethread' is always called (even if | Roberto Ierusalimschy | 2010-04-19 | 1 | -1/+3 |
| | | | | 'stack_init' throws a memory error) | ||||
* | new macro LUA_NUMTAGS | Roberto Ierusalimschy | 2010-04-12 | 1 | -2/+2 |
| | |||||
* | missing 'external' in variable declaration | Roberto Ierusalimschy | 2010-01-11 | 1 | -2/+2 |
| | |||||
* | several configuration options that do not change often moved out of | Roberto Ierusalimschy | 2009-12-17 | 1 | -6/+4 |
| | | | | luaconf.h and into more internal files | ||||
* | allocator function receives the tag of object being allocated in 'osize' | Roberto Ierusalimschy | 2009-12-16 | 1 | -2/+3 |
| | | | | when 'ptr' is NULL. | ||||
* | cleaner way to add extra space in a lua state. | Roberto Ierusalimschy | 2009-12-14 | 1 | -2/+1 |
| | |||||
* | new macros 'LUAI_DDEC'/'LUAI_DDEF' to better control declarations and | Roberto Ierusalimschy | 2009-11-19 | 1 | -3/+3 |
| | | | | definitions of non-static variables | ||||
* | several small improvements based on 'ci' being fixed now (including | Roberto Ierusalimschy | 2009-04-17 | 1 | -2/+1 |
| | | | | erasing savedpc from lua_State) | ||||
* | larger alignment requirement helps to uncover some kinds of bugs | Roberto Ierusalimschy | 2008-08-05 | 1 | -1/+6 |
| | |||||
* | LUA_COMPAT -> LUA_COMPAT_API (more specific) | Roberto Ierusalimschy | 2008-07-18 | 1 | -2/+2 |
| |