summaryrefslogtreecommitdiff
path: root/lcode.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* details (typos in comments)Roberto Ierusalimschy2015-11-191-2/+2
|
* use macro 'hasjumps' to test whether expression has jumps...Roberto Ierusalimschy2015-10-261-2/+2
|
* error message ("too complex" -> "too many registers") + MAXREGSRoberto Ierusalimschy2015-04-291-4/+5
| | | | changed to 255 (no reason not to use maximum allowed)
* details (avoid 'lint' warnings)Roberto Ierusalimschy2015-03-281-5/+5
|
* all "divisions" (div,idiv,mod) by zero are not folded, to avoidRoberto Ierusalimschy2014-12-291-24/+10
| | | | | | | problems during compilation + does not fold zero results, as they can collapse with -0.0 and the ANSI test to distinguish both needs a division by zero (which we are trying to avoid) + removed macro 'luai_numinvalidop' (as its main use case were divisions by zero)
* new macro 'nvalue' (to convert an object to a float when we knowRoberto Ierusalimschy2014-12-191-6/+2
| | | | object is a number)
* bug ('#3' causes seg. fault in 5.3-beta) + comments + 'codearith' ->Roberto Ierusalimschy2014-11-241-13/+24
| | | | | 'codeexpval' (confusion about what operations function accept was one of the reasons for the bug)
* 'x//y' extended to floatsRoberto Ierusalimschy2014-11-211-4/+2
|
* added include for 'lprefix.h', for stuff that must be added beforeRoberto Ierusalimschy2014-11-021-4/+6
| | | | any other header file
* comments (a few extra quotes around identifiers)Roberto Ierusalimschy2014-10-301-2/+2
|
* commentRoberto Ierusalimschy2014-10-281-2/+2
|
* 'MAXSTACK' -> 'MAXREGS' and moved to 'lcode.c' (there is no reasonRoberto Ierusalimschy2014-10-271-2/+6
| | | | to change that constant...)
* `name' in comments changed to 'name'Roberto Ierusalimschy2014-10-251-8/+8
|
* commentsRoberto Ierusalimschy2014-05-081-5/+6
|
* 'setnvalue' -> 'setfltvalue' (for consitency with 'fltvalue')Roberto Ierusalimschy2014-04-291-3/+3
|
* n^-m gives float result (instead of error)Roberto Ierusalimschy2014-04-271-3/+1
|
* LUAI_FUNC is being used only in header filesRoberto Ierusalimschy2014-04-021-2/+2
|
* some details to avoid warningsRoberto Ierusalimschy2014-04-011-2/+2
|
* details (typos in comments)Roberto Ierusalimschy2014-03-211-2/+2
|
* small bug (from revision 2.80): LUA_OP* constants are not fromRoberto Ierusalimschy2014-03-091-2/+2
| | | | enumeration 'Opcode' (they are integers)
* new macro 'cast_void'Roberto Ierusalimschy2014-03-071-3/+4
|
* back with 'L' for macros 'luai_num*', but now with a new macroRoberto Ierusalimschy2014-03-061-1/+5
| | | | 'luai_numinvalidop' to protect constant folding
* 'constfolding' passes a proper Lua state to 'luaO_arith'Roberto Ierusalimschy2014-03-061-4/+4
|
* detail ('codearith' uses 'LUA_OP*' constants instead of 'OP_*')Roberto Ierusalimschy2014-03-061-10/+15
|
* C++ needs casts for arithmetic with enumsRoberto Ierusalimschy2014-02-061-3/+3
|
* no more 'L' in macros "luai_num*" (several places that use those macrosRoberto Ierusalimschy2014-01-271-3/+3
| | | | cannot throw errors anyway...)
* first implementation of '<<', '>>', and '~' (bitwise not)Roberto Ierusalimschy2013-12-301-7/+9
|
* small change in handling of unary operationsRoberto Ierusalimschy2013-12-181-14/+13
|
* first implementation of bitwise operators '&' (band), '|' (bor),Roberto Ierusalimschy2013-12-181-13/+24
| | | | and '~' (bxor)
* new order for binary operations (grouping them by type of result)Roberto Ierusalimschy2013-12-161-1/+2
|
* integer exponentiation with negative exponent is invalidRoberto Ierusalimschy2013-12-161-4/+6
|
* bug (GC can collect long identifier during parser) + change (usingRoberto Ierusalimschy2013-08-301-8/+12
| | | | a single constant table for all functions in a chunk)
* avoid using raw representation of numbers for hashing, as number mayRoberto Ierusalimschy2013-06-251-15/+25
| | | | | not use all its space (e.g., long double can have sizeof=12 but use only 10 bytes)
* In the table that hashes constants, use a light userdata as keysRoberto Ierusalimschy2013-06-201-9/+9
| | | | | to integer values to avoid collisions with floats with the same numerical value
* correct way to avoid compile-time errors in integer divisionsRoberto Ierusalimschy2013-05-061-4/+7
|
* constant folding and API arithmetic with integersRoberto Ierusalimschy2013-05-021-16/+31
|
* 'luaO_arith' -> 'luaO_numarith'Roberto Ierusalimschy2013-04-291-2/+2
|
* new operation '//' (integer division)Roberto Ierusalimschy2013-04-261-4/+5
|
* default increment for 'for' loop is an integer (1, not 1.0)Roberto Ierusalimschy2013-04-251-3/+3
|
* first implementation of literal integers (no constant folding yet)Roberto Ierusalimschy2013-04-161-9/+29
|
* (no commit message)Roberto Ierusalimschy2013-04-151-5/+4
|
* remove of unecessary luaD_checkstack. (In some cases, C shouldRoberto Ierusalimschy2012-08-161-5/+4
| | | | | ensure stack space; in others, Lua can use the extra slots for temporary values.)
* details (remove of some extra spaces)Roberto Ierusalimschy2012-08-141-2/+2
|
* 'luaK_goiffalse' exportedRoberto Ierusalimschy2011-08-301-2/+2
|
* comments about use of 'luaH_set'Roberto Ierusalimschy2011-08-151-1/+3
|
* no more field 'L' in 'FuncState'Roberto Ierusalimschy2011-07-271-7/+7
|
* detail (cleaned whitespaces at end of lines)Roberto Ierusalimschy2011-07-151-3/+3
|
* more uniform names for 'equalobj'-related functionsRoberto Ierusalimschy2011-05-311-2/+2
|
* no need for two different implementations for equality (one raw andRoberto Ierusalimschy2011-05-311-2/+3
| | | | one with metamethods)
* bug in OP_SELF when method name goes to a registerRoberto Ierusalimschy2011-04-281-7/+7
|