aboutsummaryrefslogtreecommitdiff
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
| * Fix maxslots when recording BC_VARG, part 2.Mike Pall2023-07-091-6/+2
| | | | | | | | Analyzed by Sergey Kaplun. #1024
* | Fix maxslots when recording BC_TSETM.Mike Pall2023-07-081-0/+2
| | | | | | | | Analyzed by Sergey Kaplun. #1025
* | Merge branch 'master' into v2.1Mike Pall2023-07-083-4/+5
|\|
| * Fix maxslots when recording BC_VARG.Mike Pall2023-07-081-2/+1
| | | | | | | | Analyzed by Sergey Kaplun. #1024
| * Fix register mask for stack check in head of side trace.Mike Pall2023-07-081-1/+3
| | | | | | | | Analyzed by Sergey Kaplun. #1016
| * FFI: Fix ffi.metatype() for non-raw types.Mike Pall2023-07-081-1/+1
| | | | | | | | Reported by 999pingGG. #1005
* | ARM64: Fix LDP code generation.Mike Pall2023-07-081-1/+1
| | | | | | | | Thanks to Zhongwei Yao. #1028
* | Fix frame for on-trace out-of-memory error.Mike Pall2023-06-021-0/+4
| | | | | | | | Reported by ruidong007.
* | Merge branch 'master' into v2.1Mike Pall2023-06-022-3/+4
|\|
| * Fix handling of instable types in TNEW/TDUP load forwarding.Mike Pall2023-06-021-1/+2
| | | | | | | | Analyzed by Sergey Kaplun. #994
| * Fix compiler warning.Mike Pall2023-06-021-1/+2
| | | | | | | | Reported by Myriachan.
* | Fix last commit.Mike Pall2023-04-301-0/+2
| | | | | | | | Reported by PluMGMK.
* | Print errors from __gc finalizers instead of rethrowing them.Mike Pall2023-04-164-28/+64
| | | | | | | | | | | | | | | | | | | | | | Finalizers are not supposed to throw errors -- this is undefined behavior. Lua 5.1 - 5.3 and (previously) LuaJIT rethrow the error. This randomly breaks some unrelated code that just happens to do an allocation. Bad. Lua 5.4 catches the error and emits a warning instead. But warnings are not enabled by default, so it fails silently. Even worse. LuaJIT (now) catches the error and emits a VM event. The default event handler function prints "ERROR in finalizer: ...". Set a custom handler function with: jit.attach(handler, "errfin")
* | Merge branch 'master' into v2.1Mike Pall2023-04-162-0/+8
|\|
| * Fix TDUP load forwarding after table rehash.Mike Pall2023-04-161-0/+6
| | | | | | | | Reported by Sergey Kaplun. #980
| * Fix canonicalization of +-0.0 keys for IR_NEWREF.Mike Pall2023-04-161-0/+2
| | | | | | | | Reported by Sergey Kaplun. #981
* | Merge branch 'master' into v2.1Mike Pall2023-02-211-1/+1
|\|
| * Improve error reporting on stack overflow.Mike Pall2023-02-211-1/+1
| | | | | | | | Thanks to Nicolas Lebedenco.
* | Merge branch 'master' into v2.1Mike Pall2023-02-211-5/+11
|\|
| * Allow building sources with mixed LF/CRLF line-endings.Mike Pall2023-02-211-4/+10
| | | | | | | | Reported by mgood7123.
* | Fix compiler warning.Mike Pall2023-01-041-2/+2
| | | | | | | | Reported by Christopher Ng.
* | Don't fail for Clang builds, which pretend to be an ancient GCC.Mike Pall2023-01-041-0/+6
| | | | | | | | Reported by pkubaj.
* | Merge branch 'master' into v2.1Mike Pall2022-12-2215-40/+43
|\|
| * Avoid negation of signed integers in C that may hold INT*_MIN.Mike Pall2022-12-2212-32/+32
| | | | | | | | | | | | Reported by minoki. Recent C compilers 'take advantage' of the undefined behavior. This completely changes the meaning of expressions like (k == -k).
* | Merge branch 'master' into v2.1Mike Pall2022-12-091-2/+2
|\|
| * Correct fix for stack check when recording BC_VARG.Mike Pall2022-12-091-2/+2
| | | | | | | | Reported by Yichun Zhang.
* | Disable FMA by default. Use -Ofma or jit.opt.start("+fma") to enable.Mike Pall2022-12-076-6/+27
| | | | | | | | See the discussion in #918 for the rationale.
* | Merge branch 'master' into v2.1Mike Pall2022-12-072-0/+16
|\|
| * FFI: Fix dangling reference to CType. Improve checks.Mike Pall2022-12-072-0/+16
| | | | | | | | Reported by elmknot.
* | ARM64: Fix code generation for IR_SLOAD with typecheck + conversion.Mike Pall2022-12-011-1/+1
| | | | | | | | Reported by memcorrupt.
* | PS4/PS5: Fix build scripts.Mike Pall2022-11-272-4/+4
| | | | | | | | Thanks to Mathias Westerdahl.
* | Avoid assertion in case of stack overflow from stitched trace.Mike Pall2022-11-271-3/+6
| | | | | | | | Reported by Sergey Bronnikov. Fixed by Sergey Kaplun.
* | NX: Always compile with -fPIC.Mike Pall2022-11-221-0/+1
| | | | | | | | Suggested by Mathias Westerdahl.
* | Merge branch 'master' into v2.1Mike Pall2022-11-091-0/+1
|\|
| * Ensure correct stack top for OOM error message.Mike Pall2022-11-091-0/+1
| | | | | | | | Reported by Sergey Kaplun.
* | ARM64: Fix IR_SLOAD assembly.Mike Pall2022-10-041-1/+1
| | | | | | | | Reported by Gate88.
* | Fix trace join to BC_JLOOP originating from BC_ITERN.Mike Pall2022-09-141-1/+2
| | | | | | | | Reported by OpenResty Inc.
* | Fix compiler warnings.Mike Pall2022-09-133-7/+7
| | | | | | | | Reported by gan74.
* | Fix QNX build.Mike Pall2022-09-123-1/+8
| | | | | | | | | | Note: this is not an officially supported target. Contributed by Wen Yang.
* | Add -F option to override filename in jit.bcsave (luajit -b).Mike Pall2022-08-151-7/+22
| | | | | | | | Suggested by Mathias Westerdahl.
* | LJ_GC64: Fix lua_concat().Mike Pall2022-08-101-1/+1
| | | | | | | | Reported by Mathias Westerdahl.
* | Merge branch 'master' into v2.1Mike Pall2022-08-072-2/+2
|\|
| * Prevent use of RTLD_DEFAULT when NO_RTLD_DEFAULT is defined.Mike Pall2022-08-072-2/+2
| | | | | | | | | | Workaround for Android 4.4 bug. Thanks to gudzpoz.
* | Improve GC estimation for userdata with attached managed memory.Mike Pall2022-07-281-0/+3
| | | | | | | | | | This works well for string.buffers, but not for userdata or cdata with attached unmanaged memory (malloc/free, mmap/munmap).
* | Add missing GC steps to string buffer methods.Mike Pall2022-07-281-0/+2
| | | | | | | | Reported by Cosmin Apreutesei.
* | x86/x64: Limit VLOAD fusion to simple cases.Mike Pall2022-07-271-1/+2
| | | | | | | | Reported by ccagml.
* | OSX/iOS/ARM64: Fix generation of Mach-O object files.Mike Pall2022-07-221-3/+3
| | | | | | | | Thanks to Carlo Cabrera.
* | Prevent trace start at BC_ITERL after compiled BC_ITERN.Mike Pall2022-07-211-0/+2
| | | | | | | | Reported by ccagml.
* | ARM64: Allow building with unwinding disabled.Mike Pall2022-07-191-0/+2
| |
* | Merge branch 'master' into v2.1Mike Pall2022-07-134-3/+12
|\|