]> git.ipfire.org Git - thirdparty/LuaJIT.git/log
thirdparty/LuaJIT.git
5 years agoFix frame traversal for __gc handler frames.
Mike Pall [Sun, 12 Jul 2020 12:30:34 +0000 (14:30 +0200)] 
Fix frame traversal for __gc handler frames.

Reported by Changochen.

5 years agoFix Clang build.
Mike Pall [Wed, 1 Jul 2020 23:24:39 +0000 (01:24 +0200)] 
Fix Clang build.

5 years agoAndroid/ARM: Fix build with recent NDK.
Mike Pall [Wed, 1 Jul 2020 23:23:41 +0000 (01:23 +0200)] 
Android/ARM: Fix build with recent NDK.

5 years agoFix compiler warning.
Mike Pall [Thu, 25 Jun 2020 13:19:48 +0000 (15:19 +0200)] 
Fix compiler warning.

5 years agoFix OSX build.
Mike Pall [Tue, 23 Jun 2020 17:17:13 +0000 (19:17 +0200)] 
Fix OSX build.

Reported by jnozsc.

5 years agoFollow-up fix for iOS build.
Mike Pall [Tue, 23 Jun 2020 09:28:46 +0000 (11:28 +0200)] 
Follow-up fix for iOS build.

5 years agoOSX/iOS: Handle iOS simulator and ARM64 Macs.
Mike Pall [Tue, 23 Jun 2020 01:24:40 +0000 (03:24 +0200)] 
OSX/iOS: Handle iOS simulator and ARM64 Macs.

5 years agoFix pointer check for non-GC64 mode.
Mike Pall [Tue, 23 Jun 2020 01:14:35 +0000 (03:14 +0200)] 
Fix pointer check for non-GC64 mode.

Thanks to Stefan Hett.

5 years agoWindows: Fix NtAllocateVirtualMemory prototype.
Mike Pall [Tue, 23 Jun 2020 01:13:54 +0000 (03:13 +0200)] 
Windows: Fix NtAllocateVirtualMemory prototype.

5 years agoAdd jit.security().
Mike Pall [Tue, 23 Jun 2020 01:12:32 +0000 (03:12 +0200)] 
Add jit.security().

5 years agoRedesign and harden string interning.
Mike Pall [Tue, 23 Jun 2020 01:06:45 +0000 (03:06 +0200)] 
Redesign and harden string interning.

Up to 40% faster on hash-intensive benchmarks.
With some ideas from Sokolov Yura.

5 years agoUse a securely seeded global PRNG for the VM.
Mike Pall [Mon, 15 Jun 2020 10:21:05 +0000 (12:21 +0200)] 
Use a securely seeded global PRNG for the VM.

It's not 2005 anymore.

5 years agoCleanup some arch defines and fix builds.
Mike Pall [Mon, 15 Jun 2020 09:23:04 +0000 (11:23 +0200)] 
Cleanup some arch defines and fix builds.

5 years agoARM: Implement FLOAD from GG_State.
Mike Pall [Fri, 12 Jun 2020 23:12:14 +0000 (01:12 +0200)] 
ARM: Implement FLOAD from GG_State.

5 years agoImprove assertions.
Mike Pall [Fri, 12 Jun 2020 22:52:54 +0000 (00:52 +0200)] 
Improve assertions.

5 years agoMerge branch 'master' into v2.1
Mike Pall [Sun, 7 Jun 2020 12:35:18 +0000 (14:35 +0200)] 
Merge branch 'master' into v2.1

5 years agoFix debug.debug() for non-string errors.
Mike Pall [Sun, 7 Jun 2020 12:34:09 +0000 (14:34 +0200)] 
Fix debug.debug() for non-string errors.

5 years agoOptimize table length computation with hinting.
Mike Pall [Wed, 27 May 2020 17:20:44 +0000 (19:20 +0200)] 
Optimize table length computation with hinting.

10x faster on loop with t[#t+1] = x idiom. Also used by table.insert.

5 years agoRemove pow() splitting and cleanup backends.
Mike Pall [Sat, 23 May 2020 19:33:01 +0000 (21:33 +0200)] 
Remove pow() splitting and cleanup backends.

5 years agoCleanup math function compilation and fix inconsistencies.
Mike Pall [Fri, 22 May 2020 02:53:35 +0000 (04:53 +0200)] 
Cleanup math function compilation and fix inconsistencies.

5 years agoMerge branch 'master' into v2.1
Mike Pall [Fri, 22 May 2020 01:30:55 +0000 (03:30 +0200)] 
Merge branch 'master' into v2.1

5 years agoFix bytecode register allocation for comparisons.
Mike Pall [Fri, 22 May 2020 01:28:52 +0000 (03:28 +0200)] 
Fix bytecode register allocation for comparisons.

5 years agoDon't compile math.modf() anymore.
Mike Pall [Fri, 22 May 2020 01:10:50 +0000 (03:10 +0200)] 
Don't compile math.modf() anymore.

It's rarely used and properly compiling it would be difficult.

5 years agoFix math.min()/math.max() inconsistencies.
Mike Pall [Fri, 22 May 2020 00:45:47 +0000 (02:45 +0200)] 
Fix math.min()/math.max() inconsistencies.

5 years agoFix narrowing of unary minus.
Mike Pall [Fri, 22 May 2020 00:45:03 +0000 (02:45 +0200)] 
Fix narrowing of unary minus.

5 years agoCleanup CPU detection and tuning for old CPUs.
Mike Pall [Wed, 20 May 2020 18:42:04 +0000 (20:42 +0200)] 
Cleanup CPU detection and tuning for old CPUs.

5 years agoARM64: Fix {AHUV}LOAD specialized to nil/false/true.
Mike Pall [Mon, 18 May 2020 20:24:53 +0000 (22:24 +0200)] 
ARM64: Fix {AHUV}LOAD specialized to nil/false/true.

Reported by caohongqing.

5 years agoARM, ARM64, PPC: Fix TSETR fallback.
Mike Pall [Mon, 18 May 2020 20:06:50 +0000 (22:06 +0200)] 
ARM, ARM64, PPC: Fix TSETR fallback.

Thanks to Javier Guerra Giraldez.

5 years agoRemove unused file.
Mike Pall [Fri, 8 May 2020 12:00:19 +0000 (14:00 +0200)] 
Remove unused file.

5 years agoMerge branch 'master' into v2.1
Mike Pall [Fri, 8 May 2020 12:00:07 +0000 (14:00 +0200)] 
Merge branch 'master' into v2.1

5 years agoFFI: Always fall back to metamethods for cdata length/concat.
Mike Pall [Fri, 8 May 2020 11:50:41 +0000 (13:50 +0200)] 
FFI: Always fall back to metamethods for cdata length/concat.

Thanks to Egor Skriptunoff.

5 years agoWindows: Make actual use of internal allocator optimization.
Mike Pall [Tue, 5 May 2020 10:32:55 +0000 (12:32 +0200)] 
Windows: Make actual use of internal allocator optimization.

Thanks to Nicholas Ham.

5 years agoMerge branch 'master' into v2.1
Mike Pall [Tue, 28 Apr 2020 15:54:03 +0000 (17:54 +0200)] 
Merge branch 'master' into v2.1

5 years agoFix overflow check in unpack().
Mike Pall [Tue, 28 Apr 2020 15:52:28 +0000 (17:52 +0200)] 
Fix overflow check in unpack().

Thanks to HybridDog.

5 years agoMerge branch 'master' into v2.1
Mike Pall [Tue, 28 Apr 2020 14:53:32 +0000 (16:53 +0200)] 
Merge branch 'master' into v2.1

5 years agoFix Windows make clean.
Mike Pall [Tue, 28 Apr 2020 14:52:28 +0000 (16:52 +0200)] 
Fix Windows make clean.

5 years agoFFI/ARM64: Fix pass-by-value struct calling conventions.
Mike Pall [Fri, 20 Mar 2020 13:10:18 +0000 (14:10 +0100)] 
FFI/ARM64: Fix pass-by-value struct calling conventions.

5 years agoMerge branch 'master' into v2.1
Mike Pall [Fri, 20 Mar 2020 12:38:05 +0000 (13:38 +0100)] 
Merge branch 'master' into v2.1

5 years agoFix write barrier for lua_setupvalue() and debug.setupvalue().
Mike Pall [Fri, 20 Mar 2020 12:35:49 +0000 (13:35 +0100)] 
Fix write barrier for lua_setupvalue() and debug.setupvalue().

5 years agoMake string to number conversions fail on NUL char.
Mike Pall [Thu, 13 Feb 2020 16:39:51 +0000 (17:39 +0100)] 
Make string to number conversions fail on NUL char.

Contributed by Igor Munkin.

5 years agoMerge branch 'master' into v2.1
Mike Pall [Sun, 2 Feb 2020 17:20:35 +0000 (18:20 +0100)] 
Merge branch 'master' into v2.1

5 years agox86/x64: Fix loop realignment.
Mike Pall [Sun, 2 Feb 2020 17:19:44 +0000 (18:19 +0100)] 
x86/x64: Fix loop realignment.

5 years agoMerge branch 'master' into v2.1
Mike Pall [Sun, 26 Jan 2020 14:44:40 +0000 (15:44 +0100)] 
Merge branch 'master' into v2.1

5 years agoDocumentation cleanup.
Mike Pall [Sun, 26 Jan 2020 14:37:33 +0000 (15:37 +0100)] 
Documentation cleanup.

5 years agoMerge branch 'master' into v2.1
Mike Pall [Sat, 25 Jan 2020 16:38:49 +0000 (17:38 +0100)] 
Merge branch 'master' into v2.1

5 years agoFix POSIX install with missing or incompatible ldconfig.
Mike Pall [Sat, 25 Jan 2020 16:37:12 +0000 (17:37 +0100)] 
Fix POSIX install with missing or incompatible ldconfig.

5 years agoMerge branch 'master' into v2.1
Mike Pall [Wed, 22 Jan 2020 01:39:26 +0000 (02:39 +0100)] 
Merge branch 'master' into v2.1

5 years agoFix C file generation in jit.bcsave.
Mike Pall [Wed, 22 Jan 2020 01:37:21 +0000 (02:37 +0100)] 
Fix C file generation in jit.bcsave.

Thanks to codicodi.

5 years agoMerge branch 'master' into v2.1
Mike Pall [Mon, 20 Jan 2020 22:34:21 +0000 (23:34 +0100)] 
Merge branch 'master' into v2.1

5 years agoBump copyright date.
Mike Pall [Mon, 20 Jan 2020 22:26:51 +0000 (23:26 +0100)] 
Bump copyright date.

5 years agoRemove support for de-facto dead archs.
Mike Pall [Mon, 20 Jan 2020 21:56:47 +0000 (22:56 +0100)] 
Remove support for de-facto dead archs.

5 years agoDynASM/x86: Fix BMI instructions.
Mike Pall [Mon, 20 Jan 2020 21:23:17 +0000 (22:23 +0100)] 
DynASM/x86: Fix BMI instructions.

Thanks to Peter Cawley.

5 years agoMinor fixes.
Mike Pall [Mon, 20 Jan 2020 21:20:55 +0000 (22:20 +0100)] 
Minor fixes.

5 years agoMIPS: Add MIPS64 R6 port.
Mike Pall [Mon, 20 Jan 2020 21:15:45 +0000 (22:15 +0100)] 
MIPS: Add MIPS64 R6 port.

Contributed by Hua Zhang, YunQiang Su from Wave Computing,
and Radovan Birdic from RT-RK.
Sponsored by Wave Computing.

5 years agoFix string.char() recording with no arguments.
Mike Pall [Tue, 14 Jan 2020 10:08:42 +0000 (11:08 +0100)] 
Fix string.char() recording with no arguments.

5 years agoFollowup fix for embedded bytecode loader.
Mike Pall [Tue, 14 Jan 2020 10:07:07 +0000 (11:07 +0100)] 
Followup fix for embedded bytecode loader.

5 years agoMerge branch 'master' into v2.1
Mike Pall [Mon, 13 Jan 2020 13:50:30 +0000 (14:50 +0100)] 
Merge branch 'master' into v2.1

5 years agoFix embedded bytecode loader.
Mike Pall [Mon, 13 Jan 2020 13:28:43 +0000 (14:28 +0100)] 
Fix embedded bytecode loader.

5 years agoProperly fix pointer diff in string.find().
Mike Pall [Sat, 21 Dec 2019 12:52:47 +0000 (13:52 +0100)] 
Properly fix pointer diff in string.find().

Thanks to Vyacheslav Egorov.

5 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.

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

5 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.

5 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.

5 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

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

Reported by bluecheetah001.

5 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

5 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.

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

5 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.

5 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.

5 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.

5 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.

5 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.

5 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.

5 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

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

5 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.

5 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.

5 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.

5 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

5 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.

5 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.

5 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

5 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.

5 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.

5 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

5 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.

5 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.

5 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

5 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.