]> git.ipfire.org Git - thirdparty/LuaJIT.git/log
thirdparty/LuaJIT.git
4 years agoFix dependencies.
Mike Pall [Thu, 3 Jun 2021 08:07:00 +0000 (10:07 +0200)] 
Fix dependencies.

4 years agoFix IR_BUFHDR assembly.
Mike Pall [Thu, 3 Jun 2021 08:05:20 +0000 (10:05 +0200)] 
Fix IR_BUFHDR assembly.

4 years agoFFI: Support FFI numbers in string.format() and buf:putf().
Mike Pall [Thu, 3 Jun 2021 01:22:58 +0000 (03:22 +0200)] 
FFI: Support FFI numbers in string.format() and buf:putf().

4 years agoARM64: More improvements to the generation of immediates.
Mike Pall [Thu, 3 Jun 2021 01:21:56 +0000 (03:21 +0200)] 
ARM64: More improvements to the generation of immediates.

4 years agoString buffers, part 2d: basic string buffer methods.
Mike Pall [Tue, 1 Jun 2021 03:16:32 +0000 (05:16 +0200)] 
String buffers, part 2d: basic string buffer methods.

Sponsored by fmad.io.

4 years agoString buffers, part 2c: abstract out string.format.
Mike Pall [Tue, 1 Jun 2021 03:14:18 +0000 (05:14 +0200)] 
String buffers, part 2c: abstract out string.format.

Sponsored by fmad.io.

4 years agoAbstract out on-demand loading of FFI library.
Mike Pall [Mon, 31 May 2021 23:01:15 +0000 (01:01 +0200)] 
Abstract out on-demand loading of FFI library.

4 years agoString buffers, part 2b: Add extended string buffers. Use in serializer.
Mike Pall [Mon, 31 May 2021 22:55:51 +0000 (00:55 +0200)] 
String buffers, part 2b: Add extended string buffers. Use in serializer.

Sponsored by fmad.io.

4 years agoString buffers, part 2a: internal SBuf reorg. Use full pointers.
Mike Pall [Mon, 31 May 2021 22:45:06 +0000 (00:45 +0200)] 
String buffers, part 2a: internal SBuf reorg. Use full pointers.

Sponsored by fmad.io.

4 years agoMerge branch 'master' into v2.1
Mike Pall [Mon, 31 May 2021 22:28:00 +0000 (00:28 +0200)] 
Merge branch 'master' into v2.1

4 years agoFFI: Fix dangling reference to CType.
Mike Pall [Mon, 31 May 2021 22:26:45 +0000 (00:26 +0200)] 
FFI: Fix dangling reference to CType.

4 years agoMerge branch 'master' into v2.1
Mike Pall [Sat, 29 May 2021 13:38:37 +0000 (15:38 +0200)] 
Merge branch 'master' into v2.1

4 years agoPPC/PS3: Fix BC_ADD*/BC_SUB*.
Mike Pall [Sat, 29 May 2021 13:33:08 +0000 (15:33 +0200)] 
PPC/PS3: Fix BC_ADD*/BC_SUB*.

Thanks to MaryWan1982.

4 years agoMerge branch 'master' into v2.1
Mike Pall [Sat, 29 May 2021 13:32:04 +0000 (15:32 +0200)] 
Merge branch 'master' into v2.1

4 years agoFix use-def analysis for vararg functions.
Mike Pall [Sat, 29 May 2021 13:31:13 +0000 (15:31 +0200)] 
Fix use-def analysis for vararg functions.

Reported by Shmuel Zeigerman.

4 years agoMerge branch 'master' into v2.1
Mike Pall [Mon, 24 May 2021 20:28:58 +0000 (22:28 +0200)] 
Merge branch 'master' into v2.1

4 years agoFix use-def analysis for BC_VARG.
Mike Pall [Mon, 24 May 2021 20:25:26 +0000 (22:25 +0200)] 
Fix use-def analysis for BC_VARG.

Reported by Ryan Lucia.

4 years agoDynASM/ARM64: Fix ADRP encoding with absolute address.
Mike Pall [Sat, 22 May 2021 11:31:48 +0000 (13:31 +0200)] 
DynASM/ARM64: Fix ADRP encoding with absolute address.

Thanks to Dmitry Stogov.

4 years agoMerge branch 'master' into v2.1
Mike Pall [Mon, 17 May 2021 17:42:59 +0000 (19:42 +0200)] 
Merge branch 'master' into v2.1

4 years agoFix compiler warnings.
Mike Pall [Mon, 17 May 2021 17:42:06 +0000 (19:42 +0200)] 
Fix compiler warnings.

4 years agoDynASM: Bump version to 1.5.0.
Mike Pall [Sun, 2 May 2021 20:29:01 +0000 (22:29 +0200)] 
DynASM: Bump version to 1.5.0.

4 years agoDynASM/ARM64: Add .long expr. Add .quad/.addr expr + refs.
Mike Pall [Sun, 2 May 2021 20:25:56 +0000 (22:25 +0200)] 
DynASM/ARM64: Add .long expr. Add .quad/.addr expr + refs.

Suggested by Dmitry Stogov, Hao Sun and Nick Gasson.

4 years agoDynASM/x86: Fix x64 .aword refs. Add .qword, .quad, .addr and .long.
Mike Pall [Sun, 2 May 2021 20:25:16 +0000 (22:25 +0200)] 
DynASM/x86: Fix x64 .aword refs. Add .qword, .quad, .addr and .long.

Suggested by Dmitry Stogov.

4 years agoFFI/ARM64/OSX: Fix vararg call handling.
Mike Pall [Sun, 2 May 2021 20:11:05 +0000 (22:11 +0200)] 
FFI/ARM64/OSX: Fix vararg call handling.

Thanks to Igor Munkin.

4 years agoMerge branch 'master' into v2.1
Mike Pall [Sun, 25 Apr 2021 15:45:40 +0000 (17:45 +0200)] 
Merge branch 'master' into v2.1

4 years agoAdd FAQ about table iteration order.
Mike Pall [Sun, 25 Apr 2021 15:44:03 +0000 (17:44 +0200)] 
Add FAQ about table iteration order.

4 years agoPrevent compile of __concat with tailcall to fast function.
Mike Pall [Wed, 21 Apr 2021 13:23:15 +0000 (15:23 +0200)] 
Prevent compile of __concat with tailcall to fast function.

E.g. __concat = function() return setmetatable(...) end
Reported by Fezile Manana.

4 years agoFix IR_RENAME snapshot number. Follow-up fix for a32aeadc.
Mike Pall [Tue, 20 Apr 2021 15:55:48 +0000 (17:55 +0200)] 
Fix IR_RENAME snapshot number. Follow-up fix for a32aeadc.

Reported by Victor Bombi, analyzed by XmiliaH. Thanks!

4 years agoFix compiler warning.
Mike Pall [Mon, 19 Apr 2021 11:54:41 +0000 (13:54 +0200)] 
Fix compiler warning.

4 years agoDynASM: Fix global label references
Mike Pall [Wed, 31 Mar 2021 16:36:44 +0000 (18:36 +0200)] 
DynASM: Fix global label references

ARM64 patch contributed by Hao Sun and Nick Gasson.

4 years agoDynASM/ARM64: Add VREG support.
Mike Pall [Wed, 31 Mar 2021 16:11:32 +0000 (18:11 +0200)] 
DynASM/ARM64: Add VREG support.

Contributed by Hao Sun and Nick Gasson.

4 years agoFix build with busybox grep.
Mike Pall [Wed, 31 Mar 2021 15:06:27 +0000 (17:06 +0200)] 
Fix build with busybox grep.

Reported by ymph.

4 years agoNetBSD: Use PROT_MPROTECT() and disable getentropy().
Mike Pall [Mon, 29 Mar 2021 08:41:52 +0000 (10:41 +0200)] 
NetBSD: Use PROT_MPROTECT() and disable getentropy().

Note: this is not an officially supported target.
Contributed by David Carlier.

4 years agoAllow disabling the serializer.
Mike Pall [Fri, 26 Mar 2021 18:43:02 +0000 (19:43 +0100)] 
Allow disabling the serializer.

4 years agoBSD: Fix build with BSD grep.
Mike Pall [Fri, 26 Mar 2021 17:31:42 +0000 (18:31 +0100)] 
BSD: Fix build with BSD grep.

Thanks to carlocab.

4 years agoFix .bat file builds.
Mike Pall [Fri, 26 Mar 2021 17:14:59 +0000 (18:14 +0100)] 
Fix .bat file builds.

4 years agoOSX: Fix build by hardcoding external frame unwinding.
Mike Pall [Thu, 25 Mar 2021 18:16:56 +0000 (19:16 +0100)] 
OSX: Fix build by hardcoding external frame unwinding.

Apparently they can't even get 'grep' right, let alone a keyboard.

4 years agoString buffers, part 1: object serialization.
Mike Pall [Thu, 25 Mar 2021 01:21:31 +0000 (02:21 +0100)] 
String buffers, part 1: object serialization.

Sponsored by fmad.io.

4 years agoReorganize lightuserdata interning code.
Mike Pall [Thu, 25 Mar 2021 01:15:26 +0000 (02:15 +0100)] 
Reorganize lightuserdata interning code.

4 years agoUpgrade docs to HTML5. It's about time.
Mike Pall [Thu, 25 Mar 2021 01:09:15 +0000 (02:09 +0100)] 
Upgrade docs to HTML5. It's about time.

4 years agoFFI: Handle zero-fill of struct-of-NYI.
Mike Pall [Tue, 23 Mar 2021 01:35:07 +0000 (02:35 +0100)] 
FFI: Handle zero-fill of struct-of-NYI.

4 years agoARM64: Improve generation of immediates.
Mike Pall [Tue, 23 Mar 2021 01:08:44 +0000 (02:08 +0100)] 
ARM64: Improve generation of immediates.

4 years agoMerge branch 'master' into v2.1
Mike Pall [Mon, 22 Mar 2021 23:48:27 +0000 (00:48 +0100)] 
Merge branch 'master' into v2.1

4 years agoDetect inconsistent renames even in the presence of sunk values.
Mike Pall [Mon, 22 Mar 2021 23:43:07 +0000 (00:43 +0100)] 
Detect inconsistent renames even in the presence of sunk values.

Reported by Igor Munkin.

4 years agoHandle on-trace OOM errors from helper functions.
Mike Pall [Mon, 22 Mar 2021 23:35:46 +0000 (00:35 +0100)] 
Handle on-trace OOM errors from helper functions.

4 years agoUse weak guards for on-trace allocations.
Mike Pall [Mon, 22 Mar 2021 23:33:34 +0000 (00:33 +0100)] 
Use weak guards for on-trace allocations.

4 years agoPPC: Fix GG_State loads.
Mike Pall [Mon, 22 Mar 2021 23:28:03 +0000 (00:28 +0100)] 
PPC: Fix GG_State loads.

4 years agoMIPS: Fix handling of long-range spare jumps.
Mike Pall [Mon, 22 Mar 2021 23:26:08 +0000 (00:26 +0100)] 
MIPS: Fix handling of long-range spare jumps.

4 years agoCleanup and enable external unwinding for more platforms.
Mike Pall [Mon, 22 Mar 2021 23:22:34 +0000 (00:22 +0100)] 
Cleanup and enable external unwinding for more platforms.

4 years agoMerge branch 'master' into v2.1
Mike Pall [Thu, 11 Mar 2021 14:33:44 +0000 (15:33 +0100)] 
Merge branch 'master' into v2.1

4 years agoRemove specific version numbers from the docs.
Mike Pall [Thu, 11 Mar 2021 14:32:28 +0000 (15:32 +0100)] 
Remove specific version numbers from the docs.

4 years agoiOS: Don't use getentropy() since it's disallowed in the App Store.
Mike Pall [Wed, 10 Mar 2021 19:19:04 +0000 (20:19 +0100)] 
iOS: Don't use getentropy() since it's disallowed in the App Store.

Reported by MoNTE48.

4 years agoLinux/ARM64: Make mremap() non-moving due to VA space woes.
Mike Pall [Wed, 10 Mar 2021 18:58:31 +0000 (19:58 +0100)] 
Linux/ARM64: Make mremap() non-moving due to VA space woes.

This reduces overall performance on ARM64, but we have no choice.
Linux kernel default userspace VA is 48 bit, but we'd need 47 bit.
mremap() ignores address hints due to a kernel API issue. The mapping
may move to an undesired address which will cause an assert or crash.

Reported by Raymond W. Ko.

4 years agoMerge branch 'master' into v2.1
Mike Pall [Tue, 12 Jan 2021 12:00:48 +0000 (13:00 +0100)] 
Merge branch 'master' into v2.1

4 years agoClarify macOS build instructions.
Mike Pall [Tue, 12 Jan 2021 11:59:54 +0000 (12:59 +0100)] 
Clarify macOS build instructions.

4 years agoMerge branch 'master' into v2.1
Mike Pall [Sat, 2 Jan 2021 20:56:07 +0000 (21:56 +0100)] 
Merge branch 'master' into v2.1

4 years agoBump copyright date.
Mike Pall [Sat, 2 Jan 2021 20:49:41 +0000 (21:49 +0100)] 
Bump copyright date.

4 years agoFix trace exit register dump for some archs.
Mike Pall [Sat, 2 Jan 2021 20:37:51 +0000 (21:37 +0100)] 
Fix trace exit register dump for some archs.

4 years agoMerge branch 'master' into v2.1
Mike Pall [Sat, 2 Jan 2021 20:32:09 +0000 (21:32 +0100)] 
Merge branch 'master' into v2.1

4 years agoDocumentation cleanup.
Mike Pall [Sat, 2 Jan 2021 20:17:01 +0000 (21:17 +0100)] 
Documentation cleanup.

4 years agoMerge branch 'master' into v2.1
Mike Pall [Mon, 28 Dec 2020 11:40:20 +0000 (12:40 +0100)] 
Merge branch 'master' into v2.1

4 years agoFFI: Fix recording of union initialization.
Mike Pall [Mon, 28 Dec 2020 11:37:36 +0000 (12:37 +0100)] 
FFI: Fix recording of union initialization.

Thanks to Alex Shpilkin.

4 years agoMerge branch 'master' into v2.1
Mike Pall [Fri, 4 Dec 2020 10:17:45 +0000 (11:17 +0100)] 
Merge branch 'master' into v2.1

4 years agox64: Fix __call metamethod return dispatch.
Mike Pall [Fri, 4 Dec 2020 10:16:55 +0000 (11:16 +0100)] 
x64: Fix __call metamethod return dispatch.

Reported by Igor Munkin.

4 years agoFix binary number literal parsing.
Mike Pall [Mon, 30 Nov 2020 14:48:34 +0000 (15:48 +0100)] 
Fix binary number literal parsing.

Reported by Egor Skriptunoff.

4 years agoFix warning.
Mike Pall [Mon, 30 Nov 2020 14:47:14 +0000 (15:47 +0100)] 
Fix warning.

4 years agoMerge branch 'master' into v2.1
Mike Pall [Mon, 30 Nov 2020 14:46:56 +0000 (15:46 +0100)] 
Merge branch 'master' into v2.1

4 years agoFix warning.
Mike Pall [Mon, 30 Nov 2020 14:46:07 +0000 (15:46 +0100)] 
Fix warning.

4 years agoMerge branch 'master' into v2.1
Mike Pall [Mon, 12 Oct 2020 14:18:02 +0000 (16:18 +0200)] 
Merge branch 'master' into v2.1

4 years agoMinor changes and https-ify links.
Mike Pall [Mon, 12 Oct 2020 14:11:32 +0000 (16:11 +0200)] 
Minor changes and https-ify links.

4 years agoMerge branch 'master' into v2.1
Mike Pall [Mon, 12 Oct 2020 13:51:31 +0000 (15:51 +0200)] 
Merge branch 'master' into v2.1

4 years agoFix snapshot PC when linking to BC_JLOOP that was a BC_RET*.
Mike Pall [Mon, 12 Oct 2020 13:45:05 +0000 (15:45 +0200)] 
Fix snapshot PC when linking to BC_JLOOP that was a BC_RET*.

Reported by Arseny Vakhrushev.
Fix contributed by Peter Cawley.

4 years agoMerge branch 'master' into v2.1
Mike Pall [Mon, 12 Oct 2020 13:43:18 +0000 (15:43 +0200)] 
Merge branch 'master' into v2.1

4 years agoEnsure full init of IR_NOP instructions.
Mike Pall [Mon, 12 Oct 2020 13:40:28 +0000 (15:40 +0200)] 
Ensure full init of IR_NOP instructions.

4 years agoAdd support for full-range 64 bit lightuserdata.
Mike Pall [Tue, 29 Sep 2020 23:31:27 +0000 (01:31 +0200)] 
Add support for full-range 64 bit lightuserdata.

4 years agoARM64: Followup fix for exit branch patching.
Mike Pall [Mon, 28 Sep 2020 16:17:58 +0000 (18:17 +0200)] 
ARM64: Followup fix for exit branch patching.

4 years agoMerge branch 'master' into v2.1
Mike Pall [Sun, 27 Sep 2020 15:20:37 +0000 (17:20 +0200)] 
Merge branch 'master' into v2.1

4 years agoPrevent patching of the GC exit check branch.
Mike Pall [Sun, 27 Sep 2020 14:44:13 +0000 (16:44 +0200)] 
Prevent patching of the GC exit check branch.

Reported by Arseny Vakhrushev.

4 years agox64: Fix 64 bit shift code generation.
Mike Pall [Fri, 25 Sep 2020 20:49:23 +0000 (22:49 +0200)] 
x64: Fix 64 bit shift code generation.

Reported by Philipp Kutin.
Fix contributed by Peter Cawley.

4 years agoAnother fix for lua_yield() from C hook.
Mike Pall [Tue, 22 Sep 2020 21:37:43 +0000 (23:37 +0200)] 
Another fix for lua_yield() from C hook.

Reported by Jason Carr.

4 years agoMerge branch 'master' into v2.1
Mike Pall [Tue, 22 Sep 2020 10:01:09 +0000 (12:01 +0200)] 
Merge branch 'master' into v2.1

4 years agoMark CONV as non-weak, to prevent elimination of its side-effect.
Mike Pall [Tue, 22 Sep 2020 09:56:06 +0000 (11:56 +0200)] 
Mark CONV as non-weak, to prevent elimination of its side-effect.

An unused guarded CONV int.num cannot be omitted in general.

4 years agoFix lua_yield() from C hook.
Mike Pall [Mon, 14 Sep 2020 23:02:24 +0000 (01:02 +0200)] 
Fix lua_yield() from C hook.

Reported by Jason Carr.

4 years agoMerge branch 'master' into v2.1
Mike Pall [Sat, 12 Sep 2020 15:36:04 +0000 (17:36 +0200)] 
Merge branch 'master' into v2.1

4 years agoDynASM/x86: Fix VREG support.
Mike Pall [Sat, 12 Sep 2020 15:32:30 +0000 (17:32 +0200)] 
DynASM/x86: Fix VREG support.

4 years agoMerge branch 'master' into v2.1
Mike Pall [Sat, 5 Sep 2020 18:05:44 +0000 (20:05 +0200)] 
Merge branch 'master' into v2.1

4 years agoLimit path length passed to C library loader.
Mike Pall [Sat, 5 Sep 2020 18:02:54 +0000 (20:02 +0200)] 
Limit path length passed to C library loader.

4 years agoLJ_GC64: Always snapshot functions for non-base frames.
Mike Pall [Thu, 27 Aug 2020 16:05:32 +0000 (18:05 +0200)] 
LJ_GC64: Always snapshot functions for non-base frames.

Reported by Arseny Vakhrushev.
Analysis and fix contributed by Peter Cawley.

5 years agoMerge branch 'master' into v2.1
Mike Pall [Sun, 9 Aug 2020 21:12:48 +0000 (23:12 +0200)] 
Merge branch 'master' into v2.1

5 years agoCall error function on rethrow after trace exit.
Mike Pall [Sun, 9 Aug 2020 20:50:31 +0000 (22:50 +0200)] 
Call error function on rethrow after trace exit.

5 years agoMerge branch 'master' into v2.1
Mike Pall [Sun, 9 Aug 2020 16:19:19 +0000 (18:19 +0200)] 
Merge branch 'master' into v2.1

5 years agoFix handling of errors during snapshot restore.
Mike Pall [Sun, 9 Aug 2020 16:08:38 +0000 (18:08 +0200)] 
Fix handling of errors during snapshot restore.

5 years agoMerge branch 'master' into v2.1
Mike Pall [Wed, 5 Aug 2020 13:26:59 +0000 (15:26 +0200)] 
Merge branch 'master' into v2.1

5 years agoARM: Ensure relative GG_State element alignment differently.
Mike Pall [Wed, 5 Aug 2020 13:21:00 +0000 (15:21 +0200)] 
ARM: Ensure relative GG_State element alignment differently.

Thanks to jojo59516 and dwing4g.

5 years agoMerge branch 'master' into v2.1
Mike Pall [Wed, 5 Aug 2020 12:17:41 +0000 (14:17 +0200)] 
Merge branch 'master' into v2.1

5 years agoFix Makefile dependencies.
Mike Pall [Wed, 5 Aug 2020 12:14:58 +0000 (14:14 +0200)] 
Fix Makefile dependencies.

Thanks to Stefanos Chaliasos.

5 years agoHandle old OSX/iOS without getentropy().
Mike Pall [Mon, 13 Jul 2020 09:54:08 +0000 (11:54 +0200)] 
Handle old OSX/iOS without getentropy().

5 years agoMerge branch 'master' into v2.1
Mike Pall [Sun, 12 Jul 2020 13:16:09 +0000 (15:16 +0200)] 
Merge branch 'master' into v2.1

5 years agoAdd FAQ about sandboxing. Minor fixes.
Mike Pall [Sun, 12 Jul 2020 13:09:55 +0000 (15:09 +0200)] 
Add FAQ about sandboxing. Minor fixes.

5 years agoMerge branch 'master' into v2.1
Mike Pall [Sun, 12 Jul 2020 12:33:01 +0000 (14:33 +0200)] 
Merge branch 'master' into v2.1