Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | new opcode 'PREPVARARG' | Roberto Ierusalimschy | 2018-02-07 | 7 | -29/+50 | |
| | | | | (avoids test for vararg function in all function calls) | |||||
* | detail | Roberto Ierusalimschy | 2018-02-07 | 1 | -6/+6 | |
| | | | | (order of 'OT' and 'IT' bits corresponds with macro 'opmode') | |||||
* | call hooks for Lua functions called by 'luaV_execute' | Roberto Ierusalimschy | 2018-02-06 | 4 | -21/+23 | |
| | ||||||
* | GC default mode for the stand-alone interpreter is generational mode | Roberto Ierusalimschy | 2018-02-06 | 1 | -1/+2 | |
| | ||||||
* | small corrections in generational mode | Roberto Ierusalimschy | 2018-02-05 | 1 | -7/+9 | |
| | | | | | (cannot call finalizers in emergency collections + should set everything before calling finalizers) | |||||
* | default for minor collection intervals a little larger | Roberto Ierusalimschy | 2018-02-05 | 1 | -4/+4 | |
| | ||||||
* | 'gcemergency' should be zero before any memory allocation | Roberto Ierusalimschy | 2018-02-05 | 1 | -2/+2 | |
| | ||||||
* | 'collectgarbage' returns old mode when changing mode | Roberto Ierusalimschy | 2018-02-05 | 2 | -6/+14 | |
| | ||||||
* | detail | Roberto Ierusalimschy | 2018-01-29 | 1 | -2/+2 | |
| | | | | (uses a reserved-format name for an internal type in the registry) | |||||
* | warnings in VS (implicit casts from ptrdiff_t to int) | Roberto Ierusalimschy | 2018-01-29 | 3 | -6/+6 | |
| | ||||||
* | janitor work on casts | Roberto Ierusalimschy | 2018-01-28 | 18 | -76/+83 | |
| | ||||||
* | bug in tailcall of vararg functions | Roberto Ierusalimschy | 2018-01-28 | 3 | -24/+26 | |
| | | | | (when adjusting missing parameters) | |||||
* | calling a vararg function needs to check GC | Roberto Ierusalimschy | 2018-01-28 | 2 | -8/+10 | |
| | | | | (because it creates a new table) | |||||
* | detail (comment) | Roberto Ierusalimschy | 2018-01-28 | 1 | -2/+2 | |
| | ||||||
* | OP_CONCAT does not move its result (to simplify its execution) | Roberto Ierusalimschy | 2018-01-27 | 3 | -51/+61 | |
| | ||||||
* | comments | Roberto Ierusalimschy | 2018-01-18 | 1 | -11/+13 | |
| | ||||||
* | 'OP_TAILCALL' calling C functions finishes the call and returns | Roberto Ierusalimschy | 2018-01-14 | 1 | -5/+10 | |
| | | | | (instead of waiting for following 'OP_RETURN') | |||||
* | 'luaD_tryfuncTM' can ensure it does not change the stack | Roberto Ierusalimschy | 2018-01-10 | 3 | -13/+8 | |
| | ||||||
* | error handler in protected calls must be a function | Roberto Ierusalimschy | 2018-01-10 | 2 | -3/+4 | |
| | ||||||
* | avoid jumping into a variable scope (C++ does not allow that) | Roberto Ierusalimschy | 2018-01-09 | 1 | -8/+8 | |
| | ||||||
* | keep more opcode arguments byte-aligned | Roberto Ierusalimschy | 2018-01-09 | 3 | -24/+28 | |
| | ||||||
* | typos in comments | Roberto Ierusalimschy | 2017-12-30 | 3 | -8/+8 | |
| | ||||||
* | new command 'print' (to print literal strings) in mini-language | Roberto Ierusalimschy | 2017-12-29 | 1 | -2/+6 | |
| | ||||||
* | another try with table resize. | Roberto Ierusalimschy | 2017-12-29 | 1 | -41/+55 | |
| | | | | | (Old version was leaving some elements unanchored while allocating new memory) | |||||
* | by-one error when filling missing arguments in a tail call | Roberto Ierusalimschy | 2017-12-29 | 1 | -3/+3 | |
| | ||||||
* | keep control of stack top in Lua functions concentrated in 'luaV_execute' | Roberto Ierusalimschy | 2017-12-28 | 4 | -48/+40 | |
| | ||||||
* | when calling a hook, cannot decrease 'ci->top' (to preserve stack | Roberto Ierusalimschy | 2017-12-28 | 1 | -6/+6 | |
| | | | | size if the stack is reallocated) | |||||
* | comment | Roberto Ierusalimschy | 2017-12-28 | 1 | -3/+2 | |
| | ||||||
* | assert cannot use instruction after the last | Roberto Ierusalimschy | 2017-12-22 | 1 | -2/+2 | |
| | ||||||
* | new macros 'isOT'/'isIT' | Roberto Ierusalimschy | 2017-12-22 | 5 | -94/+104 | |
| | | | | | (plus exchanged parameters of OP_VARARG to make it similar to other 'isOT' instructions) | |||||
* | when running Lua code, there is no need to keep 'L->top' "correct"; | Roberto Ierusalimschy | 2017-12-20 | 5 | -41/+53 | |
| | | | | set it only when needed. | |||||
* | new macro 'isLuacode' (to distinguish regular Lua code from | Roberto Ierusalimschy | 2017-12-19 | 4 | -11/+16 | |
| | | | | hooks, where C code can run inside a Lua function). | |||||
* | no need to save 'pc' in case of allocation errors | Roberto Ierusalimschy | 2017-12-19 | 1 | -3/+1 | |
| | | | | (allocation errors do not call message handlers) | |||||
* | new opcodes 'FORLOOP1'/'FORPREP1' for "basic for" (integer variable | Roberto Ierusalimschy | 2017-12-18 | 4 | -18/+73 | |
| | | | | with increment of 1) | |||||
* | new auxiliary function 'luaK_isKint' + removal of 'luaK_needclose', | Roberto Ierusalimschy | 2017-12-18 | 2 | -18/+12 | |
| | | | | which was not being used anywhere. | |||||
* | 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). | |||||
* | 'rehash' -> 'tablerehash' | Roberto Ierusalimschy | 2017-12-18 | 1 | -6/+6 | |
| | | | | (to avoid name colisions when compiling Lua as a single file) | |||||
* | details (cleaning uses of 'exp1') | Roberto Ierusalimschy | 2017-12-18 | 1 | -8/+5 | |
| | ||||||
* | 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) |