]> git.ipfire.org Git - thirdparty/LuaJIT.git/log
thirdparty/LuaJIT.git
9 years agoRevert "OSX: Switch to Clang as the default compiler."
Mike Pall [Sun, 31 Jul 2016 11:26:58 +0000 (13:26 +0200)] 
Revert "OSX: Switch to Clang as the default compiler."

It breaks cross-compilation to Android.
And host "gcc" aliases to "clang", anyway.

9 years agoAdjust comment with defines.
Mike Pall [Sun, 17 Jul 2016 14:05:25 +0000 (16:05 +0200)] 
Adjust comment with defines.

9 years agoFix for cdata vs. non-cdata arithmetics/comparisons.
Mike Pall [Sun, 17 Jul 2016 14:01:10 +0000 (16:01 +0200)] 
Fix for cdata vs. non-cdata arithmetics/comparisons.

Thanks to Vyacheslav Egorov.

9 years agoFix unused vars etc. in internal Lua files.
Mike Pall [Sun, 17 Jul 2016 12:29:03 +0000 (14:29 +0200)] 
Fix unused vars etc. in internal Lua files.

Thanks to François Perrad.

9 years agoDrop leftover regs in 'for' iterator assignment, too.
Mike Pall [Mon, 27 Jun 2016 12:09:36 +0000 (14:09 +0200)] 
Drop leftover regs in 'for' iterator assignment, too.

9 years agoFix PHI remarking in SINK pass.
Mike Pall [Sun, 5 Jun 2016 10:53:37 +0000 (12:53 +0200)] 
Fix PHI remarking in SINK pass.

Thanks to Vyacheslav Egorov.

9 years agoFix Valgrind suppressions.
Mike Pall [Fri, 3 Jun 2016 04:39:52 +0000 (06:39 +0200)] 
Fix Valgrind suppressions.

9 years agoDon't try to record outermost pcall() return to lower frame.
Mike Pall [Fri, 3 Jun 2016 02:26:08 +0000 (04:26 +0200)] 
Don't try to record outermost pcall() return to lower frame.

9 years agox86: Don't spill an explicit REF_BASE in the IR.
Mike Pall [Mon, 23 May 2016 04:24:19 +0000 (06:24 +0200)] 
x86: Don't spill an explicit REF_BASE in the IR.

Thanks to Vyacheslav Egorov.

9 years agoAdd guard for obscure aliasing between open upvalues and SSA slots.
Mike Pall [Fri, 20 May 2016 18:24:06 +0000 (20:24 +0200)] 
Add guard for obscure aliasing between open upvalues and SSA slots.

Thanks to Peter Cawley.

9 years agoRemove assumption that lj_math_random_step() doesn't clobber FPRs.
Mike Pall [Fri, 20 May 2016 17:43:34 +0000 (19:43 +0200)] 
Remove assumption that lj_math_random_step() doesn't clobber FPRs.

9 years agox86/x64: Fix instruction length decoder.
Mike Pall [Fri, 6 May 2016 10:08:00 +0000 (12:08 +0200)] 
x86/x64: Fix instruction length decoder.

Thanks to Peter Cawley.

9 years agoFix GCC 6 -Wmisleading-indentation warnings.
Mike Pall [Sun, 24 Apr 2016 15:10:24 +0000 (17:10 +0200)] 
Fix GCC 6 -Wmisleading-indentation warnings.

Thanks to Roman Tsisyk.

9 years agoFix handling of non-numeric strings in arithmetic coercions.
Mike Pall [Thu, 21 Apr 2016 15:00:58 +0000 (17:00 +0200)] 
Fix handling of non-numeric strings in arithmetic coercions.

Thanks to Vyacheslav Egorov.

9 years agoWhitespace.
Mike Pall [Mon, 18 Apr 2016 11:40:49 +0000 (13:40 +0200)] 
Whitespace.

9 years agox86/x64: Search for exit jumps with instruction length decoder.
Mike Pall [Mon, 18 Apr 2016 09:16:13 +0000 (11:16 +0200)] 
x86/x64: Search for exit jumps with instruction length decoder.

Contributed by Peter Cawley.

9 years agoMIPS: Fix BC_ISNEXT fallback path.
Mike Pall [Wed, 13 Apr 2016 22:14:42 +0000 (00:14 +0200)] 
MIPS: Fix BC_ISNEXT fallback path.

Thanks to RT-RK.com.

9 years agoFix recording of select(n, ...) with off-trace varargs
Mike Pall [Sun, 3 Apr 2016 17:12:28 +0000 (19:12 +0200)] 
Fix recording of select(n, ...) with off-trace varargs

Thanks to Peter Cawley.

9 years agoCygwin: Allow cross-builds to non-Cygwin targets.
Mike Pall [Sun, 3 Apr 2016 17:07:19 +0000 (19:07 +0200)] 
Cygwin: Allow cross-builds to non-Cygwin targets.

9 years agoMIPS: Fix use of ffgccheck delay slots in interpreter.
Mike Pall [Wed, 30 Mar 2016 14:26:27 +0000 (16:26 +0200)] 
MIPS: Fix use of ffgccheck delay slots in interpreter.

9 years agoWindows: Remove intermediate files at end of build.
Mike Pall [Mon, 28 Mar 2016 20:23:37 +0000 (22:23 +0200)] 
Windows: Remove intermediate files at end of build.

9 years agoFix display of NULL (light)userdata in -jdump.
Mike Pall [Mon, 28 Mar 2016 20:15:13 +0000 (22:15 +0200)] 
Fix display of NULL (light)userdata in -jdump.

Thanks to Peter Cawley.

9 years agoFix install for cross-builds.
Mike Pall [Tue, 22 Mar 2016 21:16:12 +0000 (22:16 +0100)] 
Fix install for cross-builds.

9 years agoFix compiler warnings.
Mike Pall [Tue, 22 Mar 2016 19:40:41 +0000 (20:40 +0100)] 
Fix compiler warnings.

Thanks to Demetri Obenour.

9 years agoBump copyright date to 2016.
Mike Pall [Thu, 3 Mar 2016 11:02:22 +0000 (12:02 +0100)] 
Bump copyright date to 2016.

9 years agoDon't allocate unused 2nd result register in JIT compiler backend.
Mike Pall [Wed, 10 Feb 2016 17:51:02 +0000 (18:51 +0100)] 
Don't allocate unused 2nd result register in JIT compiler backend.

9 years agoFFI: Fix SPLIT pass for CONV i64.u64.
Mike Pall [Thu, 26 Nov 2015 21:25:13 +0000 (22:25 +0100)] 
FFI: Fix SPLIT pass for CONV i64.u64.

Thanks to Vyacheslav Egorov.

9 years agoDynASM/x86: Add rdpmc instruction.
Mike Pall [Wed, 4 Nov 2015 13:04:19 +0000 (14:04 +0100)] 
DynASM/x86: Add rdpmc instruction.

Thanks to Cosmin Apreutesei.

9 years agoExtend Valgrind suppressions for non-inlined C code.
Mike Pall [Wed, 4 Nov 2015 13:01:37 +0000 (14:01 +0100)] 
Extend Valgrind suppressions for non-inlined C code.

Thanks to Dennis Schridde.

10 years agoUpdate build instructions.
Mike Pall [Sat, 24 Oct 2015 17:20:33 +0000 (19:20 +0200)] 
Update build instructions.

10 years agoOSX: Switch to Clang as the default compiler.
Mike Pall [Sat, 24 Oct 2015 17:10:40 +0000 (19:10 +0200)] 
OSX: Switch to Clang as the default compiler.

10 years agoiOS: Disable os.execute() when building for iOS >= 8.0.
Mike Pall [Sat, 24 Oct 2015 17:02:15 +0000 (19:02 +0200)] 
iOS: Disable os.execute() when building for iOS >= 8.0.

Thanks to Vyacheslav Egorov.

10 years agoDynASM/x86: Restrict shld/shrd to operands with same width.
Mike Pall [Sat, 24 Oct 2015 16:15:44 +0000 (18:15 +0200)] 
DynASM/x86: Restrict shld/shrd to operands with same width.

Thanks to Peter Cawley.

10 years agoDynASM/x86: Fix some SSE instruction templates.
Mike Pall [Sat, 24 Oct 2015 16:12:40 +0000 (18:12 +0200)] 
DynASM/x86: Fix some SSE instruction templates.

Thanks to Peter Cawley.

10 years agoFFI: Fix ipairs() recording.
Mike Pall [Sat, 24 Oct 2015 15:59:44 +0000 (17:59 +0200)] 
FFI: Fix ipairs() recording.

Thanks to Vyacheslav Egorov.

10 years agoDrop marks from replayed instructions when sinking.
Mike Pall [Thu, 15 Oct 2015 00:28:04 +0000 (02:28 +0200)] 
Drop marks from replayed instructions when sinking.

Reported by Vyacheslav Egorov.

10 years agoFlush symbol tables in jit.dump on trace flush.
Mike Pall [Thu, 1 Oct 2015 14:32:30 +0000 (16:32 +0200)] 
Flush symbol tables in jit.dump on trace flush.

10 years agoFix unsinking check.
Mike Pall [Thu, 1 Oct 2015 14:12:48 +0000 (16:12 +0200)] 
Fix unsinking check.

Reported by Elias Hogstvedt. Debugged and fixed by Vyacheslav Egorov.

10 years agoFix Cygwin support. Note: this is not a supported target.
Mike Pall [Sun, 20 Sep 2015 17:17:02 +0000 (19:17 +0200)] 
Fix Cygwin support. Note: this is not a supported target.

Contributed by Yaakov Selkowitz.

10 years agoProperly handle OOM in trace_save().
Mike Pall [Wed, 19 Aug 2015 23:10:30 +0000 (01:10 +0200)] 
Properly handle OOM in trace_save().

Thanks to Vyacheslav Egorov.

10 years agoFix NYICF error message.
Mike Pall [Wed, 19 Aug 2015 22:49:20 +0000 (00:49 +0200)] 
Fix NYICF error message.

Thanks to Vyacheslav Egorov.

10 years agoFFI: Don't propagate qualifiers into subtypes of complex. origin/HEAD origin/master
Mike Pall [Fri, 17 Jul 2015 21:14:21 +0000 (23:14 +0200)] 
FFI: Don't propagate qualifiers into subtypes of complex.

10 years agoLimit number of arguments given to io.lines() and fp:lines().
Mike Pall [Fri, 10 Jul 2015 01:42:51 +0000 (03:42 +0200)] 
Limit number of arguments given to io.lines() and fp:lines().

10 years agoFix narrowing of TOBIT.
Mike Pall [Wed, 10 Jun 2015 14:14:41 +0000 (16:14 +0200)] 
Fix narrowing of TOBIT.

10 years agox64: Allow building without external unwinder.
Mike Pall [Tue, 9 Jun 2015 19:56:58 +0000 (21:56 +0200)] 
x64: Allow building without external unwinder.

Required for PS4 SDK 2.5. Thanks to James Park.

10 years agoRELEASE LuaJIT-2.0.4 v2.0.4
Mike Pall [Thu, 14 May 2015 18:29:31 +0000 (20:29 +0200)] 
RELEASE LuaJIT-2.0.4

10 years agoUpdate changelog.
Mike Pall [Thu, 14 May 2015 18:15:09 +0000 (20:15 +0200)] 
Update changelog.

10 years agox86/x64: Fix argument check for bit shifts.
Mike Pall [Mon, 4 May 2015 04:36:16 +0000 (06:36 +0200)] 
x86/x64: Fix argument check for bit shifts.

10 years agoFix stack check in narrowing optimization.
Mike Pall [Tue, 28 Apr 2015 18:28:16 +0000 (20:28 +0200)] 
Fix stack check in narrowing optimization.

Thanks to Robert Nix.

10 years agoDoc cleanup.
Mike Pall [Wed, 11 Mar 2015 16:47:24 +0000 (17:47 +0100)] 
Doc cleanup.

10 years agoFix Lua/C API typecheck error for special indexes.
Mike Pall [Thu, 5 Mar 2015 11:19:11 +0000 (12:19 +0100)] 
Fix Lua/C API typecheck error for special indexes.

10 years agoFFI: Fix FOLD rule for TOBIT + CONV num.u32.
Mike Pall [Mon, 2 Mar 2015 16:31:18 +0000 (17:31 +0100)] 
FFI: Fix FOLD rule for TOBIT + CONV num.u32.

Thanks to Jiale Zhi.

10 years agoARM: Handle more arch defines.
Mike Pall [Wed, 25 Feb 2015 17:10:54 +0000 (18:10 +0100)] 
ARM: Handle more arch defines.

10 years agoProperly fail unsupported cross-compile to MIPS64.
Mike Pall [Wed, 25 Feb 2015 17:02:31 +0000 (18:02 +0100)] 
Properly fail unsupported cross-compile to MIPS64.

10 years agoFix string to number conversion.
Mike Pall [Sun, 22 Feb 2015 22:07:49 +0000 (23:07 +0100)] 
Fix string to number conversion.

Thanks to Lesley De Cruz.

10 years agox86/x64: Fix code generation for fused test/arith ops.
Mike Pall [Sat, 21 Feb 2015 20:44:41 +0000 (21:44 +0100)] 
x86/x64: Fix code generation for fused test/arith ops.

Thanks to Alexander Nasonov and AFL.

10 years agoFFI: Prevent DSE across ffi.string().
Mike Pall [Wed, 18 Feb 2015 15:00:15 +0000 (16:00 +0100)] 
FFI: Prevent DSE across ffi.string().

10 years agoFix lexer error for chunks without tokens.
Mike Pall [Mon, 2 Feb 2015 10:03:39 +0000 (11:03 +0100)] 
Fix lexer error for chunks without tokens.

10 years agoDon't compile IR_RETF after CALLT to ff with-side effects.
Mike Pall [Sat, 17 Jan 2015 13:50:41 +0000 (14:50 +0100)] 
Don't compile IR_RETF after CALLT to ff with-side effects.

10 years agoOpenBSD/x86: Better executable memory allocation for W^X mode.
Mike Pall [Sat, 17 Jan 2015 11:55:04 +0000 (12:55 +0100)] 
OpenBSD/x86: Better executable memory allocation for W^X mode.

10 years agoBump copyright date to 2015.
Mike Pall [Mon, 5 Jan 2015 22:59:31 +0000 (23:59 +0100)] 
Bump copyright date to 2015.

10 years agoFix BC_UCLO/BC_JMP join optimization in Lua parser.
Mike Pall [Mon, 5 Jan 2015 22:39:37 +0000 (23:39 +0100)] 
Fix BC_UCLO/BC_JMP join optimization in Lua parser.

10 years agoARM: Minor interpreter optimization.
Mike Pall [Sun, 4 Jan 2015 23:05:38 +0000 (00:05 +0100)] 
ARM: Minor interpreter optimization.

10 years agox86: Minor interpreter optimization.
Mike Pall [Sun, 4 Jan 2015 23:04:40 +0000 (00:04 +0100)] 
x86: Minor interpreter optimization.

10 years agoFix docs.
Mike Pall [Sun, 4 Jan 2015 21:58:11 +0000 (22:58 +0100)] 
Fix docs.

10 years agoDynASM/ARM: Fix rollback for variant templates.
Mike Pall [Sat, 27 Dec 2014 05:08:36 +0000 (06:08 +0100)] 
DynASM/ARM: Fix rollback for variant templates.

10 years agoMIPS: Fix excess stack growth in interpreter.
Mike Pall [Sat, 27 Dec 2014 05:06:07 +0000 (06:06 +0100)] 
MIPS: Fix excess stack growth in interpreter.

10 years agoPPC: Fix excess stack growth in interpreter.
Mike Pall [Sat, 27 Dec 2014 05:05:50 +0000 (06:05 +0100)] 
PPC: Fix excess stack growth in interpreter.

10 years agoARM: Fix write barrier check in BC_USETS.
Mike Pall [Sat, 27 Dec 2014 05:03:06 +0000 (06:03 +0100)] 
ARM: Fix write barrier check in BC_USETS.

10 years agoARM: Fix excess stack growth in interpreter.
Mike Pall [Sat, 27 Dec 2014 04:59:16 +0000 (05:59 +0100)] 
ARM: Fix excess stack growth in interpreter.

10 years agoFix corner case in string to number conversion.
Mike Pall [Sat, 27 Dec 2014 04:46:51 +0000 (05:46 +0100)] 
Fix corner case in string to number conversion.

10 years agox86: Fix argument checks for ipairs() iterator.
Mike Pall [Sat, 20 Dec 2014 00:05:06 +0000 (01:05 +0100)] 
x86: Fix argument checks for ipairs() iterator.

10 years agoGracefully handle lua_error() for a suspended coroutine.
Mike Pall [Mon, 15 Dec 2014 00:55:45 +0000 (01:55 +0100)] 
Gracefully handle lua_error() for a suspended coroutine.

Thanks to Sergei Zhirikov.

10 years agoAvoid error messages when building with Clang.
Mike Pall [Mon, 8 Dec 2014 01:07:05 +0000 (02:07 +0100)] 
Avoid error messages when building with Clang.

10 years agoDynASM/ARM: Fix description shown for multi-element templates.
Mike Pall [Wed, 3 Dec 2014 13:09:17 +0000 (14:09 +0100)] 
DynASM/ARM: Fix description shown for multi-element templates.

10 years agoFix snapshot #0 handling for traces with a stack check on entry.
Mike Pall [Fri, 28 Nov 2014 19:20:12 +0000 (20:20 +0100)] 
Fix snapshot #0 handling for traces with a stack check on entry.

10 years agoFFI: No meta fallback when indexing pointer to incomplete struct.
Mike Pall [Mon, 3 Nov 2014 20:34:24 +0000 (21:34 +0100)] 
FFI: No meta fallback when indexing pointer to incomplete struct.

11 years agoFix fused constant loads under high register pressure.
Mike Pall [Wed, 8 Oct 2014 20:04:51 +0000 (22:04 +0200)] 
Fix fused constant loads under high register pressure.

11 years agoFix DragonFly build (unsupported).
Mike Pall [Tue, 7 Oct 2014 14:17:29 +0000 (16:17 +0200)] 
Fix DragonFly build (unsupported).

Thanks to Robin Hahling, Alex Hornung and Joris Giovannangeli.

11 years agoDynASM/x86: Add fldenv, f[n]stenv, fxsave, fxrstor opcodes.
Mike Pall [Mon, 22 Sep 2014 11:44:28 +0000 (13:44 +0200)] 
DynASM/x86: Add fldenv, f[n]stenv, fxsave, fxrstor opcodes.

Thanks to Cosmin Apreutesei.

11 years agoDynASM/x86: Add shld/shrd opcodes.
Mike Pall [Sun, 21 Sep 2014 16:03:47 +0000 (18:03 +0200)] 
DynASM/x86: Add shld/shrd opcodes.

Thanks to Peter Cawley.

11 years agoFFI: Fix initialization of unions of subtypes.
Mike Pall [Mon, 8 Sep 2014 21:37:22 +0000 (23:37 +0200)] 
FFI: Fix initialization of unions of subtypes.

Thanks to Peter Colberg.

11 years agoFFI: Fix for cdata vs. non-cdata arithmetic and comparisons.
Mike Pall [Mon, 8 Sep 2014 21:28:02 +0000 (23:28 +0200)] 
FFI: Fix for cdata vs. non-cdata arithmetic and comparisons.

Thanks to Roman Tsisyk.

11 years agoFFI: Fix __index/__newindex metamethod resolution for ctypes.
Mike Pall [Tue, 5 Aug 2014 18:15:52 +0000 (20:15 +0200)] 
FFI: Fix __index/__newindex metamethod resolution for ctypes.

11 years agoInvalidate backpropagation cache after DCE.
Mike Pall [Thu, 24 Jul 2014 11:08:02 +0000 (13:08 +0200)] 
Invalidate backpropagation cache after DCE.

11 years agoFFI: Fix compilation of reference field access.
Mike Pall [Fri, 4 Jul 2014 16:17:32 +0000 (18:17 +0200)] 
FFI: Fix compilation of reference field access.

11 years agoFix ABC elimination.
Mike Pall [Tue, 1 Jul 2014 15:53:40 +0000 (17:53 +0200)] 
Fix ABC elimination.

11 years agoTypo.
Mike Pall [Fri, 13 Jun 2014 09:16:39 +0000 (11:16 +0200)] 
Typo.

11 years agoFFI: Fix frame traversal for backtraces with FFI callbacks.
Mike Pall [Thu, 12 Jun 2014 08:58:22 +0000 (10:58 +0200)] 
FFI: Fix frame traversal for backtraces with FFI callbacks.

11 years agox86: lj_math_random_step() clobbers XMM regs on OSX Clang.
Mike Pall [Wed, 11 Jun 2014 20:44:08 +0000 (22:44 +0200)] 
x86: lj_math_random_step() clobbers XMM regs on OSX Clang.

11 years agoFix debug info for main chunk of stripped bytecode.
Mike Pall [Wed, 11 Jun 2014 08:19:53 +0000 (10:19 +0200)] 
Fix debug info for main chunk of stripped bytecode.

11 years agoFix compatibility issues with Illumos.
Mike Pall [Wed, 28 May 2014 13:46:26 +0000 (15:46 +0200)] 
Fix compatibility issues with Illumos.

Thanks to Theo Schlossnagle.

11 years agoPPC: Fix red zone overflow in machine code generation.
Mike Pall [Tue, 27 May 2014 13:58:04 +0000 (15:58 +0200)] 
PPC: Fix red zone overflow in machine code generation.

11 years agox86: Fix code generation for unused result of math.random().
Mike Pall [Tue, 27 May 2014 13:25:34 +0000 (15:25 +0200)] 
x86: Fix code generation for unused result of math.random().

11 years agoFix FOLD rule for string.sub(s, ...) == k.
Mike Pall [Tue, 20 May 2014 09:41:32 +0000 (11:41 +0200)] 
Fix FOLD rule for string.sub(s, ...) == k.

11 years agoFFI: Fix recording of indexing a struct pointer ctype object itself.
Mike Pall [Thu, 15 May 2014 15:28:08 +0000 (17:28 +0200)] 
FFI: Fix recording of indexing a struct pointer ctype object itself.

11 years agoFix FOLD rule for STRREF of SNEW.
Mike Pall [Thu, 15 May 2014 15:03:28 +0000 (17:03 +0200)] 
Fix FOLD rule for STRREF of SNEW.

11 years agoFix frame traversal while searching for error function.
Mike Pall [Mon, 12 May 2014 12:35:30 +0000 (14:35 +0200)] 
Fix frame traversal while searching for error function.

11 years agox64: Workaround for MSVC build issue.
Mike Pall [Tue, 6 May 2014 12:47:37 +0000 (14:47 +0200)] 
x64: Workaround for MSVC build issue.

11 years agoFFI: Another fix for cdata equality comparisons.
Mike Pall [Tue, 6 May 2014 12:31:31 +0000 (14:31 +0200)] 
FFI: Another fix for cdata equality comparisons.