]> git.ipfire.org Git - thirdparty/LuaJIT.git/log
thirdparty/LuaJIT.git
13 years agoMIPS: Add MIPS disassembler.
Mike Pall [Tue, 31 Jan 2012 15:11:04 +0000 (16:11 +0100)] 
MIPS: Add MIPS disassembler.

13 years agoBump copyright date to 2012.
Mike Pall [Mon, 23 Jan 2012 21:42:30 +0000 (22:42 +0100)] 
Bump copyright date to 2012.

13 years agoMIPS: Update install docs.
Mike Pall [Mon, 23 Jan 2012 21:30:25 +0000 (22:30 +0100)] 
MIPS: Update install docs.

13 years agoMIPS: Add interpreter. Enable MIPS build rules.
Mike Pall [Mon, 23 Jan 2012 21:20:28 +0000 (22:20 +0100)] 
MIPS: Add interpreter. Enable MIPS build rules.

13 years agoPPC: Avoid pointless arg clearing in BC_IFUNCF. Remove dead code.
Mike Pall [Mon, 23 Jan 2012 18:15:52 +0000 (19:15 +0100)] 
PPC: Avoid pointless arg clearing in BC_IFUNCF. Remove dead code.

13 years agoPPC: Fix argument checking for rawget.
Mike Pall [Mon, 23 Jan 2012 18:14:19 +0000 (19:14 +0100)] 
PPC: Fix argument checking for rawget.

13 years agoPPC: Fix resume after yield from hook.
Mike Pall [Mon, 23 Jan 2012 18:13:26 +0000 (19:13 +0100)] 
PPC: Fix resume after yield from hook.

13 years agoARM: Avoid pointless arg clearing in BC_IFUNCF. Fix comments.
Mike Pall [Mon, 23 Jan 2012 18:10:14 +0000 (19:10 +0100)] 
ARM: Avoid pointless arg clearing in BC_IFUNCF. Fix comments.

13 years agoMIPS: Add missing opcodes to the DynASM MIPS module plus minor fixes.
Mike Pall [Mon, 23 Jan 2012 18:06:58 +0000 (19:06 +0100)] 
MIPS: Add missing opcodes to the DynASM MIPS module plus minor fixes.

Allow single dot as macro name.

13 years agoFix parsing of hex literals with exponents.
Mike Pall [Fri, 20 Jan 2012 10:38:14 +0000 (11:38 +0100)] 
Fix parsing of hex literals with exponents.

13 years agoFFI: Don't touch frame in callbacks with tailcalls to fast functions.
Mike Pall [Sun, 15 Jan 2012 16:05:34 +0000 (17:05 +0100)] 
FFI: Don't touch frame in callbacks with tailcalls to fast functions.

13 years agoFFI: Ignore number parsing errors while skipping definitions.
Mike Pall [Sat, 17 Dec 2011 14:02:53 +0000 (15:02 +0100)] 
FFI: Ignore number parsing errors while skipping definitions.

13 years agoFFI: Ignore empty statements in ffi.cdef().
Mike Pall [Sat, 17 Dec 2011 14:02:00 +0000 (15:02 +0100)] 
FFI: Ignore empty statements in ffi.cdef().

13 years agoMIPS: Add DynASM MIPS module and encoding engine.
Mike Pall [Fri, 16 Dec 2011 20:33:40 +0000 (21:33 +0100)] 
MIPS: Add DynASM MIPS module and encoding engine.

13 years agoMIPS: Add build rules (non-functional, yet).
Mike Pall [Thu, 15 Dec 2011 19:39:30 +0000 (20:39 +0100)] 
MIPS: Add build rules (non-functional, yet).

13 years agoAuto-detect target arch via cross-compiler. Drop TARGET=arch.
Mike Pall [Thu, 15 Dec 2011 18:16:06 +0000 (19:16 +0100)] 
Auto-detect target arch via cross-compiler. Drop TARGET=arch.

13 years agoRELEASE LuaJIT-2.0.0-beta9 v2.0.0-beta9
Mike Pall [Wed, 14 Dec 2011 14:12:49 +0000 (15:12 +0100)] 
RELEASE LuaJIT-2.0.0-beta9

13 years agoUpdate changelog.
Mike Pall [Wed, 14 Dec 2011 13:27:54 +0000 (14:27 +0100)] 
Update changelog.

13 years agoPPC: Avoid undefined operand dereference in BAND/shift fusion.
Mike Pall [Tue, 13 Dec 2011 17:05:51 +0000 (18:05 +0100)] 
PPC: Avoid undefined operand dereference in BAND/shift fusion.

13 years agoFFI: Add callback support for ARM.
Mike Pall [Mon, 12 Dec 2011 22:12:25 +0000 (23:12 +0100)] 
FFI: Add callback support for ARM.

13 years agoFFI: Add callback support for PPC.
Mike Pall [Mon, 12 Dec 2011 22:11:31 +0000 (23:11 +0100)] 
FFI: Add callback support for PPC.

13 years agoMove helper for syncing data/instruction cache to lj_mcode.c.
Mike Pall [Mon, 12 Dec 2011 21:49:19 +0000 (22:49 +0100)] 
Move helper for syncing data/instruction cache to lj_mcode.c.

Sync caches after dynamic code generation for FFI callbacks.

13 years agoARM: Error out for attempt to compile with hard-float ABI.
Mike Pall [Sat, 10 Dec 2011 16:15:38 +0000 (17:15 +0100)] 
ARM: Error out for attempt to compile with hard-float ABI.

13 years agoARM: Fix stack check for spilled BASE in parent.
Mike Pall [Fri, 9 Dec 2011 23:18:19 +0000 (00:18 +0100)] 
ARM: Fix stack check for spilled BASE in parent.

13 years agox64: Always extend stack arguments to pointer size.
Mike Pall [Fri, 9 Dec 2011 15:00:04 +0000 (16:00 +0100)] 
x64: Always extend stack arguments to pointer size.

13 years agoFix compiler warning.
Mike Pall [Fri, 9 Dec 2011 14:57:20 +0000 (15:57 +0100)] 
Fix compiler warning.

13 years agoFFI: Fix stack adjustment for calls to stdcall/fastcall functions.
Mike Pall [Thu, 1 Dec 2011 15:27:24 +0000 (16:27 +0100)] 
FFI: Fix stack adjustment for calls to stdcall/fastcall functions.

13 years agoFFI: Need to treat strlen() as a load.
Mike Pall [Sun, 27 Nov 2011 17:22:48 +0000 (18:22 +0100)] 
FFI: Need to treat strlen() as a load.

13 years agoFix docs. The code base doesn't work on Windows 98 anymore.
Mike Pall [Sun, 27 Nov 2011 11:35:35 +0000 (12:35 +0100)] 
Fix docs. The code base doesn't work on Windows 98 anymore.

13 years agoDon't increment module reference counts due to symbol resolving.
Mike Pall [Sun, 27 Nov 2011 10:45:55 +0000 (11:45 +0100)] 
Don't increment module reference counts due to symbol resolving.

13 years agoFFI: Record ffi.errno().
Mike Pall [Sat, 26 Nov 2011 15:54:52 +0000 (16:54 +0100)] 
FFI: Record ffi.errno().

13 years agoFix stack check in side exit.
Mike Pall [Fri, 25 Nov 2011 18:36:48 +0000 (19:36 +0100)] 
Fix stack check in side exit.

13 years agoFFI: Record C function calls with bool return values.
Mike Pall [Fri, 25 Nov 2011 18:36:35 +0000 (19:36 +0100)] 
FFI: Record C function calls with bool return values.

13 years agoFFI: Fix line info for result conversion errors in callbacks.
Mike Pall [Fri, 25 Nov 2011 18:25:44 +0000 (19:25 +0100)] 
FFI: Fix line info for result conversion errors in callbacks.

13 years agoFFI: Fix GetLastError() save/restore around ffi.load().
Mike Pall [Fri, 25 Nov 2011 11:25:51 +0000 (12:25 +0100)] 
FFI: Fix GetLastError() save/restore around ffi.load().

13 years agoFFI: Improve ld script detection in ffi.load().
Mike Pall [Fri, 25 Nov 2011 10:19:59 +0000 (11:19 +0100)] 
FFI: Improve ld script detection in ffi.load().

13 years agoDo not eliminate PHIs only referenced from other PHIs.
Mike Pall [Wed, 23 Nov 2011 23:42:14 +0000 (00:42 +0100)] 
Do not eliminate PHIs only referenced from other PHIs.

13 years agoReplace stack slot for implicit number->string conv. in Lua/C API.
Mike Pall [Mon, 21 Nov 2011 19:50:27 +0000 (20:50 +0100)] 
Replace stack slot for implicit number->string conv. in Lua/C API.

13 years agoSpecialize to prototype for non-monomorphic functions.
Mike Pall [Sun, 20 Nov 2011 18:14:39 +0000 (19:14 +0100)] 
Specialize to prototype for non-monomorphic functions.

Solves the trace-explosion problem with closure-heavy programming.

13 years agoCount frames with same prototype in call unroll limit check.
Mike Pall [Sun, 20 Nov 2011 16:59:41 +0000 (17:59 +0100)] 
Count frames with same prototype in call unroll limit check.

13 years agoKeep maximum frame extent in snap->topslot.
Mike Pall [Sun, 20 Nov 2011 16:56:47 +0000 (17:56 +0100)] 
Keep maximum frame extent in snap->topslot.

13 years agoGet rid of snap->depth.
Mike Pall [Sun, 20 Nov 2011 12:23:25 +0000 (13:23 +0100)] 
Get rid of snap->depth.

13 years agoFix debug option for msvcbuild.bat.
Mike Pall [Thu, 17 Nov 2011 16:34:23 +0000 (17:34 +0100)] 
Fix debug option for msvcbuild.bat.

13 years agoFFI: Fix EnumWindows example in docs.
Mike Pall [Tue, 15 Nov 2011 15:45:36 +0000 (16:45 +0100)] 
FFI: Fix EnumWindows example in docs.

13 years agoFFI: Add missing GC barrier for callback registration.
Mike Pall [Tue, 15 Nov 2011 15:43:43 +0000 (16:43 +0100)] 
FFI: Add missing GC barrier for callback registration.

13 years agoFFI: Save GetLastError() around ffi.load() and symbol resolving, too.
Mike Pall [Tue, 15 Nov 2011 15:37:06 +0000 (16:37 +0100)] 
FFI: Save GetLastError() around ffi.load() and symbol resolving, too.

13 years agoEliminate some rare occurrences of redundant PHIs.
Mike Pall [Mon, 14 Nov 2011 22:57:05 +0000 (23:57 +0100)] 
Eliminate some rare occurrences of redundant PHIs.

13 years agoFix hint-based register allocation in ra_dest().
Mike Pall [Mon, 14 Nov 2011 22:52:26 +0000 (23:52 +0100)] 
Fix hint-based register allocation in ra_dest().

13 years agoFFI: Add callback support (for x86/x64).
Mike Pall [Mon, 14 Nov 2011 13:15:57 +0000 (14:15 +0100)] 
FFI: Add callback support (for x86/x64).

13 years agoPPC: Clarify docs.
Mike Pall [Mon, 14 Nov 2011 13:13:53 +0000 (14:13 +0100)] 
PPC: Clarify docs.

13 years agoFFI: Resolve __call metamethod for pointers, too.
Mike Pall [Mon, 14 Nov 2011 11:01:48 +0000 (12:01 +0100)] 
FFI: Resolve __call metamethod for pointers, too.

13 years agoAvoid dependence on lj_jit.h if only including lj_target.h.
Mike Pall [Sat, 12 Nov 2011 00:16:43 +0000 (01:16 +0100)] 
Avoid dependence on lj_jit.h if only including lj_target.h.

13 years agoFFI: Add unwind definitions for lj_vm_ffi_call.
Mike Pall [Fri, 11 Nov 2011 21:10:31 +0000 (22:10 +0100)] 
FFI: Add unwind definitions for lj_vm_ffi_call.

Adds exception interoperability for C/C++ functions called via FFI
from the interpreter.

13 years agoFFI: Extend metamethod tutorial.
Mike Pall [Fri, 11 Nov 2011 19:41:44 +0000 (20:41 +0100)] 
FFI: Extend metamethod tutorial.

13 years agoARM: Fix IR splitting for softfp XLOAD.
Mike Pall [Fri, 11 Nov 2011 00:07:34 +0000 (01:07 +0100)] 
ARM: Fix IR splitting for softfp XLOAD.

13 years agoARM: Fix code generation for type-check only softfp [AHUV]LOAD.
Mike Pall [Fri, 11 Nov 2011 00:05:37 +0000 (01:05 +0100)] 
ARM: Fix code generation for type-check only softfp [AHUV]LOAD.

14 years agox64: Fix lightuserdata comparisons.
Mike Pall [Fri, 4 Nov 2011 13:48:44 +0000 (14:48 +0100)] 
x64: Fix lightuserdata comparisons.

14 years agoSpelling.
Mike Pall [Fri, 4 Nov 2011 13:07:19 +0000 (14:07 +0100)] 
Spelling.

14 years agoPPC: Install dis_ppc.lua.
Mike Pall [Thu, 27 Oct 2011 17:47:47 +0000 (19:47 +0200)] 
PPC: Install dis_ppc.lua.

14 years agoFFI: Compile calls to stdcall, fastcall and vararg functions.
Mike Pall [Wed, 26 Oct 2011 23:52:37 +0000 (01:52 +0200)] 
FFI: Compile calls to stdcall, fastcall and vararg functions.

14 years agoPPC: Fuse BAND with shift to rlwinm.
Mike Pall [Tue, 25 Oct 2011 19:29:58 +0000 (21:29 +0200)] 
PPC: Fuse BAND with shift to rlwinm.

14 years agoAdd more FOLD rules for shift + BAND simplifications.
Mike Pall [Tue, 25 Oct 2011 19:16:27 +0000 (21:16 +0200)] 
Add more FOLD rules for shift + BAND simplifications.

14 years agox64: Fix code generation for BSWAP.
Mike Pall [Tue, 25 Oct 2011 19:14:01 +0000 (21:14 +0200)] 
x64: Fix code generation for BSWAP.

14 years agoPPC: Fuse BSWAP with XLOAD/XSTORE to lwbrx/stwbrx.
Mike Pall [Tue, 25 Oct 2011 17:50:44 +0000 (19:50 +0200)] 
PPC: Fuse BSWAP with XLOAD/XSTORE to lwbrx/stwbrx.

14 years agoPPC/e500: Fix write barrier in USETS.
Mike Pall [Tue, 25 Oct 2011 10:41:38 +0000 (12:41 +0200)] 
PPC/e500: Fix write barrier in USETS.

14 years agoPPC: Fix externally provided relocation offsets in DynASM.
Mike Pall [Mon, 24 Oct 2011 23:18:59 +0000 (01:18 +0200)] 
PPC: Fix externally provided relocation offsets in DynASM.

14 years agoPPC: Fix write barrier in USETV/USETS.
Mike Pall [Mon, 24 Oct 2011 22:29:10 +0000 (00:29 +0200)] 
PPC: Fix write barrier in USETV/USETS.

14 years agoPPC: Integrate and enable JIT compiler.
Mike Pall [Mon, 24 Oct 2011 14:43:51 +0000 (16:43 +0200)] 
PPC: Integrate and enable JIT compiler.

14 years agoAllow selection of single-number vs. dual-number mode in Makefile.
Mike Pall [Mon, 24 Oct 2011 14:35:17 +0000 (16:35 +0200)] 
Allow selection of single-number vs. dual-number mode in Makefile.

14 years agoPPC: Fix/improve interpreter/JIT integration.
Mike Pall [Mon, 24 Oct 2011 14:23:01 +0000 (16:23 +0200)] 
PPC: Fix/improve interpreter/JIT integration.

Switch to per-trace exit stubs.
Drop register holding current trace number.

14 years agoPPC: Generalize rematerialization handling.
Mike Pall [Mon, 24 Oct 2011 14:21:11 +0000 (16:21 +0200)] 
PPC: Generalize rematerialization handling.

14 years agoPPC: Add support for GDB JIT API.
Mike Pall [Mon, 24 Oct 2011 14:20:04 +0000 (16:20 +0200)] 
PPC: Add support for GDB JIT API.

14 years agoPPC: Add Linux/PPC cache flush mechanism.
Mike Pall [Mon, 24 Oct 2011 14:18:02 +0000 (16:18 +0200)] 
PPC: Add Linux/PPC cache flush mechanism.

GCC's __clear_cache() does nothing on PPC. Duh.

14 years agoMake sure to flush/sync the D/I-cache for all generated code.
Mike Pall [Mon, 24 Oct 2011 14:16:14 +0000 (16:16 +0200)] 
Make sure to flush/sync the D/I-cache for all generated code.

14 years agoFix handling of alignment arguments (nil) to CALLX.
Mike Pall [Mon, 24 Oct 2011 14:14:01 +0000 (16:14 +0200)] 
Fix handling of alignment arguments (nil) to CALLX.

14 years agoPPC: Add support for per-trace exit stubs.
Mike Pall [Mon, 24 Oct 2011 14:13:12 +0000 (16:13 +0200)] 
PPC: Add support for per-trace exit stubs.

14 years agoGeneralize handling of stack checks indicated by highest exit + 1.
Mike Pall [Mon, 24 Oct 2011 14:02:37 +0000 (16:02 +0200)] 
Generalize handling of stack checks indicated by highest exit + 1.

14 years agoDon't save/restore tmptv with copyTV.
Mike Pall [Mon, 24 Oct 2011 13:58:54 +0000 (15:58 +0200)] 
Don't save/restore tmptv with copyTV.

14 years agoFix compiler warning.
Mike Pall [Mon, 24 Oct 2011 13:58:24 +0000 (15:58 +0200)] 
Fix compiler warning.

14 years agoWhitespace.
Mike Pall [Sat, 22 Oct 2011 00:04:11 +0000 (02:04 +0200)] 
Whitespace.

14 years agoAdd missing FOLD rule for CONV.u64.int + sign-extension.
Mike Pall [Sat, 22 Oct 2011 00:03:07 +0000 (02:03 +0200)] 
Add missing FOLD rule for CONV.u64.int + sign-extension.

14 years agoFFI: Cleanup/fix 64 bit arithmetic in assembler backend.
Mike Pall [Sat, 22 Oct 2011 00:02:51 +0000 (02:02 +0200)] 
FFI: Cleanup/fix 64 bit arithmetic in assembler backend.

14 years agox64: Fix math.random() code generation.
Mike Pall [Sat, 22 Oct 2011 00:01:44 +0000 (02:01 +0200)] 
x64: Fix math.random() code generation.

14 years agoFix register hints for arithmetic helper functions.
Mike Pall [Sat, 22 Oct 2011 00:00:15 +0000 (02:00 +0200)] 
Fix register hints for arithmetic helper functions.

14 years agoSeparate/rename NUM/FLOAT <-> I64/U64 conversion functions.
Mike Pall [Fri, 21 Oct 2011 23:59:10 +0000 (01:59 +0200)] 
Separate/rename NUM/FLOAT <-> I64/U64 conversion functions.

14 years agoCleanup various endianess issues in assembler backend.
Mike Pall [Fri, 21 Oct 2011 23:35:57 +0000 (01:35 +0200)] 
Cleanup various endianess issues in assembler backend.

14 years agoRearrange defines for workarounds to embedded operating systems.
Mike Pall [Wed, 19 Oct 2011 16:14:46 +0000 (18:14 +0200)] 
Rearrange defines for workarounds to embedded operating systems.

14 years agoFix PE/COFF bytecode file format for big-endian targets.
Mike Pall [Tue, 18 Oct 2011 23:56:44 +0000 (01:56 +0200)] 
Fix PE/COFF bytecode file format for big-endian targets.

14 years agoFix FOLD rule for CONV.flt.num(CONV.num.flt(x)) => x.
Mike Pall [Tue, 18 Oct 2011 23:52:50 +0000 (01:52 +0200)] 
Fix FOLD rule for CONV.flt.num(CONV.num.flt(x)) => x.

14 years agoFFI/x86: Fix CONV.u32.num rounding.
Mike Pall [Tue, 18 Oct 2011 22:18:36 +0000 (00:18 +0200)] 
FFI/x86: Fix CONV.u32.num rounding.

14 years agoDon't fuse colocated array offsets without -Ofuse.
Mike Pall [Tue, 18 Oct 2011 22:17:19 +0000 (00:17 +0200)] 
Don't fuse colocated array offsets without -Ofuse.

14 years agoFixup PC in tracebacks after exits from down-recursive traces.
Mike Pall [Mon, 17 Oct 2011 18:06:04 +0000 (20:06 +0200)] 
Fixup PC in tracebacks after exits from down-recursive traces.

14 years agoPPC: Distinguish slwi, srwi and rlwinm in disassembly.
Mike Pall [Mon, 17 Oct 2011 15:22:21 +0000 (17:22 +0200)] 
PPC: Distinguish slwi, srwi and rlwinm in disassembly.

14 years agoAdd missing FOLD rule for integer NEG of constants.
Mike Pall [Mon, 17 Oct 2011 15:21:09 +0000 (17:21 +0200)] 
Add missing FOLD rule for integer NEG of constants.

14 years agoFFI/ARM: Ensure invocation of SPLIT pass for float conversions.
Mike Pall [Thu, 13 Oct 2011 23:09:30 +0000 (01:09 +0200)] 
FFI/ARM: Ensure invocation of SPLIT pass for float conversions.

14 years agoSave tmptv state for trace recorder across RECORD vmevent.
Mike Pall [Thu, 13 Oct 2011 22:43:17 +0000 (00:43 +0200)] 
Save tmptv state for trace recorder across RECORD vmevent.

14 years agoFFI: Fix unfused loads of float fields.
Mike Pall [Thu, 13 Oct 2011 18:53:01 +0000 (20:53 +0200)] 
FFI: Fix unfused loads of float fields.

14 years agoFFI: Fix call argument and return handling for I8/U8/I16/U16 types.
Mike Pall [Thu, 13 Oct 2011 18:44:31 +0000 (20:44 +0200)] 
FFI: Fix call argument and return handling for I8/U8/I16/U16 types.

14 years agoFFI: Record loads/stores to external variables in namespaces.
Mike Pall [Tue, 11 Oct 2011 18:56:57 +0000 (20:56 +0200)] 
FFI: Record loads/stores to external variables in namespaces.

14 years agoFFI: Fix recording of const/enum lookups in namespaces.
Mike Pall [Tue, 11 Oct 2011 09:51:48 +0000 (11:51 +0200)] 
FFI: Fix recording of const/enum lookups in namespaces.