aboutsummaryrefslogtreecommitdiff
path: root/src (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-06-02Fix handling of instable types in TNEW/TDUP load forwarding.Mike Pall1-1/+2
Analyzed by Sergey Kaplun. #994
2023-06-02Fix compiler warning.Mike Pall1-1/+2
Reported by Myriachan.
2023-04-30Fix last commit.Mike Pall1-0/+2
Reported by PluMGMK.
2023-04-16Print errors from __gc finalizers instead of rethrowing them.Mike Pall4-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")
2023-04-16Fix TDUP load forwarding after table rehash.Mike Pall1-0/+6
Reported by Sergey Kaplun. #980
2023-04-16Fix canonicalization of +-0.0 keys for IR_NEWREF.Mike Pall1-0/+2
Reported by Sergey Kaplun. #981
2023-02-21Improve error reporting on stack overflow.Mike Pall1-1/+1
Thanks to Nicolas Lebedenco.
2023-02-21Allow building sources with mixed LF/CRLF line-endings.Mike Pall1-4/+10
Reported by mgood7123.
2023-01-04Fix compiler warning.Mike Pall1-2/+2
Reported by Christopher Ng.
2023-01-04Don't fail for Clang builds, which pretend to be an ancient GCC.Mike Pall1-0/+6
Reported by pkubaj.
2022-12-22Avoid negation of signed integers in C that may hold INT*_MIN.Mike Pall12-32/+32
Reported by minoki. Recent C compilers 'take advantage' of the undefined behavior. This completely changes the meaning of expressions like (k == -k).
2022-12-09Correct fix for stack check when recording BC_VARG.Mike Pall1-2/+2
Reported by Yichun Zhang.
2022-12-07Disable FMA by default. Use -Ofma or jit.opt.start("+fma") to enable.Mike Pall7-6/+35
See the discussion in #918 for the rationale.
2022-12-07FFI: Fix dangling reference to CType. Improve checks.Mike Pall2-0/+16
Reported by elmknot.
2022-12-01ARM64: Fix code generation for IR_SLOAD with typecheck + conversion.Mike Pall1-1/+1
Reported by memcorrupt.
2022-11-27PS4/PS5: Fix build scripts.Mike Pall2-4/+4
Thanks to Mathias Westerdahl.
2022-11-27Avoid assertion in case of stack overflow from stitched trace.Mike Pall1-3/+6
Reported by Sergey Bronnikov. Fixed by Sergey Kaplun.
2022-11-22NX: Always compile with -fPIC.Mike Pall1-0/+1
Suggested by Mathias Westerdahl.
2022-11-14Clarify contact page.Mike Pall1-0/+7
2022-11-09Ensure correct stack top for OOM error message.Mike Pall1-0/+1
Reported by Sergey Kaplun.
2022-10-04ARM64: Fix IR_SLOAD assembly.Mike Pall1-1/+1
Reported by Gate88.
2022-09-14Fix trace join to BC_JLOOP originating from BC_ITERN.Mike Pall1-1/+2
Reported by OpenResty Inc.
2022-09-13Fix compiler warnings.Mike Pall3-7/+7
Reported by gan74.
2022-09-13Fix last edit.Mike Pall1-1/+0
2022-09-13Remove dead Wiki links.Mike Pall13-27/+0
The lost content may be resurrected later.
2022-09-12Fix QNX build.Mike Pall3-1/+8
Note: this is not an officially supported target. Contributed by Wen Yang.
2022-08-15Add -F option to override filename in jit.bcsave (luajit -b).Mike Pall2-7/+23
Suggested by Mathias Westerdahl.
2022-08-15Patch luajit.pc with INSTALL_INC, if customized.Mike Pall1-1/+5
Suggested by Henrique Bucher.
2022-08-10LJ_GC64: Fix lua_concat().Mike Pall1-1/+1
Reported by Mathias Westerdahl.
2022-08-07Prevent use of RTLD_DEFAULT when NO_RTLD_DEFAULT is defined.Mike Pall2-2/+2
Workaround for Android 4.4 bug. Thanks to gudzpoz.
2022-07-28Improve GC estimation for userdata with attached managed memory.Mike Pall1-0/+3
This works well for string.buffers, but not for userdata or cdata with attached unmanaged memory (malloc/free, mmap/munmap).
2022-07-28Add missing GC steps to string buffer methods.Mike Pall1-0/+2
Reported by Cosmin Apreutesei.
2022-07-27x86/x64: Limit VLOAD fusion to simple cases.Mike Pall1-1/+2
Reported by ccagml.
2022-07-22OSX/iOS/ARM64: Fix generation of Mach-O object files.Mike Pall1-3/+3
Thanks to Carlo Cabrera.
2022-07-21Prevent trace start at BC_ITERL after compiled BC_ITERN.Mike Pall1-0/+2
Reported by ccagml.
2022-07-19ARM64: Allow building with unwinding disabled.Mike Pall1-0/+2
2022-07-13FFI: Fix sizeof expression in C parser for reference types.Mike Pall1-1/+1
2022-07-13FFI: Fix ffi.alignof() for reference types.Mike Pall3-1/+10
Reported by Eric Gouyer.
2022-07-13FFI: Allow ffi.metatype() for typedefs with attributes.Mike Pall1-1/+1
Reported by Eric Gouyer.
2022-07-12OSX/iOS/ARM64: Fix bytecode embedding in Mach-O object file.Mike Pall1-1/+13
Thanks to Carlo Cabrera.
2022-07-12LJ_GC64: Fix IR_VARG offset for fixed number of results.Mike Pall1-1/+1
Reported by George Vaintrub. Fixed by Sergey Kaplun.
2022-07-08x86/x64: Fix math.ceil(-0.9) result sign.Mike Pall1-7/+6
Reported by minoki.
2022-06-23Grammar and spell check.Mike Pall11-72/+72
2022-06-13Make embedded bytecode readable and forward-compatible.Mike Pall2-45/+95
2022-06-08DynASM: Fix warnings.Mike Pall2-9/+11
2022-06-08Fix warnings in minilua.c.Mike Pall2-2/+10
2022-06-08Update console build instructions.Mike Pall1-28/+36
2022-06-08Add Nintendo Switch port.Mike Pall6-4/+179
Contributed by Swyter and vdweller84.
2022-06-08Avoid zero-sized arrays in jit_State.Mike Pall1-0/+6
2022-06-08Don't use jit_State during build with JIT disabled.Mike Pall3-0/+19