summaryrefslogtreecommitdiff
path: root/lobject.h
Commit message (Collapse)AuthorAgeFilesLines
...
* baby steps to remove 'CallInfo': keeping 'L->func' correctRoberto Ierusalimschy2017-10-311-1/+5
|
* new type 'StackValue' for stack elementsRoberto Ierusalimschy2017-06-291-11/+22
| | | | (we may want to put extra info there in the future)
* 'lineinfo' in prototypes saved as differences instead of absoluteRoberto Ierusalimschy2017-06-271-4/+21
| | | | | | 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.)
* no more 'DEADKEY'. Table traversals do not need to consider dead keys;Roberto Ierusalimschy2017-06-121-10/+12
| | | | | | if the key is dead, it cannot be given to 'next'. Instead, we now use a 'table' tag without the collectable bit, which makes it a unique tag good enough to reserve space.
* in hash nodes, keys are stored in separate pieces to avoid wastingRoberto Ierusalimschy2017-06-091-22/+76
| | | | space with alignments
* when assigning to a 'TValue', better assign only exact fields,Roberto Ierusalimschy2017-06-011-6/+6
| | | | to allow us to put stuff after the 'TValuefields' if needed
* added 'cachemiss' field to prototype to avoid wasting time checkingRoberto Ierusalimschy2017-04-301-1/+2
| | | | hits that fail too often
* type 'L_Umaxalign' replaced by macro 'LUAI_MAXALIGN', which is also addedRoberto Ierusalimschy2017-04-241-3/+3
| | | | to the auxlib buffer
* Upvalues collected like everything else (with mark-sweep) insteadRoberto Ierusalimschy2017-04-111-5/+17
| | | | of reference count (simpler and better for generational mode)
* do not eliminate varargs from functions that do not use varargsRoberto Ierusalimschy2016-08-011-2/+2
| | | | (confuses the debug lib and gains very little in performance)
* allow 'set' macros to be used when 'L' is not available (as it wasRoberto Ierusalimschy2015-11-031-2/+2
| | | | needed only for assertions)
* function prepares vararg only if it really uses them (chunksRoberto Ierusalimschy2015-10-281-2/+2
| | | | are always declared vararg but seldom uses them)
* macros 'getaddrstr' and 'getstr' unified (they do the same thing)Roberto Ierusalimschy2015-09-171-3/+3
|
* detail in macro 'checkliveness' + macro 'setobj2t' defined as anRoberto Ierusalimschy2015-09-081-15/+16
| | | | expression (to be used in macro 'luaV_fastset')
* small janitor workRoberto Ierusalimschy2015-09-081-28/+23
|
* using macros ('rttype' and 'settt_') to access "private" field 'tt_'Roberto Ierusalimschy2015-06-091-3/+3
|
* detail (removed unused macro VARBITS)Roberto Ierusalimschy2015-04-021-3/+1
|
* commentsRoberto Ierusalimschy2015-03-141-5/+5
|
* new macros 'chgfltvalue'/'chgivalue' (numerical for loop doesRoberto Ierusalimschy2015-03-021-1/+7
| | | | not need to set the type of its internal variable at each iteration)
* size of short strings stored in a single byte, to reduce the sizeRoberto Ierusalimschy2015-01-161-3/+12
| | | | of struct 'TString'
* 'setkey' -> 'setnodekey' (to avoid conflicts with POSIX)v5.3.0v5-3-0Roberto Ierusalimschy2015-01-051-2/+2
|
* new macro 'nvalue' (to convert an object to a float when we knowRoberto Ierusalimschy2014-12-191-1/+3
| | | | object is a number)
* `name' in comments changed to 'name'Roberto Ierusalimschy2014-10-251-7/+7
|
* better to use 'long' to represent UTF-8 code pointsRoberto Ierusalimschy2014-10-011-2/+2
|
* size for array part of a table ('sizearray') changed from 'int' toRoberto Ierusalimschy2014-09-041-2/+2
| | | | 'unsigned int', which allows twice as many elements in the array part
* new macro 'cvt2str' to better control whether numbers are convertibleRoberto Ierusalimschy2014-07-301-1/+2
| | | | to strings
* simpler definition for 'setobj' (trust the compiler for the assignment)Roberto Ierusalimschy2014-07-291-3/+9
|
* type 'Udata' refers directly to structure inside the union (unionRoberto Ierusalimschy2014-07-181-16/+29
| | | | used only for aligning purposes now)
* type 'TString' refers directly to the structure inside the unionRoberto Ierusalimschy2014-07-181-16/+27
| | | | (union used only for size purposes)
* added check for conversion 'obj2gco' (and corrections for smallRoberto Ierusalimschy2014-07-181-3/+3
| | | | problems detected by this check)
* no need for field 'gch' anymoreRoberto Ierusalimschy2014-07-171-6/+4
|
* change in GCObject: instead of being a union, it is now a structureRoberto Ierusalimschy2014-07-171-7/+9
| | | | | | | | with the common header of all collectable objects; union is used only for conversions. (Goal is to be able to check that the cast 'obj2gco' can have a check to ensure that object being converted is really a collectable object.). This is the first step in the change.
* use proper macros to convert 'GCObject' to other objects + betterRoberto Ierusalimschy2014-06-191-24/+23
| | | | type cheking in 'set*value' macros
* detail (to avoid warnings of unused variable)Roberto Ierusalimschy2014-05-291-2/+2
|
* small changes in field order in some structs to reduce paddingRoberto Ierusalimschy2014-05-151-12/+12
|
* removed macro 'luai_checknum' (as NaN trick is not doable now)Roberto Ierusalimschy2014-05-151-5/+1
|
* better alignments (for 64-bit arquitectures) for structures 'Table' andRoberto Ierusalimschy2014-05-071-4/+4
| | | | 'TString'
* 'lua_strtonum' (and 'luaO_str2num') now return string size, instead ofRoberto Ierusalimschy2014-05-011-2/+2
| | | | receiving it
* 'luaO_str2d' + 'luaO_str2int' replaced by 'luaO_str2num' (which convertsRoberto Ierusalimschy2014-04-301-3/+2
| | | | to float or integer according to the string syntax)
* 'setnvalue' -> 'setfltvalue' (for consitency with 'fltvalue')Roberto Ierusalimschy2014-04-291-2/+2
|
* userdata can have any Lua value as uservalueRoberto Ierusalimschy2014-02-191-2/+14
|
* UTF-8 encoding exported as format '%U' in 'lua_pushfstring'Roberto Ierusalimschy2014-02-061-1/+4
|
* detail ('ttisuserdata' renamed to 'ttisfulluserdata')Roberto Ierusalimschy2013-12-041-3/+3
|
* back to open hashing for the string table (but with a differentRoberto Ierusalimschy2013-09-051-2/+3
| | | | | 'hnext' field, to strings are still collected like all other objects)
* upvalues collected by reference countRoberto Ierusalimschy2013-08-271-9/+4
|
* 'next' field for tables changed from pointer to integer (for betterRoberto Ierusalimschy2013-08-181-2/+2
| | | | alignment on 64-bit machines)
* double-linked list of all upvalues elliminated and changed to aRoberto Ierusalimschy2013-08-071-8/+2
| | | | traversal of all non-marked threads
* 'luaO_str2int' more generic: accepts white spaces around the numeralRoberto Ierusalimschy2013-05-141-2/+2
| | | | and handles signal
* macro 'nvalue' removed (direct conversion from integer to double,Roberto Ierusalimschy2013-05-061-4/+1
| | | | without an intermediate variable, can cause "excessive precision"
* constant folding and API arithmetic with integersRoberto Ierusalimschy2013-05-021-2/+3
|