Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | some cleaning on signed opcode parameters | Roberto Ierusalimschy | 2017-12-15 | 3 | -27/+50 | |
| | ||||||
* | (1 << 31) with signed integer has undefined behavior in C | Roberto Ierusalimschy | 2017-12-15 | 1 | -2/+2 | |
| | ||||||
* | 'Proto->numparams' does not include vararg parameter | Roberto Ierusalimschy | 2017-12-15 | 4 | -12/+11 | |
| | | | | (one less subtraction when calling functions...) | |||||
* | 'VRELOCABLE' -> 'VRELOC' | Roberto Ierusalimschy | 2017-12-14 | 3 | -22/+22 | |
| | ||||||
* | bug: memory-allocation error when resizing a table can leave it | Roberto Ierusalimschy | 2017-12-13 | 1 | -2/+27 | |
| | | | | in an inconsistent state. | |||||
* | new opcodes BANDK/BORK/BXORK. (They do not use immediate operands | Roberto Ierusalimschy | 2017-12-13 | 7 | -23/+107 | |
| | | | | | because, too often, masks in bitwise operations are integers larger than one byte.) | |||||
* | Code should not change the stack level after the initialization of a | Roberto Ierusalimschy | 2017-12-13 | 1 | -3/+3 | |
| | | | | string buffer. | |||||
* | when shrinking stack, always shrinks the CI list. | Roberto Ierusalimschy | 2017-12-12 | 1 | -5/+2 | |
| | | | | (Stack overflow is not corelated to CI overflow anymore.) | |||||
* | back to reallocation when resizing the string table. | Roberto Ierusalimschy | 2017-12-12 | 1 | -30/+60 | |
| | | | | | (Not a good idea to explicitly allocate new memory when shrinking something.) | |||||
* | allows memory-allocation errors when shrinking blocks | Roberto Ierusalimschy | 2017-12-11 | 1 | -2/+3 | |
| | ||||||
* | more freedom in handling memory-allocation errors (not all allocations | Roberto Ierusalimschy | 2017-12-11 | 1 | -2/+2 | |
| | | | | | automatically raise an error), which allows fixing a bug when resizing a table. | |||||
* | 'luaD_growstack' cannot raise any errors when 'raiseerror' is | Roberto Ierusalimschy | 2017-12-11 | 2 | -17/+30 | |
| | | | | false (+ some comments) | |||||
* | 'luaM_shrinkvector' raises an error if it cannot shrink the block | Roberto Ierusalimschy | 2017-12-11 | 1 | -2/+2 | |
| | | | | | (several parts of Lua use array size in protos as proxies for number of valid elements) | |||||
* | more freedom in handling memory-allocation errors (not all allocations | Roberto Ierusalimschy | 2017-12-08 | 8 | -95/+136 | |
| | | | | | automatically raise an error), which allows fixing a bug when resizing a table. | |||||
* | new C instruction "rawcheckstack" (to test failing in 'lua_checkstack') | Roberto Ierusalimschy | 2017-12-08 | 1 | -3/+16 | |
| | ||||||
* | using explicit tests for allocation overflow whenever possible | Roberto Ierusalimschy | 2017-12-07 | 5 | -46/+80 | |
| | ||||||
* | detail (comment) | Roberto Ierusalimschy | 2017-12-07 | 1 | -1/+2 | |
| | ||||||
* | new test function 'T.allocount' to restrict number of allocations | Roberto Ierusalimschy | 2017-12-07 | 2 | -4/+20 | |
| | | | | before a memory-allocation error | |||||
* | opcodes for order and shift can use several metamethods, | Roberto Ierusalimschy | 2017-12-07 | 1 | -4/+8 | |
| | | | | | so it is better to use a generic description + metamethod names in some error messages shown without '__' prefix | |||||
* | avoid using one function for different tasks (malloc, free, etc.) | Roberto Ierusalimschy | 2017-12-06 | 3 | -47/+108 | |
| | ||||||
* | bug: 'lua_pushcclosure' should not call the garbage collector when | Roberto Ierusalimschy | 2017-12-06 | 1 | -2/+35 | |
| | | | | 'n' is zero. | |||||
* | bug: 'lua_pushcclosure' should not call the GC when 'n' is zero | Roberto Ierusalimschy | 2017-12-06 | 1 | -3/+4 | |
| | ||||||
* | new opcodes OP_SHLI/OP_SHRI | Roberto Ierusalimschy | 2017-12-04 | 4 | -18/+94 | |
| | ||||||
* | 'luaS_resize' can raise memory errors | Roberto Ierusalimschy | 2017-12-01 | 1 | -4/+9 | |
| | ||||||
* | rehashes string table always allocating a new array instead of | Roberto Ierusalimschy | 2017-12-01 | 1 | -17/+11 | |
| | | | | | reallocating old one. (Avoids problems if reallocation to a small size fails.) | |||||
* | detail | Roberto Ierusalimschy | 2017-12-01 | 1 | -3/+3 | |
| | ||||||
* | another value for LUAI_MAXCCALLS (must think more about that) | Roberto Ierusalimschy | 2017-12-01 | 1 | -2/+2 | |
| | ||||||
* | warnings from Visual Studio /W3 | Roberto Ierusalimschy | 2017-11-30 | 3 | -6/+6 | |
| | ||||||
* | small peephole optimizations | Roberto Ierusalimschy | 2017-11-30 | 5 | -48/+63 | |
| | ||||||
* | details (comments) | Roberto Ierusalimschy | 2017-11-30 | 1 | -5/+10 | |
| | ||||||
* | detail (spacing) | Roberto Ierusalimschy | 2017-11-30 | 1 | -3/+3 | |
| | ||||||
* | new opcodes OP_RETURN0/OP_RETURN1 | Roberto Ierusalimschy | 2017-11-29 | 4 | -17/+77 | |
| | ||||||
* | 'luaV_execute' gets call info as extra argument (it is always | Roberto Ierusalimschy | 2017-11-29 | 3 | -11/+11 | |
| | | | | available on call sites) | |||||
* | order opcodes cannot use 'K' operands | Roberto Ierusalimschy | 2017-11-28 | 1 | -2/+2 | |
| | ||||||
* | conditional jumps unified in label "condjump' + new variable 'vra' | Roberto Ierusalimschy | 2017-11-28 | 1 | -128/+106 | |
| | | | | to avoid excessive use of macro 's2v' | |||||
* | using register 'k' for conditions in tests (we only need one bit there) | Roberto Ierusalimschy | 2017-11-28 | 3 | -92/+120 | |
| | ||||||
* | detail (identation of switch) | Roberto Ierusalimschy | 2017-11-28 | 2 | -37/+35 | |
| | ||||||
* | new opcodes 'OP_LTI' and 'OP_LEI' | Roberto Ierusalimschy | 2017-11-27 | 5 | -12/+71 | |
| | ||||||
* | detail (typo in comments) | Roberto Ierusalimschy | 2017-11-23 | 9 | -19/+19 | |
| | ||||||
* | small simplifications around 'luaT_callorderTM' | Roberto Ierusalimschy | 2017-11-23 | 2 | -21/+19 | |
| | ||||||
* | small simplifications in 'luaD_poscall' | Roberto Ierusalimschy | 2017-11-23 | 2 | -20/+20 | |
| | ||||||
* | no more 'stackless' implementation; 'luaV_execute' calls itself | Roberto Ierusalimschy | 2017-11-23 | 9 | -112/+90 | |
| | | | | | recursively to execute function calls. 'unroll' continues all executions suspended by an yield (through a long jump) | |||||
* | more information from 'T.stacklevel' | Roberto Ierusalimschy | 2017-11-23 | 1 | -2/+4 | |
| | ||||||
* | using 'A' for register instead of 'B' in relational opcodes | Roberto Ierusalimschy | 2017-11-22 | 3 | -36/+31 | |
| | | | | ('R(A)' is already created by default for all instructions.) | |||||
* | new opcode 'OP_EQI' for equality with immediate numbers | Roberto Ierusalimschy | 2017-11-22 | 4 | -25/+68 | |
| | ||||||
* | more direct implementation for tail calls. | Roberto Ierusalimschy | 2017-11-21 | 3 | -36/+57 | |
| | ||||||
* | in order comparison opcodes, fast track for floats too | Roberto Ierusalimschy | 2017-11-20 | 1 | -18/+42 | |
| | ||||||
* | 'io.read' accepts multiple formats in a single string argument | Roberto Ierusalimschy | 2017-11-16 | 1 | -27/+31 | |
| | ||||||
* | detail ('signal' -> 'sign' in comments) | Roberto Ierusalimschy | 2017-11-16 | 5 | -13/+13 | |
| | ||||||
* | new instruction 'OP_EQK' (for equality with constants) | Roberto Ierusalimschy | 2017-11-16 | 4 | -14/+61 | |
| |