]> git.ipfire.org Git - thirdparty/LuaJIT.git/log
thirdparty/LuaJIT.git
6 years agox64: Enable LJ_GC64 mode by default.
Mike Pall [Sun, 8 Dec 2019 20:21:30 +0000 (21:21 +0100)] 
x64: Enable LJ_GC64 mode by default.

6 years agoFFI: Eliminate hardcoded string hashes.
Mike Pall [Sun, 8 Dec 2019 19:53:31 +0000 (20:53 +0100)] 
FFI: Eliminate hardcoded string hashes.

6 years agoFix interaction between profiler hooks and finalizers.
Mike Pall [Sun, 8 Dec 2019 18:56:56 +0000 (19:56 +0100)] 
Fix interaction between profiler hooks and finalizers.

Thanks to Julien Desgats.

6 years agoDon't use STRREF for pointer diff in string.find().
Mike Pall [Sun, 8 Dec 2019 18:54:21 +0000 (19:54 +0100)] 
Don't use STRREF for pointer diff in string.find().

Thanks to Sergey Ostanevich and Vyacheslav Egorov.

6 years agoMerge branch 'master' into v2.1
Mike Pall [Sun, 8 Dec 2019 18:52:56 +0000 (19:52 +0100)] 
Merge branch 'master' into v2.1

6 years agoFix tonumber("-0").
Mike Pall [Sun, 8 Dec 2019 18:51:33 +0000 (19:51 +0100)] 
Fix tonumber("-0").

Reported by bluecheetah001.

6 years agoMerge branch 'master' into v2.1
Mike Pall [Sun, 8 Dec 2019 18:50:36 +0000 (19:50 +0100)] 
Merge branch 'master' into v2.1

6 years agoFix hash table chaining (again).
Mike Pall [Sun, 8 Dec 2019 18:47:00 +0000 (19:47 +0100)] 
Fix hash table chaining (again).

Thanks to Peter Cawley.

6 years agoTypo.
Mike Pall [Sun, 8 Dec 2019 18:45:07 +0000 (19:45 +0100)] 
Typo.

6 years agoFix declarations of _BitScanForward/_BitScanReverse.
Mike Pall [Sun, 8 Dec 2019 18:42:49 +0000 (19:42 +0100)] 
Fix declarations of _BitScanForward/_BitScanReverse.

Reported by Mumin Guler.

6 years agoAdd stricter check for print() vs. tostring() shortcut.
Mike Pall [Sun, 8 Dec 2019 18:40:24 +0000 (19:40 +0100)] 
Add stricter check for print() vs. tostring() shortcut.

6 years agoPrevent integer overflow while parsing long strings.
Mike Pall [Sun, 8 Dec 2019 18:35:25 +0000 (19:35 +0100)] 
Prevent integer overflow while parsing long strings.

6 years agoFix stack check when recording BC_VARG.
Mike Pall [Sun, 8 Dec 2019 18:32:27 +0000 (19:32 +0100)] 
Fix stack check when recording BC_VARG.

Contributed by Yichun Zhang.

6 years agoFFI: Add missing write barrier on C library index update.
Mike Pall [Sun, 8 Dec 2019 18:28:54 +0000 (19:28 +0100)] 
FFI: Add missing write barrier on C library index update.

Contributed by Yichun Zhang.

6 years agoFFI: Workaround for platform dlerror() returning NULL.
Mike Pall [Sun, 8 Dec 2019 18:25:45 +0000 (19:25 +0100)] 
FFI: Workaround for platform dlerror() returning NULL.

Contributed by mcclure.

6 years agoMerge branch 'master' into v2.1
Mike Pall [Sun, 8 Dec 2019 18:24:47 +0000 (19:24 +0100)] 
Merge branch 'master' into v2.1

6 years agoOSX: Use __thread attribute.
Mike Pall [Sun, 8 Dec 2019 18:22:37 +0000 (19:22 +0100)] 
OSX: Use __thread attribute.

6 years agoOSX: Don't set a default MACOSX_DEPLOYMENT_TARGET.
Mike Pall [Sun, 8 Dec 2019 18:22:00 +0000 (19:22 +0100)] 
OSX: Don't set a default MACOSX_DEPLOYMENT_TARGET.

6 years agoBuild MinGW import library, too.
Mike Pall [Sun, 8 Dec 2019 18:19:12 +0000 (19:19 +0100)] 
Build MinGW import library, too.

Thanks to Tarnyko.

6 years agoFix MinGW make clean.
Mike Pall [Sun, 8 Dec 2019 18:16:34 +0000 (19:16 +0100)] 
Fix MinGW make clean.

Reported by Shmuel Zeigerman.

6 years agoMerge branch 'master' into v2.1
Mike Pall [Sun, 8 Dec 2019 18:12:45 +0000 (19:12 +0100)] 
Merge branch 'master' into v2.1

6 years agoUpdate Android and iOS build docs.
Mike Pall [Sun, 8 Dec 2019 18:07:22 +0000 (19:07 +0100)] 
Update Android and iOS build docs.

6 years agoAdd note about the unsuitabilty of math.random() for crypto.
Mike Pall [Sun, 8 Dec 2019 18:01:06 +0000 (19:01 +0100)] 
Add note about the unsuitabilty of math.random() for crypto.

6 years agoMerge branch 'master' into v2.1
Mike Pall [Sun, 8 Dec 2019 17:58:50 +0000 (18:58 +0100)] 
Merge branch 'master' into v2.1

6 years agoUpdate MSVC build script and docs.
Mike Pall [Sun, 8 Dec 2019 17:52:41 +0000 (18:52 +0100)] 
Update MSVC build script and docs.

6 years agoMore recent MSVC is partially C99 compliant.
Mike Pall [Sun, 8 Dec 2019 17:43:12 +0000 (18:43 +0100)] 
More recent MSVC is partially C99 compliant.

6 years agoMerge branch 'master' into v2.1
Mike Pall [Sun, 10 Nov 2019 21:39:40 +0000 (22:39 +0100)] 
Merge branch 'master' into v2.1

6 years agoFix narrowing of conversions to U32.
Mike Pall [Sun, 10 Nov 2019 21:37:42 +0000 (22:37 +0100)] 
Fix narrowing of conversions to U32.

Reported by spacewander.

6 years agoFix unsinking of 64 bit constants.
Mike Pall [Fri, 30 Aug 2019 10:16:50 +0000 (12:16 +0200)] 
Fix unsinking of 64 bit constants.

Contributed by Thibault Charbonnier.

6 years agoMerge branch 'master' into v2.1
Mike Pall [Fri, 30 Aug 2019 09:24:44 +0000 (11:24 +0200)] 
Merge branch 'master' into v2.1

6 years agoFix bytecode dump unpatching.
Mike Pall [Fri, 30 Aug 2019 09:07:45 +0000 (11:07 +0200)] 
Fix bytecode dump unpatching.

Reported by Christopher Oliver.

6 years agoMerge branch 'master' into v2.1
Mike Pall [Fri, 9 Aug 2019 22:58:37 +0000 (00:58 +0200)] 
Merge branch 'master' into v2.1

6 years agoFix debug.getinfo() argument check.
Mike Pall [Fri, 9 Aug 2019 22:54:41 +0000 (00:54 +0200)] 
Fix debug.getinfo() argument check.

Thanks to Sergey Ostanevich.

6 years agoMerge branch 'master' into v2.1
Mike Pall [Fri, 5 Jul 2019 11:22:12 +0000 (13:22 +0200)] 
Merge branch 'master' into v2.1

6 years agoMIPS: Fix delay slot hint.
Mike Pall [Fri, 5 Jul 2019 11:19:41 +0000 (13:19 +0200)] 
MIPS: Fix delay slot hint.

This is documentation only. Thanks to snyh.

6 years agoMerge branch 'master' into v2.1
Mike Pall [Thu, 9 May 2019 09:33:30 +0000 (11:33 +0200)] 
Merge branch 'master' into v2.1

6 years agoFix TNEW load forwarding with instable types.
Mike Pall [Thu, 9 May 2019 09:33:03 +0000 (11:33 +0200)] 
Fix TNEW load forwarding with instable types.

6 years agoMerge branch 'master' into v2.1
Mike Pall [Mon, 29 Apr 2019 16:04:47 +0000 (18:04 +0200)] 
Merge branch 'master' into v2.1

6 years agoARM: Fix GCC 7 -Wimplicit-fallthrough warnings.
Mike Pall [Mon, 29 Apr 2019 16:02:50 +0000 (18:02 +0200)] 
ARM: Fix GCC 7 -Wimplicit-fallthrough warnings.

6 years agoARM: Fix condition code check fusion.
Mike Pall [Mon, 29 Apr 2019 15:38:05 +0000 (17:38 +0200)] 
ARM: Fix condition code check fusion.

Reported by Qingjun Wei.

6 years agoARM64: Avoid side-effects of constant rematerialization.
Mike Pall [Mon, 4 Feb 2019 22:04:48 +0000 (23:04 +0100)] 
ARM64: Avoid side-effects of constant rematerialization.

Thanks to Patrick Galizia.

7 years agoImprove luaL_addlstring().
Mike Pall [Thu, 10 Jan 2019 12:09:17 +0000 (13:09 +0100)] 
Improve luaL_addlstring().

Thanks to Domingo Alvarez Duarte.

7 years agoFix os.date() for wider libc strftime() compatibility.
Mike Pall [Thu, 10 Jan 2019 11:47:28 +0000 (12:47 +0100)] 
Fix os.date() for wider libc strftime() compatibility.

Thanks to Jesper Lundgren.

7 years agoMerge branch 'master' into v2.1
Mike Pall [Thu, 10 Jan 2019 11:37:40 +0000 (12:37 +0100)] 
Merge branch 'master' into v2.1

7 years agoFix MinGW build.
Mike Pall [Thu, 10 Jan 2019 11:37:09 +0000 (12:37 +0100)] 
Fix MinGW build.

Thanks to Victor Bombi.

7 years agoMerge branch 'master' into v2.1
Mike Pall [Thu, 10 Jan 2019 11:34:20 +0000 (12:34 +0100)] 
Merge branch 'master' into v2.1

7 years agoDynASM/MIPS: Fix shadowed variable.
Mike Pall [Thu, 10 Jan 2019 11:32:08 +0000 (12:32 +0100)] 
DynASM/MIPS: Fix shadowed variable.

Cleanup only, bug cannot trigger.
Thanks to Domingo Alvarez Duarte.

7 years agoDynASM/PPC: Fix shadowed variable.
Mike Pall [Thu, 10 Jan 2019 11:28:24 +0000 (12:28 +0100)] 
DynASM/PPC: Fix shadowed variable.

Cleanup only, bug cannot trigger.
Thanks to Domingo Alvarez Duarte.

7 years agoMerge branch 'master' into v2.1
Mike Pall [Thu, 10 Jan 2019 11:24:17 +0000 (12:24 +0100)] 
Merge branch 'master' into v2.1

7 years agoFix overflow of snapshot map offset.
Mike Pall [Thu, 10 Jan 2019 11:19:30 +0000 (12:19 +0100)] 
Fix overflow of snapshot map offset.

Thanks to Yichun Zhang.

7 years agoMerge branch 'master' into v2.1
Mike Pall [Thu, 10 Jan 2019 11:02:31 +0000 (12:02 +0100)] 
Merge branch 'master' into v2.1

7 years agoBetter detection of MinGW build.
Mike Pall [Thu, 10 Jan 2019 11:02:15 +0000 (12:02 +0100)] 
Better detection of MinGW build.

7 years agoActually implement maxirconst trace limit.
Mike Pall [Sun, 14 Oct 2018 13:21:37 +0000 (15:21 +0200)] 
Actually implement maxirconst trace limit.

Suggested by spacewander.

7 years agoMIPS/MIPS64: Fix TSETR barrier (again).
Mike Pall [Sun, 14 Oct 2018 13:12:59 +0000 (15:12 +0200)] 
MIPS/MIPS64: Fix TSETR barrier (again).

7 years agoFix memory probing allocator to check for valid end address, too.
Mike Pall [Thu, 13 Sep 2018 15:58:50 +0000 (17:58 +0200)] 
Fix memory probing allocator to check for valid end address, too.

7 years agoDynASM/x86: Fix vroundps/vroundpd encoding.
Mike Pall [Wed, 22 Aug 2018 11:35:41 +0000 (13:35 +0200)] 
DynASM/x86: Fix vroundps/vroundpd encoding.

Thanks to Alexander Nasonov.

7 years agoDynASM: Fix warning.
Mike Pall [Sun, 24 Jun 2018 12:10:21 +0000 (14:10 +0200)] 
DynASM: Fix warning.

7 years agoARM64: Fix exit stub patching.
Mike Pall [Sun, 24 Jun 2018 12:08:59 +0000 (14:08 +0200)] 
ARM64: Fix exit stub patching.

Contributed by Javier Guerra Giraldez.

7 years agoARM64: Fix write barrier in BC_USETS.
Mike Pall [Sun, 24 Jun 2018 11:18:03 +0000 (13:18 +0200)] 
ARM64: Fix write barrier in BC_USETS.

Contributed by Javier Guerra Giraldez.

7 years agoWindows: Add UWP support, part 1.
Mike Pall [Tue, 5 Jun 2018 15:03:08 +0000 (17:03 +0200)] 
Windows: Add UWP support, part 1.

Contributed by Ben Pye.

7 years agoFrom Lua 5.3: assert() accepts any type of error object.
Mike Pall [Tue, 5 Jun 2018 10:23:56 +0000 (12:23 +0200)] 
From Lua 5.3: assert() accepts any type of error object.

7 years agox86: Disassemble FMA3 instructions.
Mike Pall [Tue, 5 Jun 2018 10:23:29 +0000 (12:23 +0200)] 
x86: Disassemble FMA3 instructions.

Thanks to Alexander Nasonov.

7 years agoDynASM/x86: Add FMA3 instructions.
Mike Pall [Tue, 5 Jun 2018 10:23:13 +0000 (12:23 +0200)] 
DynASM/x86: Add FMA3 instructions.

Thanks to Alexander Nasonov.

7 years agoMerge branch 'master' into v2.1
Mike Pall [Tue, 5 Jun 2018 09:39:10 +0000 (11:39 +0200)] 
Merge branch 'master' into v2.1

7 years agoPPC/NetBSD: Fix endianess check.
Mike Pall [Tue, 5 Jun 2018 09:36:18 +0000 (11:36 +0200)] 
PPC/NetBSD: Fix endianess check.

Thanks to he32 and daurnimator.

7 years agoMerge branch 'master' into v2.1
Mike Pall [Sun, 20 May 2018 10:45:01 +0000 (12:45 +0200)] 
Merge branch 'master' into v2.1

7 years agox86/x64: Check for jcc when using xor r,r in emit_loadi().
Mike Pall [Sun, 20 May 2018 10:40:33 +0000 (12:40 +0200)] 
x86/x64: Check for jcc when using xor r,r in emit_loadi().

Thanks to Peter Cawley.

7 years agoMerge branch 'master' into v2.1
Mike Pall [Sun, 20 May 2018 10:28:10 +0000 (12:28 +0200)] 
Merge branch 'master' into v2.1

7 years agoFFI: Make FP to U64 conversions match JIT backend behavior.
Mike Pall [Sun, 20 May 2018 10:25:36 +0000 (12:25 +0200)] 
FFI: Make FP to U64 conversions match JIT backend behavior.

7 years agoMerge branch 'master' into v2.1
Mike Pall [Wed, 25 Apr 2018 10:07:44 +0000 (12:07 +0200)] 
Merge branch 'master' into v2.1

7 years agoBump copyright date to 2018.
Mike Pall [Wed, 25 Apr 2018 10:07:08 +0000 (12:07 +0200)] 
Bump copyright date to 2018.

7 years agoMerge branch 'master' into v2.1
Mike Pall [Sun, 22 Apr 2018 11:30:02 +0000 (13:30 +0200)] 
Merge branch 'master' into v2.1

7 years agoFFI: Add tonumber() specialization for failed conversions.
Mike Pall [Sun, 22 Apr 2018 11:27:25 +0000 (13:27 +0200)] 
FFI: Add tonumber() specialization for failed conversions.

Contributed by Javier Guerra Giraldez.

7 years agoGive expected results for negative non-base-10 numbers in tonumber().
Mike Pall [Sun, 22 Apr 2018 11:14:28 +0000 (13:14 +0200)] 
Give expected results for negative non-base-10 numbers in tonumber().

This was undefined in Lua 5.1, but it's defined in 5.2.

7 years agoDynASM/x86: Add BMI1 and BMI2 instructions.
Mike Pall [Tue, 27 Feb 2018 22:22:40 +0000 (23:22 +0100)] 
DynASM/x86: Add BMI1 and BMI2 instructions.

Thanks to Peter Cawley.

7 years agoMerge branch 'master' into v2.1
Mike Pall [Tue, 27 Feb 2018 22:18:32 +0000 (23:18 +0100)] 
Merge branch 'master' into v2.1

7 years agoFix rechaining of pseudo-resurrected string keys.
Mike Pall [Tue, 27 Feb 2018 22:02:23 +0000 (23:02 +0100)] 
Fix rechaining of pseudo-resurrected string keys.

This is a serious bug. But extremely hard to reproduce, so it went
undetected for 8 years. One needs two resurrections with different
main nodes, which are both in a hash chain which gets relinked on
key insertion where the colliding node is in a non-main position. Phew.

Thanks to lbeiming.

7 years agoMerge branch 'master' into v2.1
Mike Pall [Mon, 29 Jan 2018 12:28:53 +0000 (13:28 +0100)] 
Merge branch 'master' into v2.1

7 years agoClear stack after print_jit_status() in CLI.
Mike Pall [Mon, 29 Jan 2018 12:25:51 +0000 (13:25 +0100)] 
Clear stack after print_jit_status() in CLI.

Suggested by Hydroque.

7 years agoMerge branch 'master' into v2.1
Mike Pall [Mon, 29 Jan 2018 12:19:30 +0000 (13:19 +0100)] 
Merge branch 'master' into v2.1

7 years agoFix GCC 7 -Wimplicit-fallthrough warnings.
Mike Pall [Mon, 29 Jan 2018 12:06:13 +0000 (13:06 +0100)] 
Fix GCC 7 -Wimplicit-fallthrough warnings.

7 years agoMerge branch 'master' into v2.1
Mike Pall [Mon, 29 Jan 2018 11:53:42 +0000 (12:53 +0100)] 
Merge branch 'master' into v2.1

7 years agoFFI: Don't assert on #1LL (5.2 compatibility mode only).
Mike Pall [Mon, 29 Jan 2018 11:47:08 +0000 (12:47 +0100)] 
FFI: Don't assert on #1LL (5.2 compatibility mode only).

Reported by Denis Golovan.

7 years agoMIPS64: Fix soft-float +-0.0 vs. +-0.0 comparison.
Mike Pall [Mon, 29 Jan 2018 11:12:29 +0000 (12:12 +0100)] 
MIPS64: Fix soft-float +-0.0 vs. +-0.0 comparison.

Thanks to Stefan Pejic.

7 years agoMerge branch 'master' into v2.1
Mike Pall [Thu, 18 Jan 2018 11:29:55 +0000 (12:29 +0100)] 
Merge branch 'master' into v2.1

7 years agoFix LuaJIT API docs for LUAJIT_MODE_*.
Mike Pall [Thu, 18 Jan 2018 11:29:39 +0000 (12:29 +0100)] 
Fix LuaJIT API docs for LUAJIT_MODE_*.

Thanks to sunfishgao.

7 years agoFix ARMv8 (32 bit subset) detection.
Mike Pall [Thu, 18 Jan 2018 11:24:36 +0000 (12:24 +0100)] 
Fix ARMv8 (32 bit subset) detection.

Thanks to Markus Oberhumber.

8 years agoMerge branch 'master' into v2.1
Mike Pall [Sun, 14 Jan 2018 13:26:10 +0000 (14:26 +0100)] 
Merge branch 'master' into v2.1

8 years agoFix string.format("%c", 0).
Mike Pall [Sun, 14 Jan 2018 13:11:59 +0000 (14:11 +0100)] 
Fix string.format("%c", 0).

8 years agoFix IR_BUFPUT assembly.
Mike Pall [Sun, 14 Jan 2018 12:57:00 +0000 (13:57 +0100)] 
Fix IR_BUFPUT assembly.

Thanks to Peter Cawley.

8 years agoMIPS64: Fix xpcall() error case.
Mike Pall [Sat, 18 Nov 2017 11:25:35 +0000 (12:25 +0100)] 
MIPS64: Fix xpcall() error case.

Thanks to François Perrad and Stefan Pejic.

8 years agoARM64: Fix xpcall() error case (really).
Mike Pall [Sat, 18 Nov 2017 11:23:57 +0000 (12:23 +0100)] 
ARM64: Fix xpcall() error case (really).

Thanks to François Perrad and Stefan Pejic.

8 years agoMerge branch 'master' into v2.1
Mike Pall [Thu, 16 Nov 2017 12:00:09 +0000 (13:00 +0100)] 
Merge branch 'master' into v2.1

8 years agoFix saved bytecode encapsulated in ELF objects.
Mike Pall [Thu, 16 Nov 2017 11:58:12 +0000 (12:58 +0100)] 
Fix saved bytecode encapsulated in ELF objects.

Thanks to Dimitry Andric.

8 years agoARM64: Fix xpcall() error case.
Mike Pall [Thu, 16 Nov 2017 11:53:34 +0000 (12:53 +0100)] 
ARM64: Fix xpcall() error case.

Thanks to Stefan Pejic.

8 years agoMIPS64: Fix register allocation in assembly of HREF.
Mike Pall [Wed, 8 Nov 2017 11:54:03 +0000 (12:54 +0100)] 
MIPS64: Fix register allocation in assembly of HREF.

Contributed by James Cowgill.

8 years agoARM64: Fix assembly of HREFK.
Mike Pall [Wed, 8 Nov 2017 11:53:48 +0000 (12:53 +0100)] 
ARM64: Fix assembly of HREFK.

Reported by Jason Teplitz.

8 years agoMerge branch 'master' into v2.1
Mike Pall [Wed, 8 Nov 2017 11:53:24 +0000 (12:53 +0100)] 
Merge branch 'master' into v2.1

8 years agoFix FOLD rule for strength reduction of widening.
Mike Pall [Wed, 8 Nov 2017 11:53:05 +0000 (12:53 +0100)] 
Fix FOLD rule for strength reduction of widening.

Reported by Matthew Burk.

8 years agoLJ_GC64: Make ASMREF_L references 64 bit.
Mike Pall [Mon, 2 Oct 2017 21:10:56 +0000 (23:10 +0200)] 
LJ_GC64: Make ASMREF_L references 64 bit.

Reported by Yichun Zhang.