aboutsummaryrefslogtreecommitdiff
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* DUALNUM: Improve/fix edge cases of unary minus.HEADv2.1Mike Pall2 days8-7/+33
| | | | Thanks to Sergey Kaplun. #1422 #1418
* Merge branch 'master' into v2.1Mike Pall2 days2-4/+4
|\
| * Fix minilua undefined behavior in bit.tohex.v2.0masterMike Pall2 days2-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | Note: this is not a vulnerability! minilua is only used during the LuaJIT build process. It only runs controlled and static Lua code (DynASM), which is entirely contained within this repo and does not trigger the undefined behavior. This change is solely for the benefit of others, who might possibly use minilua for purposes other than running DynASM. Reported by quart27219. #1424
* | Merge branch 'master' into v2.1Mike Pall2 days174-175/+175
|\|
| * Bump copyright date.Mike Pall2 days147-148/+148
| |
* | Fix string.format for limited precision FP conversions.Mike Pall2025-12-081-3/+40
| | | | | | | | Enforce round-to-even semantics. #1363
* | PPC: Fix soft-float lj_num2u64().Mike Pall2025-12-061-0/+2
| | | | | | | | Reported by Doug Crawford. #1411
* | ARM64: More fixes for ARM BTI.Mike Pall2025-12-061-0/+4
| | | | | | | | Reported by Yuichiro Naito. #1415
* | DUALNUM: Fix narrowing of unary minus.Mike Pall2025-12-061-2/+2
| | | | | | | | Reported by Sergey Kaplun. #1418
* | Merge branch 'master' into v2.1Mike Pall2025-12-061-8/+17
|\|
| * DUALNUM: Add missing type conversion for FORI slots.Mike Pall2025-12-061-8/+17
| | | | | | | | Reported by Sergey Kaplun. #1413
| * x86/x64: Backport fix for math.min()/math.max() argument check.Mike Pall2025-11-161-1/+1
| | | | | | | | Reported by puffy.
* | Remove pointless GCC/MSVC const function attributes.Mike Pall2025-12-011-7/+7
| | | | | | | | | | They are only called from JIT-compiled code and not from C. Reported by Richard Beckmann. #1414
* | Fix MSVC LJ_CONSTF declaration.Mike Pall2025-11-271-6/+1
| | | | | | | | Reading MS docs is hard. #1412
* | Back out MSVC LJ_CONSTF declaration.Mike Pall2025-11-271-0/+5
| | | | | | | | The reason for the error message is still unclear. #1412.
* | Remove compiler flag for FP conversions. Now unnecessary.Mike Pall2025-11-271-3/+0
| | | | | | | | Undo #1355. #1397 #1411
* | Unify Lua number to FFI integer conversions.Mike Pall2025-11-2740-413/+1029
| | | | | | | | Phew. #1411
* | ARM64: Fix disassembly of certain sub-word-size loads/stores.Mike Pall2025-11-271-3/+3
| |
* | ELF/Mach-O: Force default visibility for public API functions.Mike Pall2025-11-162-0/+4
| | | | | | | | Thanks to Dymphna. #1409
* | Merge branch 'master' into v2.1Mike Pall2025-11-141-4/+4
|\|
| * Fix edge cases when generating IR for string.byte/sub/find.Mike Pall2025-11-141-3/+3
| | | | | | | | Contributed by XmiliaH. #1407
* | Merge branch 'master' into v2.1Mike Pall2025-11-101-0/+4
|\|
| * FFI: Avoid dangling cts->L.Mike Pall2025-11-101-0/+4
| | | | | | | | Reported by ZumiKua. #1405
* | Run VM events and finalizers in separate state.Mike Pall2025-11-107-67/+76
| | | | | | | | Reported by Sergey Kaplun. #1403
* | macOS: Change Mach-O object file layout required by XCode 15.0.Mike Pall2025-11-081-12/+18
| | | | | | | | Reported by George Zhao. #1404
* | ARM64: Enable unaligned accesses if indicated by the toolchain.Mike Pall2025-11-083-1/+15
| | | | | | | | If you get a crash in jit_init() then you need to fix your toolchain.
* | Allow mcode allocations outside of the jump range to the support code.Mike Pall2025-11-0618-226/+475
| | | | | | | | Thank you for your patience. #285
* | ARM64: Fix disassembly of >2GB branch targets.Mike Pall2025-11-061-1/+1
| |
* | x64: Fix CET IBT.Mike Pall2025-10-291-0/+3
| | | | | | | | Reported by Yuichiro Naito. #1400
* | ARM64: Fix ARM BTI.Mike Pall2025-10-291-0/+3
| | | | | | | | Reported by Yuichiro Naito. #1400
* | Windows: Fix lua52compat option for msvcbuild.bat.Mike Pall2025-10-281-6/+6
| | | | | | | | Thanks to Alex Orlenko. #1395 #1366
* | ARM64: Add support for ARM BTI.Mike Pall2025-10-286-3/+102
| | | | | | | | | | Note: this is not enabled by default, look for CET in lj_arch.h. Thanks to Yuichiro Naito. #1398
* | x64: Various fixes for CET IBT.Mike Pall2025-10-286-38/+101
| | | | | | | | Also add ELF notes. #1391
* | x64: Add support for CET IBT.Mike Pall2025-10-167-10/+95
| | | | | | | | | | Note: this is not enabled by default, look for CET in lj_arch.h Contributed by Yuichiro Naito. #1391
* | Gracefully handle broken custom allocator.Mike Pall2025-10-161-1/+5
| | | | | | | | Reported by Alex Orlenko. #1393
* | Add GNU/Hurd build support.Mike Pall2025-10-163-1/+7
| | | | | | | | | | Note: this is not an officially supported target. Contributed by Pino Toscano and Samuel Thibault. #1383 #1384
* | Fix io.write() of newly created buffer.Mike Pall2025-10-161-1/+1
| | | | | | | | Reported by vfprintf. #1386
* | Fix reporting of an error during error handling.Mike Pall2025-10-162-0/+11
| | | | | | | | Reported by Sergey Kaplun. #1381
* | Windows: Add lua52compat option to msvcbuild.bat.Mike Pall2025-07-241-5/+10
| | | | | | | | Thanks to Gil Reis. #1366
* | Merge branch 'master' into v2.1Mike Pall2025-07-243-6/+9
|\|
| * x86/x64: Don't use undefined MUL/IMUL zero flag.Mike Pall2025-07-241-1/+2
| | | | | | | | Reported by VrIgHtEr. #1376
| * Avoid out-of-range PC for stack overflow error from snapshot restore.Mike Pall2025-07-241-0/+1
| | | | | | | | Reported by Sergey Kaplun. #1369
| * FFI: Fix dangling CType references (again).Mike Pall2025-07-241-5/+6
| | | | | | | | Reported by Sergey Kaplun. Collateral of #1360
* | Merge branch 'master' into v2.1Mike Pall2025-05-281-1/+2
|\|
| * Fix JIT slot overflow during up-recursion.Mike Pall2025-05-281-1/+2
| | | | | | | | Reported by Sergey Kaplun. #1358
* | Merge branch 'master' into v2.1Mike Pall2025-05-283-15/+10
|\|
| * Avoid out-of-range PC for stack overflow error from snapshot restore.Mike Pall2025-05-283-15/+10
| | | | | | | | Reported by Sergey Kaplun. #1359
* | Merge branch 'master' into v2.1Mike Pall2025-05-282-16/+26
|\|
| * FFI: Fix dangling CType references.Mike Pall2025-05-282-15/+25
| | | | | | | | Reported by Sergey Kaplun. Collateral of #1360
* | Prevent Clang UB 'optimization' which breaks integerness checks.Mike Pall2025-04-101-0/+3
| | | | | | | | Thanks to Kacper Michajłow. #1351 #1355