]> git.ipfire.org Git - thirdparty/LuaJIT.git/log
thirdparty/LuaJIT.git
12 years agoExtended Android build instructions.
Mike Pall [Wed, 17 Oct 2012 12:23:29 +0000 (14:23 +0200)] 
Extended Android build instructions.

12 years agoFix Android/x86 build.
Mike Pall [Wed, 17 Oct 2012 12:22:26 +0000 (14:22 +0200)] 
Fix Android/x86 build.

12 years agoRELEASE LuaJIT-2.0.0-beta11 v2.0.0-beta11
Mike Pall [Tue, 16 Oct 2012 18:13:01 +0000 (20:13 +0200)] 
RELEASE LuaJIT-2.0.0-beta11

12 years agoUpdate changelog.
Mike Pall [Tue, 16 Oct 2012 17:44:48 +0000 (19:44 +0200)] 
Update changelog.

12 years agoMIPS: Compile math.sqrt() to sqrt.d instruction.
Mike Pall [Mon, 15 Oct 2012 19:28:10 +0000 (21:28 +0200)] 
MIPS: Compile math.sqrt() to sqrt.d instruction.

12 years agoPPC: Compile math.sqrt() to fsqrt instruction.
Mike Pall [Mon, 15 Oct 2012 19:23:20 +0000 (21:23 +0200)] 
PPC: Compile math.sqrt() to fsqrt instruction.

12 years agoARM: Drop hard-fp variants of floor/ceil/trunc.
Mike Pall [Mon, 15 Oct 2012 14:53:03 +0000 (16:53 +0200)] 
ARM: Drop hard-fp variants of floor/ceil/trunc.

Soft-fp variants are faster on a Cortex-A9. Duh.

12 years agoDynASM/ARM: Fix conditional VFP instruction encoding.
Mike Pall [Mon, 15 Oct 2012 14:52:18 +0000 (16:52 +0200)] 
DynASM/ARM: Fix conditional VFP instruction encoding.

12 years agoARM, MIPS: Fix workaround for argument GPRs vs. FPR remat.
Mike Pall [Mon, 15 Oct 2012 13:47:15 +0000 (15:47 +0200)] 
ARM, MIPS: Fix workaround for argument GPRs vs. FPR remat.

12 years agoWorkaround for broken Android sprintf("%g", -0.0).
Mike Pall [Sun, 14 Oct 2012 23:31:56 +0000 (01:31 +0200)] 
Workaround for broken Android sprintf("%g", -0.0).

12 years agoUpdate Android install docs.
Mike Pall [Sun, 14 Oct 2012 23:09:56 +0000 (01:09 +0200)] 
Update Android install docs.

12 years agoAdd note to recalcitrant distro maintainers.
Mike Pall [Sun, 14 Oct 2012 19:52:35 +0000 (21:52 +0200)] 
Add note to recalcitrant distro maintainers.

12 years agoDocumentation cleanup and reorganization.
Mike Pall [Sun, 14 Oct 2012 19:48:04 +0000 (21:48 +0200)] 
Documentation cleanup and reorganization.

12 years agoDocumentation layout changes.
Mike Pall [Sat, 13 Oct 2012 22:47:26 +0000 (00:47 +0200)] 
Documentation layout changes.

12 years agoFrom Lua 5.2: Add package.loadlib(libname, "*").
Mike Pall [Fri, 12 Oct 2012 12:42:40 +0000 (14:42 +0200)] 
From Lua 5.2: Add package.loadlib(libname, "*").

12 years agoFrom Lua 5.2: Add format options to io.lines().
Mike Pall [Fri, 12 Oct 2012 12:11:41 +0000 (14:11 +0200)] 
From Lua 5.2: Add format options to io.lines().

12 years agoFix assertion.
Mike Pall [Thu, 11 Oct 2012 19:40:46 +0000 (21:40 +0200)] 
Fix assertion.

12 years agoFFI: Update docs on FFI semantics.
Mike Pall [Wed, 10 Oct 2012 17:57:00 +0000 (19:57 +0200)] 
FFI: Update docs on FFI semantics.

12 years agoFFI: Compile ffi.gc().
Mike Pall [Wed, 10 Oct 2012 16:56:16 +0000 (18:56 +0200)] 
FFI: Compile ffi.gc().

12 years agoFFI: Compile ffi.sizeof(), ffi.alignof() and ffi.offsetof().
Mike Pall [Wed, 10 Oct 2012 16:16:18 +0000 (18:16 +0200)] 
FFI: Compile ffi.sizeof(), ffi.alignof() and ffi.offsetof().

12 years agoFFI: Compile array/struct copies.
Mike Pall [Tue, 9 Oct 2012 19:50:09 +0000 (21:50 +0200)] 
FFI: Compile array/struct copies.

12 years agoFFI: Optimize ffi.copy() and ffi.fill().
Mike Pall [Tue, 9 Oct 2012 19:49:08 +0000 (21:49 +0200)] 
FFI: Optimize ffi.copy() and ffi.fill().

12 years agoAdd LJ_TARGET_UNALIGNED.
Mike Pall [Tue, 9 Oct 2012 19:42:42 +0000 (21:42 +0200)] 
Add LJ_TARGET_UNALIGNED.

12 years agoAdd FOLD rules for CONV.int.i8/u8/i16/u16 of KINT.
Mike Pall [Tue, 9 Oct 2012 19:36:56 +0000 (21:36 +0200)] 
Add FOLD rules for CONV.int.i8/u8/i16/u16 of KINT.

12 years agoDon't use stack unwinding for lua_yield().
Mike Pall [Tue, 9 Oct 2012 11:19:57 +0000 (13:19 +0200)] 
Don't use stack unwinding for lua_yield().

12 years agoFFI: Add support for copy constructors.
Mike Pall [Mon, 8 Oct 2012 15:14:18 +0000 (17:14 +0200)] 
FFI: Add support for copy constructors.

12 years agoPPC: Fix string.sub() range check.
Mike Pall [Sun, 7 Oct 2012 15:12:28 +0000 (17:12 +0200)] 
PPC: Fix string.sub() range check.

12 years agoFrom Lua 5.2: Add string.rep(s, n, sep).
Mike Pall [Sun, 7 Oct 2012 15:11:39 +0000 (17:11 +0200)] 
From Lua 5.2: Add string.rep(s, n, sep).

12 years agoFrom Lua 5.2: Add math.log(x, base).
Mike Pall [Sun, 7 Oct 2012 13:47:11 +0000 (15:47 +0200)] 
From Lua 5.2: Add math.log(x, base).

12 years agoClarify comments in Makefile on -DLUAJIT_ENABLE_LUA52COMPAT.
Mike Pall [Thu, 4 Oct 2012 11:55:34 +0000 (13:55 +0200)] 
Clarify comments in Makefile on -DLUAJIT_ENABLE_LUA52COMPAT.

12 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.

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

12 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().

12 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.

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

12 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().

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

12 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.

12 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.

12 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.

12 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.

12 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.

12 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.

12 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.

12 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.

12 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.

12 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.

12 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.

12 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.

12 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.

12 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*().

12 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.

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

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

12 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().

12 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.

12 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().

12 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.

12 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.

12 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.

12 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.

12 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.

12 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.

12 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.

12 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.

12 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.

12 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.

12 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.

12 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.

12 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.

12 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.

12 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).

12 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.

12 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.

12 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.

12 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.

12 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.

12 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.

12 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.