]> git.ipfire.org Git - thirdparty/LuaJIT.git/log
thirdparty/LuaJIT.git
13 years agoUpdate cross-compilation docs.
Mike Pall [Thu, 9 Aug 2012 11:15:28 +0000 (13:15 +0200)] 
Update cross-compilation docs.

13 years agoARM: Enable VFP and hard-float ABI support.
Mike Pall [Thu, 9 Aug 2012 11:13:39 +0000 (13:13 +0200)] 
ARM: Enable VFP and hard-float ABI support.

13 years agoARM: Add VFP and hard-float ABI variants to JIT compiler.
Mike Pall [Thu, 9 Aug 2012 11:11:43 +0000 (13:11 +0200)] 
ARM: Add VFP and hard-float ABI variants to JIT compiler.

13 years agoNever compile DWARF unwinder on Windows.
Mike Pall [Thu, 9 Aug 2012 11:09:47 +0000 (13:09 +0200)] 
Never compile DWARF unwinder on Windows.

13 years agoFFI: Compile ffi.typeof(cdata).
Mike Pall [Wed, 8 Aug 2012 19:01:36 +0000 (21:01 +0200)] 
FFI: Compile ffi.typeof(cdata).

Thanks to Robert G. Jakabosky.

13 years agoFFI: Compile assignments from enums.
Mike Pall [Wed, 8 Aug 2012 18:35:02 +0000 (20:35 +0200)] 
FFI: Compile assignments from enums.

Thanks to Robert G. Jakabosky.

13 years agoAdd missing change for last commit.
Mike Pall [Sun, 5 Aug 2012 17:13:35 +0000 (19:13 +0200)] 
Add missing change for last commit.

13 years agoFFI: Improve error message for bad indexing attempts.
Mike Pall [Sun, 5 Aug 2012 15:26:01 +0000 (17:26 +0200)] 
FFI: Improve error message for bad indexing attempts.

13 years agoFFI: Initialize all fields of standard types.
Mike Pall [Sun, 5 Aug 2012 07:33:15 +0000 (09:33 +0200)] 
FFI: Initialize all fields of standard types.

13 years agoFFI: Fix alignment of C call structure.
Mike Pall [Thu, 2 Aug 2012 13:13:28 +0000 (15:13 +0200)] 
FFI: Fix alignment of C call structure.

13 years agoARM: Add hard-float ABI support to the FFI (interpreter).
Mike Pall [Mon, 30 Jul 2012 17:00:52 +0000 (19:00 +0200)] 
ARM: Add hard-float ABI support to the FFI (interpreter).

13 years agoARM: Add VFP and hard-float ABI variants to interpreter.
Mike Pall [Mon, 30 Jul 2012 16:59:13 +0000 (18:59 +0200)] 
ARM: Add VFP and hard-float ABI variants to interpreter.

13 years agoOnly replay sunk stores up to the snapshot reference.
Mike Pall [Sun, 29 Jul 2012 19:37:45 +0000 (21:37 +0200)] 
Only replay sunk stores up to the snapshot reference.

13 years agoNeed to handle TBAR in SINK pass.
Mike Pall [Sun, 29 Jul 2012 19:33:46 +0000 (21:33 +0200)] 
Need to handle TBAR in SINK pass.

Can only happen with -O-dse.

13 years agoHandle cross-compiles with FPU/no-FPU or hard-fp/soft-fp ABI mismatch.
Mike Pall [Sun, 29 Jul 2012 10:22:18 +0000 (12:22 +0200)] 
Handle cross-compiles with FPU/no-FPU or hard-fp/soft-fp ABI mismatch.

13 years agoARM: Add VFP instructions to ARM disassembler.
Mike Pall [Sun, 29 Jul 2012 10:17:13 +0000 (12:17 +0200)] 
ARM: Add VFP instructions to ARM disassembler.

13 years agoDynASM/ARM: Add VFP instructions.
Mike Pall [Sun, 29 Jul 2012 10:16:33 +0000 (12:16 +0200)] 
DynASM/ARM: Add VFP instructions.

13 years agoDon't treat all constified cdata content as constant.
Mike Pall [Tue, 24 Jul 2012 12:56:29 +0000 (14:56 +0200)] 
Don't treat all constified cdata content as constant.

13 years agoTurn loads from immutable upvalues into constants.
Mike Pall [Fri, 20 Jul 2012 16:54:52 +0000 (18:54 +0200)] 
Turn loads from immutable upvalues into constants.

13 years agoFix slot flags in snapshot replay.
Mike Pall [Fri, 20 Jul 2012 16:52:29 +0000 (18:52 +0200)] 
Fix slot flags in snapshot replay.

13 years agoFix restore of sunk CNEWI with implicit P32 to P64 conversion.
Mike Pall [Wed, 18 Jul 2012 16:02:32 +0000 (18:02 +0200)] 
Fix restore of sunk CNEWI with implicit P32 to P64 conversion.

13 years agoFFI: Box all accessed or returned enums.
Mike Pall [Tue, 17 Jul 2012 20:20:03 +0000 (22:20 +0200)] 
FFI: Box all accessed or returned enums.

13 years agoFix FOLD rule (i-j)-i => 0-j.
Mike Pall [Tue, 17 Jul 2012 19:47:45 +0000 (21:47 +0200)] 
Fix FOLD rule (i-j)-i => 0-j.

Thanks to Thomas Schilling.

13 years agoWorkaround for MSVC conversion bug (double -> uint32_t -> int32_t).
Mike Pall [Tue, 17 Jul 2012 19:45:49 +0000 (21:45 +0200)] 
Workaround for MSVC conversion bug (double -> uint32_t -> int32_t).

13 years agox86/x64: Fix fusion of unsigned byte comparisons with swapped ops.
Mike Pall [Mon, 16 Jul 2012 21:43:03 +0000 (23:43 +0200)] 
x86/x64: Fix fusion of unsigned byte comparisons with swapped ops.

13 years agoARM: Invoke SPLIT pass for leftover IR_TOBIT.
Mike Pall [Mon, 16 Jul 2012 21:39:49 +0000 (23:39 +0200)] 
ARM: Invoke SPLIT pass for leftover IR_TOBIT.

Can only happen with -O-fold for TOBIT(constant).

13 years agoFrom Lua 5.2: Add -E command line option (ignore env vars).
Mike Pall [Mon, 16 Jul 2012 20:47:01 +0000 (22:47 +0200)] 
From Lua 5.2: Add -E command line option (ignore env vars).

13 years agoCorrect dispatch table modifications for return hooks.
Mike Pall [Mon, 16 Jul 2012 20:36:38 +0000 (22:36 +0200)] 
Correct dispatch table modifications for return hooks.

13 years agoFFI: Show address pointed to for tostring(ref), too.
Mike Pall [Thu, 12 Jul 2012 12:19:27 +0000 (14:19 +0200)] 
FFI: Show address pointed to for tostring(ref), too.

13 years agoLimit number of parent links handled by backend.
Mike Pall [Wed, 11 Jul 2012 14:48:52 +0000 (16:48 +0200)] 
Limit number of parent links handled by backend.

13 years agoUse an explicit flag to signal SINK tags for a trace.
Mike Pall [Wed, 11 Jul 2012 14:45:15 +0000 (16:45 +0200)] 
Use an explicit flag to signal SINK tags for a trace.

13 years agoDon't allocate constants for sunk stores.
Mike Pall [Mon, 9 Jul 2012 14:22:08 +0000 (16:22 +0200)] 
Don't allocate constants for sunk stores.

13 years agoAvoid compiler warnings about redefined C++ keywords.
Mike Pall [Mon, 9 Jul 2012 14:02:05 +0000 (16:02 +0200)] 
Avoid compiler warnings about redefined C++ keywords.

13 years agoAdd missing declarations for MSVC intrinsics.
Mike Pall [Mon, 9 Jul 2012 13:54:25 +0000 (15:54 +0200)] 
Add missing declarations for MSVC intrinsics.

13 years agoClean up ARM capability flags. Only set highest arch version.
Mike Pall [Sun, 8 Jul 2012 20:20:11 +0000 (22:20 +0200)] 
Clean up ARM capability flags. Only set highest arch version.

13 years agoChange DynASM bit operations to use Lua BitOp.
Mike Pall [Sun, 8 Jul 2012 14:25:38 +0000 (16:25 +0200)] 
Change DynASM bit operations to use Lua BitOp.

13 years agoAdd Lua BitOp to minilua.
Mike Pall [Sun, 8 Jul 2012 14:24:53 +0000 (16:24 +0200)] 
Add Lua BitOp to minilua.

13 years agoFinally fix target detection for msvcbuild.bat.
Mike Pall [Sat, 7 Jul 2012 18:36:35 +0000 (20:36 +0200)] 
Finally fix target detection for msvcbuild.bat.

Famous last words.

13 years agoDrop range limit for sunk stores relative to sunk allocation.
Mike Pall [Wed, 4 Jul 2012 19:16:06 +0000 (21:16 +0200)] 
Drop range limit for sunk stores relative to sunk allocation.

13 years agoBump some limits to accomodate SINK pass.
Mike Pall [Wed, 4 Jul 2012 19:14:37 +0000 (21:14 +0200)] 
Bump some limits to accomodate SINK pass.

13 years agoAdd stricter check for sinking PHIs.
Mike Pall [Wed, 4 Jul 2012 09:41:58 +0000 (11:41 +0200)] 
Add stricter check for sinking PHIs.

13 years agoRemove unneeded snapshot preps for sunk stores.
Mike Pall [Tue, 3 Jul 2012 21:19:45 +0000 (23:19 +0200)] 
Remove unneeded snapshot preps for sunk stores.

13 years agoFix NEWREF marking in SINK pass.
Mike Pall [Tue, 3 Jul 2012 14:45:13 +0000 (16:45 +0200)] 
Fix NEWREF marking in SINK pass.

13 years agoFix compiler warnings.
Mike Pall [Tue, 3 Jul 2012 11:22:30 +0000 (13:22 +0200)] 
Fix compiler warnings.

13 years agoAvoid pesky compiler warnings about C++ keywords (eh?).
Mike Pall [Tue, 3 Jul 2012 11:19:32 +0000 (13:19 +0200)] 
Avoid pesky compiler warnings about C++ keywords (eh?).

13 years agoInvoke SPLIT pass in side trace for rejoined sunk stores.
Mike Pall [Tue, 3 Jul 2012 10:41:21 +0000 (12:41 +0200)] 
Invoke SPLIT pass in side trace for rejoined sunk stores.

13 years agoAvoid strict aliasing issues.
Mike Pall [Mon, 2 Jul 2012 22:03:01 +0000 (00:03 +0200)] 
Avoid strict aliasing issues.

13 years agoAdd allocation sinking and store sinking optimization.
Mike Pall [Mon, 2 Jul 2012 21:47:12 +0000 (23:47 +0200)] 
Add allocation sinking and store sinking optimization.

13 years agoARM: Simplify two-step constant rematerialization.
Mike Pall [Mon, 2 Jul 2012 20:57:51 +0000 (22:57 +0200)] 
ARM: Simplify two-step constant rematerialization.

13 years agoHandle initial snapshot for side traces in lj_snap.c only.
Mike Pall [Mon, 2 Jul 2012 20:52:15 +0000 (22:52 +0200)] 
Handle initial snapshot for side traces in lj_snap.c only.

13 years agoHandle joining IR_HIOP in SPLIT pass.
Mike Pall [Mon, 2 Jul 2012 20:50:03 +0000 (22:50 +0200)] 
Handle joining IR_HIOP in SPLIT pass.

13 years agoAdd IR_PVAL instruction for non-slot parent links.
Mike Pall [Mon, 2 Jul 2012 20:47:20 +0000 (22:47 +0200)] 
Add IR_PVAL instruction for non-slot parent links.

13 years agoAdd explicit IR_GCSTEP instruction.
Mike Pall [Mon, 2 Jul 2012 20:42:40 +0000 (22:42 +0200)] 
Add explicit IR_GCSTEP instruction.

13 years agoUse HIOP for XSTORE in SPLIT pass.
Mike Pall [Mon, 2 Jul 2012 20:37:00 +0000 (22:37 +0200)] 
Use HIOP for XSTORE in SPLIT pass.

13 years agoMove snapshot replay for side traces to lj_snap.c.
Mike Pall [Mon, 2 Jul 2012 11:37:55 +0000 (13:37 +0200)] 
Move snapshot replay for side traces to lj_snap.c.

13 years agoClean up RegSP handling for parent link instructions.
Mike Pall [Sun, 1 Jul 2012 20:44:54 +0000 (22:44 +0200)] 
Clean up RegSP handling for parent link instructions.

13 years agoExpand array slots in template tables with mixed const/var initializers.
Mike Pall [Sat, 30 Jun 2012 18:58:19 +0000 (20:58 +0200)] 
Expand array slots in template tables with mixed const/var initializers.

13 years agoClean up snapshot restore.
Mike Pall [Sat, 30 Jun 2012 18:45:59 +0000 (20:45 +0200)] 
Clean up snapshot restore.

13 years agoFix cdecl string parsing during recording.
Mike Pall [Thu, 28 Jun 2012 18:17:08 +0000 (20:17 +0200)] 
Fix cdecl string parsing during recording.

13 years agoMake os.date() thread-safe.
Mike Pall [Thu, 28 Jun 2012 13:47:16 +0000 (15:47 +0200)] 
Make os.date() thread-safe.

13 years agoFix buffer check in bytecode writer.
Mike Pall [Thu, 28 Jun 2012 13:13:26 +0000 (15:13 +0200)] 
Fix buffer check in bytecode writer.

13 years agoAdd HREFK forwarding. Eliminate HREFK guard for TDUP refs.
Mike Pall [Thu, 28 Jun 2012 13:10:52 +0000 (15:10 +0200)] 
Add HREFK forwarding. Eliminate HREFK guard for TDUP refs.

13 years agoCreate string hash slots in template tables even for non-const values.
Mike Pall [Wed, 27 Jun 2012 20:45:54 +0000 (22:45 +0200)] 
Create string hash slots in template tables even for non-const values.

13 years agoAnother attempt at proper target detection for msvcbuild.bat.
Mike Pall [Wed, 27 Jun 2012 18:53:08 +0000 (20:53 +0200)] 
Another attempt at proper target detection for msvcbuild.bat.

13 years agoFix TDUP to HLOAD forwarding for DUALNUM builds.
Mike Pall [Wed, 27 Jun 2012 17:54:52 +0000 (19:54 +0200)] 
Fix TDUP to HLOAD forwarding for DUALNUM builds.

13 years agoPPC: Fix PPC32 build.
Mike Pall [Wed, 27 Jun 2012 17:35:51 +0000 (19:35 +0200)] 
PPC: Fix PPC32 build.

13 years agoFix build issues on Cygwin and MinGW with optional MSys.
Mike Pall [Fri, 22 Jun 2012 09:36:58 +0000 (11:36 +0200)] 
Fix build issues on Cygwin and MinGW with optional MSys.

13 years agoFFI: Check for __new metamethod when calling a constructor.
Mike Pall [Wed, 20 Jun 2012 16:24:49 +0000 (18:24 +0200)] 
FFI: Check for __new metamethod when calling a constructor.

13 years agoFFI: Do not resolve strings passed to parameterized types.
Mike Pall [Wed, 20 Jun 2012 13:45:23 +0000 (15:45 +0200)] 
FFI: Do not resolve strings passed to parameterized types.

13 years agoFFI: Resolve metamethods for constructors, too.
Mike Pall [Wed, 20 Jun 2012 13:15:09 +0000 (15:15 +0200)] 
FFI: Resolve metamethods for constructors, too.

13 years agoFFI: Improve error messages for ctype arguments.
Mike Pall [Wed, 20 Jun 2012 13:06:28 +0000 (15:06 +0200)] 
FFI: Improve error messages for ctype arguments.

13 years agoFFI: Add support for parameterized C types.
Mike Pall [Thu, 14 Jun 2012 17:54:07 +0000 (19:54 +0200)] 
FFI: Add support for parameterized C types.

13 years agoCONSOLE: Handle P64, GPR64, TOC* and PPE (PS3) in PPC interpreter.
Mike Pall [Wed, 13 Jun 2012 00:32:24 +0000 (02:32 +0200)] 
CONSOLE: Handle P64, GPR64, TOC* and PPE (PS3) in PPC interpreter.

PS3 build command: make HOST_CC="gcc -m32" CROSS=ppu-lv2-

13 years agoClean up buildvm error message.
Mike Pall [Tue, 12 Jun 2012 23:54:15 +0000 (01:54 +0200)] 
Clean up buildvm error message.

13 years agoAllow parsing bcsave.lua (-b option) without FFI.
Mike Pall [Tue, 12 Jun 2012 19:25:19 +0000 (21:25 +0200)] 
Allow parsing bcsave.lua (-b option) without FFI.

13 years agoPPC: Remove lj_vm_floor/ceil/trunc assembler wrappers.
Mike Pall [Tue, 12 Jun 2012 15:26:55 +0000 (17:26 +0200)] 
PPC: Remove lj_vm_floor/ceil/trunc assembler wrappers.

13 years agoARM/PPC: Remove assembler code for lj_vm_foldarith().
Mike Pall [Tue, 12 Jun 2012 15:25:52 +0000 (17:25 +0200)] 
ARM/PPC: Remove assembler code for lj_vm_foldarith().

13 years agoPPC: Fix disassembly of rldcl/rldcr.
Mike Pall [Tue, 12 Jun 2012 14:48:24 +0000 (16:48 +0200)] 
PPC: Fix disassembly of rldcl/rldcr.

13 years agoDynASM/PPC: Add missing 64 bit rotates and mtocrf/mfocrf.
Mike Pall [Tue, 12 Jun 2012 14:47:25 +0000 (16:47 +0200)] 
DynASM/PPC: Add missing 64 bit rotates and mtocrf/mfocrf.

13 years agox64: Fix DynASM defines.
Mike Pall [Tue, 12 Jun 2012 01:50:22 +0000 (03:50 +0200)] 
x64: Fix DynASM defines.

13 years agoImproved target detection for msvcbuild.bat.
Mike Pall [Mon, 11 Jun 2012 23:47:16 +0000 (01:47 +0200)] 
Improved target detection for msvcbuild.bat.

13 years agoOSX: Change dylib names to be consistent with other platforms.
Mike Pall [Mon, 11 Jun 2012 16:49:40 +0000 (18:49 +0200)] 
OSX: Change dylib names to be consistent with other platforms.

13 years agoMIPS: Cleanup interpreter.
Mike Pall [Sun, 10 Jun 2012 22:51:21 +0000 (00:51 +0200)] 
MIPS: Cleanup interpreter.

Use DynASM defines instead of C defines.

13 years agoPPC/e500: Cleanup interpreter.
Mike Pall [Sun, 10 Jun 2012 22:51:59 +0000 (00:51 +0200)] 
PPC/e500: Cleanup interpreter.

Use DynASM defines instead of C defines.

13 years agoPPC: Cleanup interpreter.
Mike Pall [Sun, 10 Jun 2012 22:50:22 +0000 (00:50 +0200)] 
PPC: Cleanup interpreter.

Use DynASM defines instead of C defines.

13 years agoARM: Cleanup interpreter.
Mike Pall [Sun, 10 Jun 2012 22:49:47 +0000 (00:49 +0200)] 
ARM: Cleanup interpreter.

Use DynASM defines instead of C defines.

13 years agox86/x64: More interpreter cleanups.
Mike Pall [Sun, 10 Jun 2012 22:49:24 +0000 (00:49 +0200)] 
x86/x64: More interpreter cleanups.

13 years agoPPC: Fix interpreter state setup in callbacks.
Mike Pall [Sun, 10 Jun 2012 22:44:54 +0000 (00:44 +0200)] 
PPC: Fix interpreter state setup in callbacks.

13 years agoFix userdata __gc separations at state close.
Mike Pall [Sun, 10 Jun 2012 21:40:53 +0000 (23:40 +0200)] 
Fix userdata __gc separations at state close.

13 years agox86/x64: Clean up interpreter.
Mike Pall [Sun, 10 Jun 2012 14:44:33 +0000 (16:44 +0200)] 
x86/x64: Clean up interpreter.

Use DynASM defines instead of C defines.
Remove support for ancient CPUs without CMOV (before Pentium Pro).

13 years agoPass various build, arch and OS flags to DynASM.
Mike Pall [Sun, 10 Jun 2012 14:41:00 +0000 (16:41 +0200)] 
Pass various build, arch and OS flags to DynASM.

13 years agoCONSOLE: Minor PS3 build fixes.
Mike Pall [Sun, 10 Jun 2012 14:34:18 +0000 (16:34 +0200)] 
CONSOLE: Minor PS3 build fixes.

13 years agoCONSOLE: Fix PS3 build.
Mike Pall [Sat, 9 Jun 2012 23:38:44 +0000 (01:38 +0200)] 
CONSOLE: Fix PS3 build.

13 years agoCONSOLE: Handle unimplemented features for console toolchains.
Mike Pall [Sat, 9 Jun 2012 18:54:34 +0000 (20:54 +0200)] 
CONSOLE: Handle unimplemented features for console toolchains.

13 years agoARM/PPC: Detect more target arch variants. Detect console OS.
Mike Pall [Sat, 9 Jun 2012 18:53:22 +0000 (20:53 +0200)] 
ARM/PPC: Detect more target arch variants. Detect console OS.

13 years agoAvoid potential store-forwarding stalls in GC marking.
Mike Pall [Sat, 9 Jun 2012 18:30:27 +0000 (20:30 +0200)] 
Avoid potential store-forwarding stalls in GC marking.

13 years agoFix check for minimum GCC version.
Mike Pall [Sat, 9 Jun 2012 15:29:54 +0000 (17:29 +0200)] 
Fix check for minimum GCC version.

13 years agoReorganize build process.
Mike Pall [Sat, 9 Jun 2012 13:04:03 +0000 (15:04 +0200)] 
Reorganize build process.

Drop pre-translated buildvm_*.h.
Rename buildvm_*.dasc to vm_*.dasc.
Move buildvm* to host directory.
Build minilua, unless HOST_LUA is set.
Use HOST_LUA to run DynASM.
Translate only vm_*.dasc for target architecture.

13 years agoAdd minified Lua interpreter (minilua). Used by the build process.
Mike Pall [Sat, 9 Jun 2012 13:02:02 +0000 (15:02 +0200)] 
Add minified Lua interpreter (minilua). Used by the build process.

13 years agoDynASM: Compatibility with minilua.
Mike Pall [Sat, 9 Jun 2012 12:41:44 +0000 (14:41 +0200)] 
DynASM: Compatibility with minilua.