]> git.ipfire.org Git - thirdparty/LuaJIT.git/log
thirdparty/LuaJIT.git
13 years agoFix scope for resolving break labels.
Mike Pall [Wed, 3 Oct 2012 09:53:18 +0000 (11:53 +0200)] 
Fix scope for resolving break labels.

13 years agoFix x64 build.
Mike Pall [Tue, 2 Oct 2012 14:50:13 +0000 (16:50 +0200)] 
Fix x64 build.

13 years agoFrom Lua 5.2: '%s' option to string.format() behaves like tostring().
Mike Pall [Tue, 2 Oct 2012 09:59:32 +0000 (11:59 +0200)] 
From Lua 5.2: '%s' option to string.format() behaves like tostring().

13 years agoFrom Lua 5.2: Return nil for bad position in string.find().
Mike Pall [Tue, 2 Oct 2012 09:56:33 +0000 (11:56 +0200)] 
From Lua 5.2: Return nil for bad position in string.find().

Needs -DLUAJIT_ENABLE_LUA52COMPAT.

13 years agoMove a GC macro.
Mike Pall [Tue, 2 Oct 2012 07:57:49 +0000 (09:57 +0200)] 
Move a GC macro.

13 years agoFrom Lua 5.2: Add luaL_traceback().
Mike Pall [Mon, 1 Oct 2012 18:45:30 +0000 (20:45 +0200)] 
From Lua 5.2: Add luaL_traceback().

13 years agoUpdate dependencies.
Mike Pall [Fri, 28 Sep 2012 17:32:39 +0000 (19:32 +0200)] 
Update dependencies.

13 years agoFrom Lua 5.2: Allow mixed metamethods for ordered comparisons.
Mike Pall [Fri, 28 Sep 2012 17:30:08 +0000 (19:30 +0200)] 
From Lua 5.2: Allow mixed metamethods for ordered comparisons.

Needs -DLUAJIT_ENABLE_LUA52COMPAT.

13 years agoFrom Lua 5.2: Remove error for ambiguous function call syntax.
Mike Pall [Fri, 28 Sep 2012 16:12:43 +0000 (18:12 +0200)] 
From Lua 5.2: Remove error for ambiguous function call syntax.

Needs -DLUAJIT_ENABLE_LUA52COMPAT.

13 years agoFrom Lua 5.2: Return file object for io.write() and file:write().
Mike Pall [Fri, 28 Sep 2012 15:54:18 +0000 (17:54 +0200)] 
From Lua 5.2: Return file object for io.write() and file:write().

Needs -DLUAJIT_ENABLE_LUA52COMPAT.

13 years agoFrom Lua 5.2: Add table.pack(). Needs -DLUAJIT_ENABLE_LUA52COMPAT.
Mike Pall [Fri, 28 Sep 2012 15:29:17 +0000 (17:29 +0200)] 
From Lua 5.2: Add table.pack(). Needs -DLUAJIT_ENABLE_LUA52COMPAT.

13 years agoFFI: ctypeid of ctype object is immutable.
Mike Pall [Thu, 27 Sep 2012 12:48:13 +0000 (14:48 +0200)] 
FFI: ctypeid of ctype object is immutable.

13 years agoFold KPTR + offset in SPLIT pass.
Mike Pall [Thu, 27 Sep 2012 12:39:16 +0000 (14:39 +0200)] 
Fold KPTR + offset in SPLIT pass.

13 years agox86: Fix register allocation for calls returning register pair.
Mike Pall [Thu, 27 Sep 2012 12:16:18 +0000 (14:16 +0200)] 
x86: Fix register allocation for calls returning register pair.

13 years agoFrom Lua 5.2: Extended results from os.execute() and pipe:close().
Mike Pall [Mon, 24 Sep 2012 17:00:54 +0000 (19:00 +0200)] 
From Lua 5.2: Extended results from os.execute() and pipe:close().

Needs -DLUAJIT_ENABLE_LUA52COMPAT.

13 years agoFrom Lua 5.2: Add debug.getuservalue() and debug.setuservalue().
Mike Pall [Mon, 24 Sep 2012 15:52:32 +0000 (17:52 +0200)] 
From Lua 5.2: Add debug.getuservalue() and debug.setuservalue().

Needs -DLUAJIT_ENABLE_LUA52COMPAT.

13 years agoFrom Lua 5.2: Add rawlen(). Needs -DLUAJIT_ENABLE_LUA52COMPAT.
Mike Pall [Mon, 24 Sep 2012 15:33:32 +0000 (17:33 +0200)] 
From Lua 5.2: Add rawlen(). Needs -DLUAJIT_ENABLE_LUA52COMPAT.

13 years agoRearrange library functions to get a fixed FF_next.
Mike Pall [Mon, 24 Sep 2012 15:13:53 +0000 (17:13 +0200)] 
Rearrange library functions to get a fixed FF_next.

13 years agoRemove some library functions for no-JIT/no-FFI builds.
Mike Pall [Mon, 24 Sep 2012 14:56:07 +0000 (16:56 +0200)] 
Remove some library functions for no-JIT/no-FFI builds.

13 years agoAllow conditional inclusion of builtin library functions.
Mike Pall [Mon, 24 Sep 2012 14:55:10 +0000 (16:55 +0200)] 
Allow conditional inclusion of builtin library functions.

13 years agoFrom Lua 5.2: Add mode and env arguments to load*().
Mike Pall [Fri, 21 Sep 2012 14:33:14 +0000 (16:33 +0200)] 
From Lua 5.2: Add mode and env arguments to load*().

13 years agoMove load/dump functions to lj_load.c. Add load modes.
Mike Pall [Fri, 21 Sep 2012 14:32:24 +0000 (16:32 +0200)] 
Move load/dump functions to lj_load.c. Add load modes.

13 years agoFix package.searchpath().
Mike Pall [Fri, 21 Sep 2012 14:14:17 +0000 (16:14 +0200)] 
Fix package.searchpath().

13 years agoFix last commit.
Mike Pall [Thu, 20 Sep 2012 15:41:32 +0000 (17:41 +0200)] 
Fix last commit.

13 years agoFrom Lua 5.2: Add debug.upvalueid() and debug.upvaluejoin().
Mike Pall [Thu, 20 Sep 2012 15:36:15 +0000 (17:36 +0200)] 
From Lua 5.2: Add debug.upvalueid() and debug.upvaluejoin().

Ditto for lua_upvalueid() and lua_upvaluejoin().

13 years agoFrom Lua 5.2: debug.getinfo(..., "u") returns nparams and isvararg.
Mike Pall [Thu, 20 Sep 2012 13:50:20 +0000 (15:50 +0200)] 
From Lua 5.2: debug.getinfo(..., "u") returns nparams and isvararg.

13 years agoFix 'f' and 'L' options for debug.getinfo() and lua_getinfo().
Mike Pall [Thu, 20 Sep 2012 13:19:48 +0000 (15:19 +0200)] 
Fix 'f' and 'L' options for debug.getinfo() and lua_getinfo().

13 years agoDisable LUA_COMPAT_GFIND and LUA_COMPAT_MOD in Lua 5.2 mode.
Mike Pall [Wed, 19 Sep 2012 16:14:00 +0000 (18:14 +0200)] 
Disable LUA_COMPAT_GFIND and LUA_COMPAT_MOD in Lua 5.2 mode.

13 years agoFrom Lua 5.2: debug.setmetatable() returns object.
Mike Pall [Wed, 19 Sep 2012 14:33:50 +0000 (16:33 +0200)] 
From Lua 5.2: debug.setmetatable() returns object.

Needs -DLUAJIT_ENABLE_LUA52COMPAT.

13 years agoFrom Lua 5.2: 'break' allowed anywhere.
Mike Pall [Wed, 19 Sep 2012 14:30:46 +0000 (16:30 +0200)] 
From Lua 5.2: 'break' allowed anywhere.

Needs -DLUAJIT_ENABLE_LUA52COMPAT.

13 years agoFrom Lua 5.2: debug.getlocal() accepts function arg, too.
Mike Pall [Wed, 19 Sep 2012 10:08:35 +0000 (12:08 +0200)] 
From Lua 5.2: debug.getlocal() accepts function arg, too.

13 years agoFrom Lua 5.2: debug.getlocal()/setlocal() treats slot < 0 as vararg.
Mike Pall [Wed, 19 Sep 2012 10:06:56 +0000 (12:06 +0200)] 
From Lua 5.2: debug.getlocal()/setlocal() treats slot < 0 as vararg.

13 years agoFrom Lua 5.2: debug.getupvalue() returns "" for C function upvalues.
Mike Pall [Wed, 19 Sep 2012 10:03:03 +0000 (12:03 +0200)] 
From Lua 5.2: debug.getupvalue() returns "" for C function upvalues.

13 years agoFrom Lua 5.2: Add goto and ::label:: statements.
Mike Pall [Sun, 16 Sep 2012 16:46:04 +0000 (18:46 +0200)] 
From Lua 5.2: Add goto and ::label:: statements.

13 years agoFix despecialization of ITERN when already running.
Mike Pall [Wed, 12 Sep 2012 14:58:47 +0000 (16:58 +0200)] 
Fix despecialization of ITERN when already running.

13 years agoUse 0/1 macro for Lua 5.2 compatibility.
Mike Pall [Wed, 12 Sep 2012 09:20:47 +0000 (11:20 +0200)] 
Use 0/1 macro for Lua 5.2 compatibility.

13 years agoAdd more assertions for stack consistency during recording.
Mike Pall [Wed, 12 Sep 2012 09:02:19 +0000 (11:02 +0200)] 
Add more assertions for stack consistency during recording.

13 years agoFFI: Correctly propagate alignment when interning nested types.
Mike Pall [Mon, 10 Sep 2012 16:05:54 +0000 (18:05 +0200)] 
FFI: Correctly propagate alignment when interning nested types.

13 years agoFFI: Always resolve metamethods for pointers to structs.
Mike Pall [Sat, 8 Sep 2012 19:03:40 +0000 (21:03 +0200)] 
FFI: Always resolve metamethods for pointers to structs.

13 years agoFFI: Handle __pairs/__ipairs metamethods for cdata objects.
Mike Pall [Mon, 3 Sep 2012 19:10:10 +0000 (21:10 +0200)] 
FFI: Handle __pairs/__ipairs metamethods for cdata objects.

13 years agoFix recording of ctype() constructors for pointers.
Mike Pall [Mon, 3 Sep 2012 19:08:37 +0000 (21:08 +0200)] 
Fix recording of ctype() constructors for pointers.

13 years agoPreserve snapshot #0 PC for all traces (potential gcstep exit).
Mike Pall [Fri, 31 Aug 2012 22:58:00 +0000 (00:58 +0200)] 
Preserve snapshot #0 PC for all traces (potential gcstep exit).

13 years agoAdd check for unsupported MIPS soft-float targets.
Mike Pall [Thu, 30 Aug 2012 08:31:26 +0000 (10:31 +0200)] 
Add check for unsupported MIPS soft-float targets.

13 years agoLimit recursion depth in string.match() et al.
Mike Pall [Tue, 28 Aug 2012 19:22:23 +0000 (21:22 +0200)] 
Limit recursion depth in string.match() et al.

13 years agoDon't constify upvalues that may retain large amounts of memory.
Mike Pall [Tue, 28 Aug 2012 13:24:53 +0000 (15:24 +0200)] 
Don't constify upvalues that may retain large amounts of memory.

13 years agoFFI: Detect type punning through unions.
Mike Pall [Mon, 27 Aug 2012 18:52:15 +0000 (20:52 +0200)] 
FFI: Detect type punning through unions.

13 years agoAdd table of IR type sizes.
Mike Pall [Mon, 27 Aug 2012 18:27:01 +0000 (20:27 +0200)] 
Add table of IR type sizes.

13 years agoARM, PPC, MIPS: Improve XLOAD operand fusion and register hinting.
Mike Pall [Mon, 27 Aug 2012 18:25:54 +0000 (20:25 +0200)] 
ARM, PPC, MIPS: Improve XLOAD operand fusion and register hinting.

13 years agoFix underflow handling in builtin string to number conversion.
Mike Pall [Mon, 27 Aug 2012 12:26:50 +0000 (14:26 +0200)] 
Fix underflow handling in builtin string to number conversion.

13 years agoReplace some trivial uses of fprintf() with fputs.
Mike Pall [Sun, 26 Aug 2012 18:13:23 +0000 (20:13 +0200)] 
Replace some trivial uses of fprintf() with fputs.

13 years agoReplace divisions with simpler code.
Mike Pall [Sun, 26 Aug 2012 17:41:35 +0000 (19:41 +0200)] 
Replace divisions with simpler code.

13 years agoFix compilation with FFI disabled.
Mike Pall [Sun, 26 Aug 2012 12:36:00 +0000 (14:36 +0200)] 
Fix compilation with FFI disabled.

13 years agoRemove old Makefile rules.
Mike Pall [Sun, 26 Aug 2012 09:58:58 +0000 (11:58 +0200)] 
Remove old Makefile rules.

13 years agoReplace strtod() with builtin string to number conversion.
Mike Pall [Sat, 25 Aug 2012 21:02:29 +0000 (23:02 +0200)] 
Replace strtod() with builtin string to number conversion.

13 years agoAdd support for '%a' and '%A' to string.format.
Mike Pall [Sat, 25 Aug 2012 20:46:22 +0000 (22:46 +0200)] 
Add support for '%a' and '%A' to string.format.

13 years agoARM: Fix base register coalescing.
Mike Pall [Sat, 25 Aug 2012 16:38:30 +0000 (18:38 +0200)] 
ARM: Fix base register coalescing.

13 years agoARM: Fix commit ceaa60c0.
Mike Pall [Sat, 25 Aug 2012 12:13:47 +0000 (14:13 +0200)] 
ARM: Fix commit ceaa60c0.

13 years agoMinor fixes to FOLD rules.
Mike Pall [Mon, 20 Aug 2012 16:45:50 +0000 (18:45 +0200)] 
Minor fixes to FOLD rules.

13 years agoARM: Fix hard-float lj_vm_trunc() (used by compiled math.modf).
Mike Pall [Sun, 19 Aug 2012 20:37:43 +0000 (22:37 +0200)] 
ARM: Fix hard-float lj_vm_trunc() (used by compiled math.modf).

13 years agoMIPS: Don't use argument GPRs to rematerialize FPR arguments.
Mike Pall [Sun, 19 Aug 2012 16:44:29 +0000 (18:44 +0200)] 
MIPS: Don't use argument GPRs to rematerialize FPR arguments.

13 years agoARM: Don't use argument GPRs to rematerialize FPR arguments.
Mike Pall [Sun, 19 Aug 2012 16:43:04 +0000 (18:43 +0200)] 
ARM: Don't use argument GPRs to rematerialize FPR arguments.

13 years agoARM, MIPS, PPC: Rematerialize FPR invariants first.
Mike Pall [Sun, 19 Aug 2012 16:42:08 +0000 (18:42 +0200)] 
ARM, MIPS, PPC: Rematerialize FPR invariants first.

13 years agoMIPS: Fix calls to floor/ceil/trunc.
Mike Pall [Sun, 19 Aug 2012 16:41:34 +0000 (18:41 +0200)] 
MIPS: Fix calls to floor/ceil/trunc.

13 years agoARM: Fix calls to hard-float floor/ceil/trunc.
Mike Pall [Sun, 19 Aug 2012 16:39:47 +0000 (18:39 +0200)] 
ARM: Fix calls to hard-float floor/ceil/trunc.

13 years agoFix shrinking of direct mapped block in builtin allocator.
Mike Pall [Thu, 16 Aug 2012 11:18:40 +0000 (13:18 +0200)] 
Fix shrinking of direct mapped block in builtin allocator.

13 years agoFix last commit.
Mike Pall [Wed, 15 Aug 2012 19:08:00 +0000 (21:08 +0200)] 
Fix last commit.

13 years agoFOLD x / 2^k ==> x * 2^-k.
Mike Pall [Wed, 15 Aug 2012 14:17:34 +0000 (16:17 +0200)] 
FOLD x / 2^k ==> x * 2^-k.

13 years agox86: Simplify error message for CPUs lacking CMOV.
Mike Pall [Tue, 14 Aug 2012 11:19:45 +0000 (13:19 +0200)] 
x86: Simplify error message for CPUs lacking CMOV.

13 years agoFFI: Don't keep CType * across call. Callback may reallocate table.
Mike Pall [Sat, 11 Aug 2012 23:16:49 +0000 (01:16 +0200)] 
FFI: Don't keep CType * across call. Callback may reallocate table.

13 years agoDo not use DWARF unwinder on Windows.
Mike Pall [Sat, 11 Aug 2012 03:41:09 +0000 (05:41 +0200)] 
Do not use DWARF unwinder on Windows.

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.