Commit message (Collapse) | Author | Age | ||
---|---|---|---|---|
... | ||||
* | src/lvm.js: Inline luaV_finishget and luaV_finishset; change recursion into loop | daurnimator | 2017-05-22 | |
| | | | | | Fixes exceeding stack size Brings more in line with C source | |||
* | Use Math.imul when multiplying integers | daurnimator | 2017-05-22 | |
| | ||||
* | lua_numbertointeger should return false on failure | daurnimator | 2017-05-21 | |
| | | | | Found via behaviour of pushnumint in lmathlib | |||
* | Centralise integer mod and div operations to luaV_mod and luaV_div | daurnimator | 2017-05-21 | |
| | ||||
* | src/lvm.js: integer unary minus need to be bitwise or-d | daurnimator | 2017-05-21 | |
| | ||||
* | Use same mod operator behaviour from both lvm.js and lobject.js | daurnimator | 2017-05-21 | |
| | ||||
* | shifts have different semantics to JS, use add luaV_shiftl | daurnimator | 2017-05-21 | |
| | ||||
* | Fixed bad boolean comparison in luaV_finisOp | Benoit Giannangeli | 2017-05-21 | |
| | ||||
* | Fixed bad opcode test in luaV_finishOp | Benoit Giannangeli | 2017-05-21 | |
| | ||||
* | Use >>> instead of >> | Benoit Giannangeli | 2017-05-20 | |
| | ||||
* | Fixed bad tonumber tests for bitwise opcodes | Benoit Giannangeli | 2017-05-20 | |
| | ||||
* | [test-suite] nextvar.js, fixed bad comparison in LTNum | Benoit Giannangeli | 2017-05-19 | |
| | ||||
* | src/lvm.js: Optimization in luaV_equalobj | daurnimator | 2017-05-16 | |
| | ||||
* | src/lvm.js: Fix TODO for tointeger | daurnimator | 2017-05-16 | |
| | | | | Fixes `0.983 == 0` == true | |||
* | Partially revert 4cccf8c6b2c2b1af0afafef52bc87477ba7f817a | daurnimator | 2017-05-14 | |
| | ||||
* | Merge remote-tracking branch 'daurnimator/master' | Benoit Giannangeli | 2017-05-12 | |
|\ | ||||
| * | Rename .pcOff field to l_savedpc | daurnimator | 2017-05-12 | |
| | | ||||
| * | Rename CallInfo l_savedpc field to l_code | daurnimator | 2017-05-12 | |
| | | ||||
| * | Remove unused L.ciOff/L.nci fields | daurnimator | 2017-05-12 | |
| | | ||||
| * | src/{ldo,lvm}.js: Copy style from lua C code | daurnimator | 2017-05-12 | |
| | | ||||
| * | src/ldo.js: Don't bother keeping around a pool of CallInfo objects | daurnimator | 2017-05-12 | |
| | | ||||
* | | luaV_concat: 'total' should not be used inside the loop | Benoit Giannangeli | 2017-05-12 | |
|/ | | | | | If there's a table in the concat sequence, we ended up with a toconcat array with undefined slots. | |||
* | src/lvm.js: Stack reallocations aren't a thing in JS; remove base re-setting | daurnimator | 2017-05-11 | |
| | ||||
* | src/lvm.js: Setting nil should delete from table | daurnimator | 2017-05-11 | |
| | | | | Closes #37 | |||
* | Fixed bad order when trying __lt TM in luaV_lessequal | Benoit Giannangeli | 2017-05-10 | |
| | ||||
* | Don't do recursive call of luaV_tointeger if luaO_str2num returns false | Benoit Giannangeli | 2017-05-10 | |
| | ||||
* | lvm.tonumber should return the integer value | Benoit Giannangeli | 2017-05-09 | |
| | ||||
* | src/lvm.js: In luaV_concat use correct stack indices + clean up | daurnimator | 2017-05-09 | |
| | ||||
* | Rename lopcodes.js require to consistently be lopcodes | daurnimator | 2017-05-09 | |
| | ||||
* | src/lvm.js: Remove i.breakpoint hack | daurnimator | 2017-05-09 | |
| | ||||
* | Introduce a TString class | daurnimator | 2017-05-08 | |
| | ||||
* | src/lvm.js: Use TValue accessors to use strings | daurnimator | 2017-05-08 | |
| | ||||
* | src/lvm.js: Optimise luaV_concat | daurnimator | 2017-05-08 | |
| | | | | Do the TString creation in one big Array.prototype.concat | |||
* | Add accessors to TValue for TString values | daurnimator | 2017-05-08 | |
| | ||||
* | src/lvm.js: Fix incorrect stack index in luaV_concat | daurnimator | 2017-05-08 | |
| | ||||
* | Move string functions to centralised lstring.js | daurnimator | 2017-05-08 | |
| | ||||
* | Renamed findupval to luaF_findupval | Benoit Giannangeli | 2017-05-05 | |
| | ||||
* | Merge remote-tracking branch 'daurnimator/fix-errors' | Benoit Giannangeli | 2017-05-05 | |
|\ | ||||
| * | src/lvm.js: Optimise variable declarations | daurnimator | 2017-05-05 | |
| | | | | | | | | | | Oddly 'const' on OCi helps, but on anything else dramatically increases runtime Otherwise the reduced scope for other variables is a tiny bit faster | |||
| * | src/lvm.js: Remove special case | daurnimator | 2017-05-05 | |
| | | | | | | | | This makes it faster on my computer | |||
* | | [test-suite] calls.js | Benoit Giannangeli | 2017-05-05 | |
|/ | ||||
* | Flatten CallInfo union member | daurnimator | 2017-05-05 | |
| | ||||
* | Simplify UpVal structure | daurnimator | 2017-05-05 | |
| | | | | | | | No longer follows C api as closely (it is the way it is because C has unions) Instead, have a flat object. Also remove the 'setval' method, as it wasn't used from all call-sites and couldn't be extended to them (setval's body only worked with source TValue on a stack) | |||
* | An open upvalue already knows which lua_State it comes from | daurnimator | 2017-05-05 | |
| | ||||
* | Need to copy to the stack if not coming from a stack | daurnimator | 2017-05-05 | |
| | ||||
* | src/lvm.js: Don't localise lobject members | daurnimator | 2017-05-04 | |
| | ||||
* | Refactor table implementation | daurnimator | 2017-05-03 | |
| | ||||
* | LClosure and CClosure shouldn't subclass TValue | daurnimator | 2017-04-28 | |
| | ||||
* | Add table construction function | daurnimator | 2017-04-28 | |
| | ||||
* | Remove unused require()s | daurnimator | 2017-04-26 | |
| |