]> git.ipfire.org Git - thirdparty/LuaJIT.git/log
thirdparty/LuaJIT.git
15 years agoUpdate changelog.
Mike Pall [Sun, 28 Mar 2010 16:31:36 +0000 (18:31 +0200)] 
Update changelog.

15 years agoFold HREF of TNEW/TDUP to niltv. Fold HLOAD of niltv to nil.
Mike Pall [Sun, 28 Mar 2010 04:50:39 +0000 (06:50 +0200)] 
Fold HREF of TNEW/TDUP to niltv. Fold HLOAD of niltv to nil.

15 years agoGenerate EQ(HREF, niltv) for load path, too (better CSE).
Mike Pall [Sun, 28 Mar 2010 04:49:09 +0000 (06:49 +0200)] 
Generate EQ(HREF, niltv) for load path, too (better CSE).

15 years agoAlso merge EQ(HREF, niltv) in backend.
Mike Pall [Sun, 28 Mar 2010 04:47:04 +0000 (06:47 +0200)] 
Also merge EQ(HREF, niltv) in backend.

15 years agoOnly fuse with spill slots for cross-section references.
Mike Pall [Sun, 28 Mar 2010 04:42:48 +0000 (06:42 +0200)] 
Only fuse with spill slots for cross-section references.

15 years agoFix precondition check for NEWREF.
Mike Pall [Sun, 28 Mar 2010 01:34:18 +0000 (03:34 +0200)] 
Fix precondition check for NEWREF.

A check for nil value is not enough. Must check for ptr == niltv.

15 years agoPass MULTRES or negated error code in RD to lj_vm_exit_interp.
Mike Pall [Tue, 23 Mar 2010 17:31:17 +0000 (18:31 +0100)] 
Pass MULTRES or negated error code in RD to lj_vm_exit_interp.

Fixes overwrite of saved r12 after trace exit.

15 years agoMove colocated array part after GCtab (now properly aligned).
Mike Pall [Mon, 22 Mar 2010 14:59:50 +0000 (15:59 +0100)] 
Move colocated array part after GCtab (now properly aligned).

15 years agoMove free node pos to t->node[0].freetop. Saves 4 bytes in GCtab.
Mike Pall [Mon, 22 Mar 2010 14:05:37 +0000 (15:05 +0100)] 
Move free node pos to t->node[0].freetop. Saves 4 bytes in GCtab.

15 years agoAvoid snapshots for returns to known callers.
Mike Pall [Sun, 21 Mar 2010 15:01:44 +0000 (16:01 +0100)] 
Avoid snapshots for returns to known callers.

15 years agoAdd links to interactive performance comparison to offline docs.
Mike Pall [Fri, 19 Mar 2010 20:01:14 +0000 (21:01 +0100)] 
Add links to interactive performance comparison to offline docs.

15 years agoIncrease max. fusion distance.
Mike Pall [Thu, 18 Mar 2010 23:28:04 +0000 (00:28 +0100)] 
Increase max. fusion distance.

15 years agoReorder various structs to reduce padding (thanks to /usr/bin/pahole).
Mike Pall [Mon, 15 Mar 2010 22:29:10 +0000 (23:29 +0100)] 
Reorder various structs to reduce padding (thanks to /usr/bin/pahole).

15 years agoFix TSETM on x64/SSE builds when table is resized.
Mike Pall [Mon, 15 Mar 2010 18:00:16 +0000 (19:00 +0100)] 
Fix TSETM on x64/SSE builds when table is resized.

15 years agoAdd static target to msvcbuild.bat.
Mike Pall [Mon, 15 Mar 2010 17:50:59 +0000 (18:50 +0100)] 
Add static target to msvcbuild.bat.

15 years agoUpdate changelog.
Mike Pall [Mon, 15 Mar 2010 16:20:08 +0000 (17:20 +0100)] 
Update changelog.

15 years agoAdd array bounds check elimination (-Oabc, on by default).
Mike Pall [Mon, 15 Mar 2010 16:02:53 +0000 (17:02 +0100)] 
Add array bounds check elimination (-Oabc, on by default).

15 years agoReorganize scalar evolution analysis.
Mike Pall [Mon, 15 Mar 2010 15:23:02 +0000 (16:23 +0100)] 
Reorganize scalar evolution analysis.

15 years agoFix folding of (comparison x x).
Mike Pall [Sun, 14 Mar 2010 16:10:47 +0000 (17:10 +0100)] 
Fix folding of (comparison x x).

15 years agoRestore MULTRES for snapshots pointing to CALLM etc. bytecodes.
Mike Pall [Sat, 13 Mar 2010 16:45:09 +0000 (17:45 +0100)] 
Restore MULTRES for snapshots pointing to CALLM etc. bytecodes.

15 years agoFix potential hang in UCLO redirection handling in hooks.
Mike Pall [Wed, 10 Mar 2010 21:13:23 +0000 (22:13 +0100)] 
Fix potential hang in UCLO redirection handling in hooks.

15 years agoFix handling of bad argument types in recorder.
Mike Pall [Tue, 9 Mar 2010 18:03:43 +0000 (19:03 +0100)] 
Fix handling of bad argument types in recorder.

15 years agoFix recording of getmetatable() for non-tables.
Mike Pall [Tue, 9 Mar 2010 16:49:13 +0000 (17:49 +0100)] 
Fix recording of getmetatable() for non-tables.

15 years agoAvoid tracing the nil return case of tonumber().
Mike Pall [Tue, 9 Mar 2010 02:47:49 +0000 (03:47 +0100)] 
Avoid tracing the nil return case of tonumber().

15 years agoAdd WinSDK v7.0 requirement for building on Windows/x64.
Mike Pall [Tue, 9 Mar 2010 01:45:47 +0000 (02:45 +0100)] 
Add WinSDK v7.0 requirement for building on Windows/x64.

15 years agoDo not fuse SLOAD across RETF.
Mike Pall [Mon, 8 Mar 2010 22:43:16 +0000 (23:43 +0100)] 
Do not fuse SLOAD across RETF.

15 years agoRELEASE LuaJIT-2.0.0-beta3 v2.0.0-beta3
Mike Pall [Sun, 7 Mar 2010 18:30:21 +0000 (19:30 +0100)] 
RELEASE LuaJIT-2.0.0-beta3

15 years agoFix tracebacks for failed coroutines.
Mike Pall [Sun, 7 Mar 2010 17:21:14 +0000 (18:21 +0100)] 
Fix tracebacks for failed coroutines.

15 years agoAdd OS/CPU/CC compatibility matrix to docs. Fix spelling.
Mike Pall [Sun, 7 Mar 2010 16:12:21 +0000 (17:12 +0100)] 
Add OS/CPU/CC compatibility matrix to docs. Fix spelling.

15 years agoRebase dynamic library on OSX/x64.
Mike Pall [Sun, 7 Mar 2010 14:04:42 +0000 (15:04 +0100)] 
Rebase dynamic library on OSX/x64.

15 years agoImprove placement of dynamically generated code on x64.
Mike Pall [Sun, 7 Mar 2010 13:33:52 +0000 (14:33 +0100)] 
Improve placement of dynamically generated code on x64.

15 years agoFix assertion in rec_check_slots.
Mike Pall [Sun, 7 Mar 2010 13:32:50 +0000 (14:32 +0100)] 
Fix assertion in rec_check_slots.

15 years agoGenerate indirect calls for out-of-range distances on x64.
Mike Pall [Sun, 7 Mar 2010 13:31:51 +0000 (14:31 +0100)] 
Generate indirect calls for out-of-range distances on x64.

15 years agoFix unwind info for assembler part for OSX.
Mike Pall [Sun, 7 Mar 2010 13:29:04 +0000 (14:29 +0100)] 
Fix unwind info for assembler part for OSX.

15 years agoFix disassembly of call/jmp ModRM.
Mike Pall [Sun, 7 Mar 2010 13:28:05 +0000 (14:28 +0100)] 
Fix disassembly of call/jmp ModRM.

15 years agoFix generated 64 bit Mach-O assembler output.
Mike Pall [Fri, 5 Mar 2010 02:21:52 +0000 (03:21 +0100)] 
Fix generated 64 bit Mach-O assembler output.

15 years agoDocument jit.status().
Mike Pall [Thu, 4 Mar 2010 19:46:07 +0000 (20:46 +0100)] 
Document jit.status().

15 years agoUpdate docs: native build default, cross-compilation, embedding.
Mike Pall [Thu, 4 Mar 2010 18:07:38 +0000 (19:07 +0100)] 
Update docs: native build default, cross-compilation, embedding.

15 years agoAllocate 32 bit memory on OSX/x64 with mmap() hinting.
Mike Pall [Thu, 4 Mar 2010 15:27:42 +0000 (16:27 +0100)] 
Allocate 32 bit memory on OSX/x64 with mmap() hinting.

Must set -pagezero_size, otherwise the lower 4GB are blocked.

15 years agoBuild as a native 32 or 64 bit binary by default.
Mike Pall [Thu, 4 Mar 2010 15:23:28 +0000 (16:23 +0100)] 
Build as a native 32 or 64 bit binary by default.

15 years agoImprove performance of HREF/HREFK on x64.
Mike Pall [Wed, 3 Mar 2010 03:26:31 +0000 (04:26 +0100)] 
Improve performance of HREF/HREFK on x64.

15 years agoFix 64 bit conversion warning.
Mike Pall [Wed, 3 Mar 2010 03:25:48 +0000 (04:25 +0100)] 
Fix 64 bit conversion warning.

15 years agoImprove register allocation on x64.
Mike Pall [Tue, 2 Mar 2010 22:34:13 +0000 (23:34 +0100)] 
Improve register allocation on x64.

15 years agoFix comments about 64 bit FreeBSD mmap() behavior.
Mike Pall [Tue, 2 Mar 2010 20:53:59 +0000 (21:53 +0100)] 
Fix comments about 64 bit FreeBSD mmap() behavior.

15 years agoAdd compile errors for 64 bit OS without an equivalent of MAP_32BIT.
Mike Pall [Tue, 2 Mar 2010 18:41:56 +0000 (19:41 +0100)] 
Add compile errors for 64 bit OS without an equivalent of MAP_32BIT.

15 years agoAdd support for recursion to changelog.
Mike Pall [Tue, 2 Mar 2010 04:55:23 +0000 (05:55 +0100)] 
Add support for recursion to changelog.

15 years agoFix amalgamated build.
Mike Pall [Tue, 2 Mar 2010 00:48:37 +0000 (01:48 +0100)] 
Fix amalgamated build.

15 years agoEnable tracing of recursion.
Mike Pall [Mon, 1 Mar 2010 05:46:45 +0000 (06:46 +0100)] 
Enable tracing of recursion.

Now compiles tail-recursion, up-recursion and down-recursion.
Benchmarks vs. Lua: fib 20x, ack 23x, binary-trees 4.7x.

15 years agoImplement down-recursion.
Mike Pall [Mon, 1 Mar 2010 05:45:30 +0000 (06:45 +0100)] 
Implement down-recursion.

15 years agoFix pc to line number translation for GDB JIT API.
Mike Pall [Mon, 1 Mar 2010 05:33:48 +0000 (06:33 +0100)] 
Fix pc to line number translation for GDB JIT API.

15 years agoResize stack up to the true limit.
Mike Pall [Mon, 1 Mar 2010 04:51:04 +0000 (05:51 +0100)] 
Resize stack up to the true limit.

15 years agoFix error message generation for OOM error.
Mike Pall [Sun, 28 Feb 2010 21:22:45 +0000 (22:22 +0100)] 
Fix error message generation for OOM error.

15 years agoConditionally compile functions that are unused with JIT disabled.
Mike Pall [Sun, 28 Feb 2010 20:58:40 +0000 (21:58 +0100)] 
Conditionally compile functions that are unused with JIT disabled.

15 years agoEnable JIT compiler for x64.
Mike Pall [Sun, 28 Feb 2010 20:45:38 +0000 (21:45 +0100)] 
Enable JIT compiler for x64.

Only works on Linux/x64 and Windows/x64 right now.
Force an x64 build on Linux/x64 with: make CC="gcc -m64"
NYI: handle on-trace OOM errors.
NYI: improve register allocation for x64.

15 years agoAdd frame info for x64 GDB JIT API.
Mike Pall [Sun, 28 Feb 2010 16:52:11 +0000 (17:52 +0100)] 
Add frame info for x64 GDB JIT API.

15 years agoSave/restore remaining callee-save regs on trace<->interp transitions.
Mike Pall [Sat, 27 Feb 2010 20:40:40 +0000 (21:40 +0100)] 
Save/restore remaining callee-save regs on trace<->interp transitions.

15 years agoCorrectly align and free allocated machine code areas.
Mike Pall [Sat, 27 Feb 2010 18:53:14 +0000 (19:53 +0100)] 
Correctly align and free allocated machine code areas.

Bump default mcode area size to 64K for x64.

15 years agoPlace dynamically generated code near static code on x64.
Mike Pall [Fri, 26 Feb 2010 17:20:24 +0000 (18:20 +0100)] 
Place dynamically generated code near static code on x64.

15 years agoMake penalty PRNG available for general use by compiler.
Mike Pall [Fri, 26 Feb 2010 16:01:33 +0000 (17:01 +0100)] 
Make penalty PRNG available for general use by compiler.

15 years agoAdd x64 call argument setup. More 32/64 bit cleanups in assembler.
Mike Pall [Thu, 25 Feb 2010 02:35:07 +0000 (03:35 +0100)] 
Add x64 call argument setup. More 32/64 bit cleanups in assembler.

15 years agoMove SIMD constants to jit_State to keep them in the low 4GB.
Mike Pall [Wed, 24 Feb 2010 22:17:17 +0000 (23:17 +0100)] 
Move SIMD constants to jit_State to keep them in the low 4GB.

15 years agoHandle negative continuation offsets (WIN64 with debug).
Mike Pall [Wed, 24 Feb 2010 19:39:41 +0000 (20:39 +0100)] 
Handle negative continuation offsets (WIN64 with debug).

15 years agoFix 64 bit conversion warnings.
Mike Pall [Wed, 24 Feb 2010 19:02:20 +0000 (20:02 +0100)] 
Fix 64 bit conversion warnings.

15 years agoMajor 32/64 bit cleanups in assembler and exit handling.
Mike Pall [Wed, 24 Feb 2010 06:09:34 +0000 (07:09 +0100)] 
Major 32/64 bit cleanups in assembler and exit handling.

Add 64 bit lightuserdata handling. Keep the tagged 64 bit value.
Allocate/save/restore 64 bit spill slots for 64 bit lightuserdata.
Fix code generation for 64 bit loads/stores/moves/compares.
Fix code generation for stack pointer adjustments.
Add fixed spill slot definitions for x64. Reduce reserved spill slots.
Disable STRREF + ADD fusion in 64 bit mode (avoid negative 32 bit ofs).

15 years agoFix 64 bit portability problem in rec_ret().
Mike Pall [Wed, 24 Feb 2010 04:29:46 +0000 (05:29 +0100)] 
Fix 64 bit portability problem in rec_ret().

15 years agoAdd trace exit helper for x64. Fix trace entry for x64.
Mike Pall [Wed, 24 Feb 2010 00:32:44 +0000 (01:32 +0100)] 
Add trace exit helper for x64. Fix trace entry for x64.

15 years agoCheck relative jump distances for x64.
Mike Pall [Wed, 24 Feb 2010 00:29:11 +0000 (01:29 +0100)] 
Check relative jump distances for x64.

15 years agoFix type() implementation for x64 lightuserdata.
Mike Pall [Wed, 24 Feb 2010 00:23:52 +0000 (01:23 +0100)] 
Fix type() implementation for x64 lightuserdata.

15 years agoFix exit state for 64 bit mode.
Mike Pall [Wed, 24 Feb 2010 00:18:49 +0000 (01:18 +0100)] 
Fix exit state for 64 bit mode.

15 years agoRandomize penalties for aborts and add blacklisting.
Mike Pall [Tue, 23 Feb 2010 17:27:39 +0000 (18:27 +0100)] 
Randomize penalties for aborts and add blacklisting.

15 years agoMark renamed registers as modified.
Mike Pall [Tue, 23 Feb 2010 16:22:12 +0000 (17:22 +0100)] 
Mark renamed registers as modified.

15 years agoDon't eliminate SLOAD restores across RETF.
Mike Pall [Tue, 23 Feb 2010 02:08:49 +0000 (03:08 +0100)] 
Don't eliminate SLOAD restores across RETF.

Move restore-elimination logic into snapshot_slots().

15 years agoDo not patch parent exit for a stack check.
Mike Pall [Mon, 22 Feb 2010 20:21:52 +0000 (21:21 +0100)] 
Do not patch parent exit for a stack check.

15 years agoEnsure function and all args have a reference for call recording.
Mike Pall [Mon, 22 Feb 2010 16:37:26 +0000 (17:37 +0100)] 
Ensure function and all args have a reference for call recording.

In practice this is only needed after a return to a lower frame.

15 years agoFix TRef for (dummy) 2nd arg of __len metamethod.
Mike Pall [Mon, 22 Feb 2010 16:33:39 +0000 (17:33 +0100)] 
Fix TRef for (dummy) 2nd arg of __len metamethod.

15 years agoBack out history buffer for tailcall counts.
Mike Pall [Mon, 22 Feb 2010 15:57:59 +0000 (16:57 +0100)] 
Back out history buffer for tailcall counts.

Use an aggregate counter independent of frame depth.

15 years agoAdd region selection for up-recursion and tail-recursion.
Mike Pall [Mon, 22 Feb 2010 13:35:47 +0000 (14:35 +0100)] 
Add region selection for up-recursion and tail-recursion.

15 years agoRefactor Lua stack handling in lj_asm.c.
Mike Pall [Sun, 21 Feb 2010 16:26:21 +0000 (17:26 +0100)] 
Refactor Lua stack handling in lj_asm.c.

15 years agoEliminate redundant stack checks. Add checks for growing root traces.
Mike Pall [Sun, 21 Feb 2010 15:47:43 +0000 (16:47 +0100)] 
Eliminate redundant stack checks. Add checks for growing root traces.

15 years agoRethrow errors from trace exit handling from the right C frame.
Mike Pall [Fri, 19 Feb 2010 02:13:48 +0000 (03:13 +0100)] 
Rethrow errors from trace exit handling from the right C frame.

15 years agoAllow linking to already compiled functions.
Mike Pall [Thu, 18 Feb 2010 18:37:30 +0000 (19:37 +0100)] 
Allow linking to already compiled functions.

15 years agoUse a limited history buffer for tailcall counts while recording.
Mike Pall [Thu, 18 Feb 2010 18:32:13 +0000 (19:32 +0100)] 
Use a limited history buffer for tailcall counts while recording.

15 years agoAdapt bytecode patching/unpatching for hot calls.
Mike Pall [Thu, 18 Feb 2010 16:17:50 +0000 (17:17 +0100)] 
Adapt bytecode patching/unpatching for hot calls.

15 years agoUpdate trace recorder infrastructure for hot calls.
Mike Pall [Thu, 18 Feb 2010 02:43:09 +0000 (03:43 +0100)] 
Update trace recorder infrastructure for hot calls.

15 years agoFix some uses of tref_isint().
Mike Pall [Thu, 18 Feb 2010 02:24:18 +0000 (03:24 +0100)] 
Fix some uses of tref_isint().

15 years agoDrop obsolete shadow frame link stack.
Mike Pall [Thu, 18 Feb 2010 02:19:46 +0000 (03:19 +0100)] 
Drop obsolete shadow frame link stack.

15 years agoAdd more assertions to compare the recorder state and the VM state.
Mike Pall [Thu, 18 Feb 2010 01:49:08 +0000 (02:49 +0100)] 
Add more assertions to compare the recorder state and the VM state.

15 years agoClear frame gaps in recorder to avoid resurrecting previous refs.
Mike Pall [Thu, 18 Feb 2010 01:45:03 +0000 (02:45 +0100)] 
Clear frame gaps in recorder to avoid resurrecting previous refs.

15 years agoUpdate docs and changelog.
Mike Pall [Tue, 16 Feb 2010 23:47:55 +0000 (00:47 +0100)] 
Update docs and changelog.

15 years agoJust disable JIT compiler for non-SSE2 CPUs instead of aborting.
Mike Pall [Tue, 16 Feb 2010 22:39:24 +0000 (23:39 +0100)] 
Just disable JIT compiler for non-SSE2 CPUs instead of aborting.

15 years agoSplit CALL/FUNC recording.
Mike Pall [Tue, 16 Feb 2010 03:04:16 +0000 (04:04 +0100)] 
Split CALL/FUNC recording.

Record __call resolving and specialization for CALL* bytecodes.
Record argument adjustment and fast functions for FUNC* bytecodes.
Avoids all pending/immediate decisions for chained fast functions.
Cleaner semantics for pcall(), xpcall() and __tostring metamethod.
Prerequisite to drop the shadow frame link stack again.

15 years agoImprove error reporting for traces aborted in non-Lua functions.
Mike Pall [Mon, 15 Feb 2010 21:44:23 +0000 (22:44 +0100)] 
Improve error reporting for traces aborted in non-Lua functions.

15 years agoChange record vmevent parameters. Dump function id on FUNC*.
Mike Pall [Mon, 15 Feb 2010 21:26:33 +0000 (22:26 +0100)] 
Change record vmevent parameters. Dump function id on FUNC*.

15 years agoUse a different marker for hot calls.
Mike Pall [Mon, 15 Feb 2010 17:04:06 +0000 (18:04 +0100)] 
Use a different marker for hot calls.

15 years agoAdd generic function handling for debug modules.
Mike Pall [Mon, 15 Feb 2010 16:36:29 +0000 (17:36 +0100)] 
Add generic function handling for debug modules.

Don't call record vmevent for non-Lua functions.

15 years agoMinor cleanup of trace event handling.
Mike Pall [Mon, 15 Feb 2010 15:41:52 +0000 (16:41 +0100)] 
Minor cleanup of trace event handling.

15 years agoAdd missing FORI coercions in recorder.
Mike Pall [Mon, 15 Feb 2010 00:51:41 +0000 (01:51 +0100)] 
Add missing FORI coercions in recorder.

15 years agoImprove FOR loop const specialization and integerness checks.
Mike Pall [Mon, 15 Feb 2010 00:07:30 +0000 (01:07 +0100)] 
Improve FOR loop const specialization and integerness checks.

15 years agoImplement return hooks for Lua functions (zero-cost if disabled).
Mike Pall [Sun, 14 Feb 2010 19:48:33 +0000 (20:48 +0100)] 
Implement return hooks for Lua functions (zero-cost if disabled).

15 years agoImplement call hooks (zero-cost if disabled).
Mike Pall [Sun, 14 Feb 2010 16:47:03 +0000 (17:47 +0100)] 
Implement call hooks (zero-cost if disabled).