aboutsummaryrefslogtreecommitdiff
path: root/lvm.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* eplicit 1-bit opcode operand 'k'Roberto Ierusalimschy2017-10-041-11/+11
|
* new opcodes with immediate integer operand for all arithmetic operationsRoberto Ierusalimschy2017-10-041-2/+89
|
* avoid the use of bit 'Bk' ('B' will lose this bit soon)Roberto Ierusalimschy2017-10-011-4/+4
|
* no more 'getBMode'-'getCMode' (imprecise + we will need more spaceRoberto Ierusalimschy2017-09-281-11/+8
| | | | for op mode) + better control of op modes
* new function 'luaT_trybiniTM'Roberto Ierusalimschy2017-09-271-10/+3
| | | | to handle tag methods for instructions with immediate integer arguments
* binary operators use R instead of RKRoberto Ierusalimschy2017-09-261-33/+31
| | | | | faster + nobody uses RK(B), so B can be smaller (freeing one bit for more opcodes, soon)
* new opcode OP_LOADF (load immediate float)Roberto Ierusalimschy2017-09-191-1/+6
|
* jumps do not close upvalues (to be faster and simpler);Roberto Ierusalimschy2017-09-131-5/+6
| | | | | | explicit instruction to close upvalues; command 'break' not handled like a 'goto' (to optimize removal of uneeded 'close' instructions)
* jumps in 'for' loops don't need to be signedRoberto Ierusalimschy2017-08-141-5/+5
|
* coercion string->number in arithmetic operations moved to stringRoberto Ierusalimschy2017-07-071-11/+10
| | | | library
* 'OP_VARARG' has the vararg parameter as an operandRoberto Ierusalimschy2017-06-291-2/+2
|
* new type 'StackValue' for stack elementsRoberto Ierusalimschy2017-06-291-102/+107
| | | | (we may want to put extra info there in the future)
* detailRoberto Ierusalimschy2017-06-091-2/+2
| | | | (removed empty spaces at the end of lines)
* macro 'luaV_fastget' may need protection ({}) to be used insideRoberto Ierusalimschy2017-06-011-5/+9
| | | | 'if's
* details (using proper version of 'setobj')Roberto Ierusalimschy2017-05-231-3/+3
|
* table field names for dedicated opcodes can be restricted toRoberto Ierusalimschy2017-05-181-5/+5
| | | | small strings for slightly faster access
* details in OP_CALL + commentsRoberto Ierusalimschy2017-05-181-9/+12
|
* no more field 'base' in CallInfo (base is always equal to 'func + 1',Roberto Ierusalimschy2017-05-131-12/+11
| | | | with old/new vararg implementation)
* back to old-style vararg system (with vararg table collecting extraRoberto Ierusalimschy2017-05-131-15/+3
| | | | arguments)
* revamp of fast track for table access (table set uses the sameRoberto Ierusalimschy2017-05-111-51/+36
| | | | macros as table get + new macro for integer keys)
* more integer fast tracks (for OP_LT, OP_LE, OP_SETTABLE, and OP_GETTABLE)Roberto Ierusalimschy2017-05-101-17/+51
|
* details (direct access to 'Ck' bit in instructions)Roberto Ierusalimschy2017-05-081-3/+3
|
* 'luaV_execute' keeps local copy of program counter and hook mask,Roberto Ierusalimschy2017-05-051-29/+62
| | | | to avoid excessive access to globals.
* barrier for prototype's cache (with new gray list 'protogray' to keepRoberto Ierusalimschy2017-05-041-7/+5
| | | | prototypes to have their caches visited again) + constant 'MAXMISS'
* added 'cachemiss' field to prototype to avoid wasting time checkingRoberto Ierusalimschy2017-04-301-3/+9
| | | | hits that fail too often
* new opcodes for table access with constant keys (strings and integers)Roberto Ierusalimschy2017-04-281-13/+63
|
* new opcode OP_ADDI (for immediate integer operand) (Experimental)Roberto Ierusalimschy2017-04-261-3/+24
|
* opcodes 'OP_GETTABUP'/'OP_SETTABUP' operate only with string keys,Roberto Ierusalimschy2017-04-241-7/+15
| | | | so they can use fast-track table access
* new opcode LOADI (for loading immediate integers)Roberto Ierusalimschy2017-04-201-1/+6
|
* Upvalues collected like everything else (with mark-sweep) insteadRoberto Ierusalimschy2017-04-111-3/+2
| | | | of reference count (simpler and better for generational mode)
* small changes in 'luaC_upvalbarrier'Roberto Ierusalimschy2017-04-061-2/+2
|
* new macro 'vmfetch' to help changing code to computed goto's (macroRoberto Ierusalimschy2016-02-051-8/+13
| | | | abstracts the code to run before each instruction)
* 'luaV_fastget' only treats the real fast case (table with a non-nilRoberto Ierusalimschy2016-01-051-24/+37
| | | | value at given key, so that it does not need to check metamethods)
* bug: Metatable may access its own dealocated field whenRoberto Ierusalimschy2016-01-041-21/+22
| | | | it has a self reference in __newindex + some refactoring
* details (comments)Roberto Ierusalimschy2015-11-231-2/+2
|
* details (typos in comments)Roberto Ierusalimschy2015-11-191-2/+2
|
* detailRoberto Ierusalimschy2015-11-171-2/+2
|
* trying to optimize a little 'luaD_poscall'Roberto Ierusalimschy2015-11-131-2/+2
|
* macro with empty argument can be seen as macro with no argument; betterRoberto Ierusalimschy2015-11-121-3/+3
| | | | to avoid that
* in 'luaD_call', use two functions instead of one with fixed booleanRoberto Ierusalimschy2015-11-021-2/+2
| | | | argument
* in 'luaD_precall', in vararg functions, complete missing parametersRoberto Ierusalimschy2015-11-021-10/+8
| | | | | only after moving them to final place (avoids checking the stack again)
* flag CIST_REENTRY changed to CIST_FRESH (its negation); fresh invocationsRoberto Ierusalimschy2015-11-021-3/+3
| | | | | seem to be less frequent than reentries. (So, avoid setting flag on the frequent case.)
* OP_SELF can use 'luaV_fastget' specialized for strings, as itRoberto Ierusalimschy2015-10-281-3/+8
| | | | is applied only to string keys
* hook test in 'luaV_execute' reduced to minimum (rest done inRoberto Ierusalimschy2015-10-221-8/+8
| | | | | | 'luaG_traceexec'; no difference in performance for the non-hook case, but keeps 'luaV_execute' a little simpler) + 'base' updates replaced by 'Protect' (which serves this rule)
* cleaner definition for 'luaC_condGC', using 'pre'/'pos' parametersRoberto Ierusalimschy2015-10-201-5/+4
|
* 'Protect' in table operations is not needed in the fast trackRoberto Ierusalimschy2015-10-201-20/+37
| | | | + removal of a few dead macros
* macros 'getaddrstr' and 'getstr' unified (they do the same thing)Roberto Ierusalimschy2015-09-171-2/+2
|
* 'setobj2t' incorporated into 'luaV_fastset' + 'invalidateTMcache'Roberto Ierusalimschy2015-09-091-6/+3
| | | | | is not needed in the fast track (as it does not create new entries)
* long strings are created directly in final position when possibleRoberto Ierusalimschy2015-09-081-15/+26
| | | | | (instead of using an auxiliar buffer to first create the string and then allocate the final string and copy result there)
* 'invalidateTMcache' not needed in all 'settable' usesRoberto Ierusalimschy2015-08-031-1/+2
|