]> git.ipfire.org Git - thirdparty/LuaJIT.git/log
thirdparty/LuaJIT.git
12 years agoAdapt -jdump to unified string.format("%x", -1) behavior.
Mike Pall [Mon, 13 May 2013 17:39:34 +0000 (19:39 +0200)] 
Adapt -jdump to unified string.format("%x", -1) behavior.

12 years agoAbstract out default BUFHDR emitter.
Mike Pall [Mon, 13 May 2013 15:04:19 +0000 (17:04 +0200)] 
Abstract out default BUFHDR emitter.

12 years agoFix compiler warnings.
Mike Pall [Mon, 13 May 2013 10:13:11 +0000 (12:13 +0200)] 
Fix compiler warnings.

12 years agoMerge branch 'master' into v2.1
Mike Pall [Mon, 13 May 2013 08:21:25 +0000 (10:21 +0200)] 
Merge branch 'master' into v2.1

12 years agoFFI: Ignore CTF_LONG in ffi.istype().
Mike Pall [Mon, 13 May 2013 08:20:59 +0000 (10:20 +0200)] 
FFI: Ignore CTF_LONG in ffi.istype().

12 years agoBig renaming of string buffer/formatting/conversion functions.
Mike Pall [Mon, 13 May 2013 08:15:07 +0000 (10:15 +0200)] 
Big renaming of string buffer/formatting/conversion functions.

12 years agoRefactor raw object to pointer or string conversions.
Mike Pall [Sun, 12 May 2013 22:34:15 +0000 (00:34 +0200)] 
Refactor raw object to pointer or string conversions.

12 years agoRefactor internal string formatting.
Mike Pall [Sun, 12 May 2013 21:52:09 +0000 (23:52 +0200)] 
Refactor internal string formatting.

12 years agoRefactor bit.tohex().
Mike Pall [Sun, 12 May 2013 21:14:12 +0000 (23:14 +0200)] 
Refactor bit.tohex().

12 years agoRefactor string.format().
Mike Pall [Sun, 12 May 2013 20:37:02 +0000 (22:37 +0200)] 
Refactor string.format().

12 years agoMerge branch 'master' into v2.1
Mike Pall [Wed, 8 May 2013 09:10:46 +0000 (11:10 +0200)] 
Merge branch 'master' into v2.1

12 years agoMerge branch 'master' into v2.1
Mike Pall [Wed, 8 May 2013 09:06:45 +0000 (11:06 +0200)] 
Merge branch 'master' into v2.1

12 years agoFix optional argument handling in table.concat().
Mike Pall [Wed, 8 May 2013 09:05:43 +0000 (11:05 +0200)] 
Fix optional argument handling in table.concat().

12 years agoFix optional argument handling while recording builtins.
Mike Pall [Wed, 8 May 2013 08:46:43 +0000 (10:46 +0200)] 
Fix optional argument handling while recording builtins.

12 years agoCompile string.find() for fixed string searches (no patterns).
Mike Pall [Wed, 8 May 2013 08:37:52 +0000 (10:37 +0200)] 
Compile string.find() for fixed string searches (no patterns).

12 years agoPartially refactor string.find().
Mike Pall [Tue, 7 May 2013 18:44:58 +0000 (20:44 +0200)] 
Partially refactor string.find().

12 years agoMerge branch 'master' into v2.1
Mike Pall [Thu, 2 May 2013 00:07:38 +0000 (02:07 +0200)] 
Merge branch 'master' into v2.1

12 years agoFFI: Fix tailcall in lowest frame to C function with bool result.
Mike Pall [Thu, 2 May 2013 00:04:41 +0000 (02:04 +0200)] 
FFI: Fix tailcall in lowest frame to C function with bool result.

12 years agoMerge branch 'master' into v2.1
Mike Pall [Mon, 29 Apr 2013 12:29:11 +0000 (14:29 +0200)] 
Merge branch 'master' into v2.1

12 years agoFix builtin string to number conversion for overflow digits.
Mike Pall [Mon, 29 Apr 2013 12:28:10 +0000 (14:28 +0200)] 
Fix builtin string to number conversion for overflow digits.

12 years agoInhibit CSE for table.concat().
Mike Pall [Sun, 28 Apr 2013 09:31:41 +0000 (11:31 +0200)] 
Inhibit CSE for table.concat().

12 years agoCompile __concat metamethod.
Mike Pall [Sat, 27 Apr 2013 23:51:41 +0000 (01:51 +0200)] 
Compile __concat metamethod.

12 years agoFix BC_ISTYPE for WIN64 calling conventions.
Mike Pall [Sat, 27 Apr 2013 23:49:28 +0000 (01:49 +0200)] 
Fix BC_ISTYPE for WIN64 calling conventions.

12 years agoCompile table.concat().
Mike Pall [Sat, 27 Apr 2013 13:52:32 +0000 (15:52 +0200)] 
Compile table.concat().

12 years agoRefactor table.concat().
Mike Pall [Sat, 27 Apr 2013 13:51:50 +0000 (15:51 +0200)] 
Refactor table.concat().

12 years agoOptimize BUFHDR code generation.
Mike Pall [Fri, 26 Apr 2013 22:17:59 +0000 (00:17 +0200)] 
Optimize BUFHDR code generation.

Rematerialize const buffer pointer instead of spilling.

12 years agoCompile string.rep().
Mike Pall [Fri, 26 Apr 2013 20:55:24 +0000 (22:55 +0200)] 
Compile string.rep().

12 years agoRefactor string.rep().
Mike Pall [Fri, 26 Apr 2013 17:57:25 +0000 (19:57 +0200)] 
Refactor string.rep().

12 years agoAbstract out some common buffer operations.
Mike Pall [Fri, 26 Apr 2013 17:20:21 +0000 (19:20 +0200)] 
Abstract out some common buffer operations.

12 years agoReplace string.len with bytecode builtin.
Mike Pall [Fri, 26 Apr 2013 16:40:39 +0000 (18:40 +0200)] 
Replace string.len with bytecode builtin.

12 years agoChange semantics of buffer ops to simplify CSE and DCE.
Mike Pall [Fri, 26 Apr 2013 11:47:41 +0000 (13:47 +0200)] 
Change semantics of buffer ops to simplify CSE and DCE.

12 years agoFix MSVC build.
Mike Pall [Fri, 26 Apr 2013 08:38:24 +0000 (10:38 +0200)] 
Fix MSVC build.

12 years agoMerge branch 'master' into v2.1
Mike Pall [Thu, 25 Apr 2013 22:59:35 +0000 (00:59 +0200)] 
Merge branch 'master' into v2.1

12 years agoTighten requirements for non-default optimization flags.
Mike Pall [Thu, 25 Apr 2013 22:54:53 +0000 (00:54 +0200)] 
Tighten requirements for non-default optimization flags.

FOLD is required for FWD/DSE optimizations.

12 years agoCompile string.reverse(), string.lower(), string.upper().
Mike Pall [Thu, 25 Apr 2013 22:32:08 +0000 (00:32 +0200)] 
Compile string.reverse(), string.lower(), string.upper().

12 years agoRefactor string.reverse(), string.lower(), string.upper().
Mike Pall [Thu, 25 Apr 2013 22:31:10 +0000 (00:31 +0200)] 
Refactor string.reverse(), string.lower(), string.upper().

12 years agoFix FOLD rules for appending to string buffers.
Mike Pall [Thu, 25 Apr 2013 22:26:44 +0000 (00:26 +0200)] 
Fix FOLD rules for appending to string buffers.

12 years agoFix os.date() broken by d38d10a3.
Mike Pall [Wed, 24 Apr 2013 09:22:52 +0000 (11:22 +0200)] 
Fix os.date() broken by d38d10a3.

12 years agoCompile string.char().
Mike Pall [Tue, 23 Apr 2013 10:25:18 +0000 (12:25 +0200)] 
Compile string.char().

12 years agoUse explicit conversion type for IR_TOSTR. Add char conversion.
Mike Pall [Tue, 23 Apr 2013 00:20:03 +0000 (02:20 +0200)] 
Use explicit conversion type for IR_TOSTR. Add char conversion.

12 years agoFuse string creation into concats. Optimize single-char concats.
Mike Pall [Mon, 22 Apr 2013 22:56:03 +0000 (00:56 +0200)] 
Fuse string creation into concats. Optimize single-char concats.

12 years agoAlways emit TOSTR for non-string CAT operands. Fuse in backend.
Mike Pall [Mon, 22 Apr 2013 22:08:04 +0000 (00:08 +0200)] 
Always emit TOSTR for non-string CAT operands. Fuse in backend.

12 years agoFix PHI barrier in BUFPUT FOLD rule.
Mike Pall [Mon, 22 Apr 2013 20:37:22 +0000 (22:37 +0200)] 
Fix PHI barrier in BUFPUT FOLD rule.

12 years agoCombine IR instruction dispatch for all assembler backends.
Mike Pall [Mon, 22 Apr 2013 20:32:41 +0000 (22:32 +0200)] 
Combine IR instruction dispatch for all assembler backends.

12 years agoMerge branch 'master' into v2.1
Mike Pall [Mon, 22 Apr 2013 20:30:33 +0000 (22:30 +0200)] 
Merge branch 'master' into v2.1

12 years agoFix compiler warning.
Mike Pall [Mon, 22 Apr 2013 20:27:23 +0000 (22:27 +0200)] 
Fix compiler warning.

12 years agoUse same HREF+EQ/NE optimization in all assembler backends.
Mike Pall [Mon, 22 Apr 2013 18:47:39 +0000 (20:47 +0200)] 
Use same HREF+EQ/NE optimization in all assembler backends.

12 years agoReorganize generic operations common to all assembler backends.
Mike Pall [Mon, 22 Apr 2013 15:34:36 +0000 (17:34 +0200)] 
Reorganize generic operations common to all assembler backends.

12 years agoCompile string concatenations (BC_CAT).
Mike Pall [Sat, 20 Apr 2013 23:01:33 +0000 (01:01 +0200)] 
Compile string concatenations (BC_CAT).

12 years agoMove buffer shrinking to atomic GC phase.
Mike Pall [Sat, 20 Apr 2013 23:00:01 +0000 (01:00 +0200)] 
Move buffer shrinking to atomic GC phase.

12 years agoAdd generic load/store with offset to assembler backends.
Mike Pall [Sat, 20 Apr 2013 22:58:32 +0000 (00:58 +0200)] 
Add generic load/store with offset to assembler backends.

12 years agoMerge branch 'master' into v2.1
Mike Pall [Tue, 9 Apr 2013 14:35:02 +0000 (16:35 +0200)] 
Merge branch 'master' into v2.1

12 years agoDocument support for Lua 5.2 extension of loadfile().
Mike Pall [Tue, 9 Apr 2013 14:33:47 +0000 (16:33 +0200)] 
Document support for Lua 5.2 extension of loadfile().

12 years agoInhibit DSE for implicit loads via calls.
Mike Pall [Tue, 9 Apr 2013 09:50:33 +0000 (11:50 +0200)] 
Inhibit DSE for implicit loads via calls.

12 years agoMerge branch 'master' into v2.1
Mike Pall [Fri, 5 Apr 2013 18:24:24 +0000 (20:24 +0200)] 
Merge branch 'master' into v2.1

12 years agoFix jump-range constrained mcode allocation.
Mike Pall [Fri, 5 Apr 2013 18:22:41 +0000 (20:22 +0200)] 
Fix jump-range constrained mcode allocation.

12 years agoMerge branch 'master' into v2.1
Mike Pall [Thu, 4 Apr 2013 16:20:58 +0000 (18:20 +0200)] 
Merge branch 'master' into v2.1

12 years agoFix spurious red zone overflows in machine code generation.
Mike Pall [Thu, 4 Apr 2013 15:19:31 +0000 (17:19 +0200)] 
Fix spurious red zone overflows in machine code generation.

12 years agoFFI/x86: Fix register allocation for 64 bit comparisons.
Mike Pall [Thu, 4 Apr 2013 15:05:00 +0000 (17:05 +0200)] 
FFI/x86: Fix register allocation for 64 bit comparisons.

12 years agoTune string concatenation.
Mike Pall [Mon, 25 Mar 2013 15:44:19 +0000 (16:44 +0100)] 
Tune string concatenation.

12 years agoOptimize and refactor printing of numbers to buffers.
Mike Pall [Mon, 25 Mar 2013 15:41:13 +0000 (16:41 +0100)] 
Optimize and refactor printing of numbers to buffers.

12 years agoMerge branch 'master' into v2.1
Mike Pall [Sat, 23 Mar 2013 13:55:35 +0000 (14:55 +0100)] 
Merge branch 'master' into v2.1

12 years agoFFI: Fix snapshot substitution in SPLIT pass.
Mike Pall [Sat, 23 Mar 2013 13:51:23 +0000 (14:51 +0100)] 
FFI: Fix snapshot substitution in SPLIT pass.

12 years agoUse string buffer for string.format().
Mike Pall [Wed, 20 Mar 2013 21:45:52 +0000 (22:45 +0100)] 
Use string buffer for string.format().

12 years agoUse string buffer for string.dump().
Mike Pall [Wed, 20 Mar 2013 15:56:09 +0000 (16:56 +0100)] 
Use string buffer for string.dump().

12 years agoUse string buffer for os.date().
Mike Pall [Wed, 20 Mar 2013 15:53:15 +0000 (16:53 +0100)] 
Use string buffer for os.date().

12 years agoUse string buffer for table.concat().
Mike Pall [Mon, 18 Mar 2013 16:10:59 +0000 (17:10 +0100)] 
Use string buffer for table.concat().

12 years agoClean up TValue to buffer conversions.
Mike Pall [Mon, 18 Mar 2013 16:08:37 +0000 (17:08 +0100)] 
Clean up TValue to buffer conversions.

12 years agoMerge branch 'master' into v2.1
Mike Pall [Sun, 17 Mar 2013 13:22:20 +0000 (14:22 +0100)] 
Merge branch 'master' into v2.1

12 years agoDynASM: Improve validation of local backwards relocations.
Mike Pall [Sun, 17 Mar 2013 13:20:40 +0000 (14:20 +0100)] 
DynASM: Improve validation of local backwards relocations.

12 years agoFFI: Add 64 bit bitwise operations.
Mike Pall [Wed, 13 Mar 2013 21:44:01 +0000 (22:44 +0100)] 
FFI: Add 64 bit bitwise operations.

12 years agoMerge branch 'master' into v2.1
Mike Pall [Wed, 13 Mar 2013 20:59:40 +0000 (21:59 +0100)] 
Merge branch 'master' into v2.1

12 years agoFix rotate definitions for variable shifts.
Mike Pall [Wed, 13 Mar 2013 20:58:53 +0000 (21:58 +0100)] 
Fix rotate definitions for variable shifts.

12 years agoARM: Rearrange global_State to satisfy imm12 encoding constraints.
Mike Pall [Wed, 13 Mar 2013 16:12:23 +0000 (17:12 +0100)] 
ARM: Rearrange global_State to satisfy imm12 encoding constraints.

12 years agoMerge branch 'master' into v2.1
Mike Pall [Mon, 4 Mar 2013 12:34:01 +0000 (13:34 +0100)] 
Merge branch 'master' into v2.1

12 years agoAdd missing GC steps for io.* functions.
Mike Pall [Sun, 3 Mar 2013 20:18:22 +0000 (21:18 +0100)] 
Add missing GC steps for io.* functions.

12 years agoMerge branch 'master' into v2.1
Mike Pall [Thu, 28 Feb 2013 16:53:45 +0000 (17:53 +0100)] 
Merge branch 'master' into v2.1

12 years agoMIPS: Fix cache flush/sync for JIT-compiled code jump area.
Mike Pall [Thu, 28 Feb 2013 16:52:31 +0000 (17:52 +0100)] 
MIPS: Fix cache flush/sync for JIT-compiled code jump area.

12 years agoARM: Fix cache flush/sync for exit stubs of JIT-compiled code.
Mike Pall [Thu, 28 Feb 2013 16:51:16 +0000 (17:51 +0100)] 
ARM: Fix cache flush/sync for exit stubs of JIT-compiled code.

12 years agoString buffer refactoring, part 4.
Mike Pall [Thu, 28 Feb 2013 12:37:56 +0000 (13:37 +0100)] 
String buffer refactoring, part 4.

Add lua_State pointer to SBuf for buffer resizing.

12 years agoString buffer refactoring, part 3.
Mike Pall [Thu, 28 Feb 2013 01:31:30 +0000 (02:31 +0100)] 
String buffer refactoring, part 3.

Switch to pointers for start/end of buffer in lexer.

12 years agoCleanup lexer source code.
Mike Pall [Thu, 28 Feb 2013 00:11:49 +0000 (01:11 +0100)] 
Cleanup lexer source code.

12 years agoString buffer refactoring, part 2.
Mike Pall [Wed, 27 Feb 2013 20:17:27 +0000 (21:17 +0100)] 
String buffer refactoring, part 2.

Switch to pointers for start/pos/end of buffer.
Abstract out some buffer writers.

12 years agoString buffer refactoring, part 1.
Mike Pall [Wed, 27 Feb 2013 16:11:31 +0000 (17:11 +0100)] 
String buffer refactoring, part 1.

Move string buffer handling to lj_buf.*.
Use common buffer resizing function.

12 years agoMerge branch 'master' into v2.1
Mike Pall [Tue, 26 Feb 2013 17:31:12 +0000 (18:31 +0100)] 
Merge branch 'master' into v2.1

12 years agoAllow changing *.dll/*.lib name in msvcbuild.bat.
Mike Pall [Tue, 26 Feb 2013 17:31:01 +0000 (18:31 +0100)] 
Allow changing *.dll/*.lib name in msvcbuild.bat.

12 years agoReplace table.remove with bytecode builtin.
Mike Pall [Sun, 24 Feb 2013 16:59:04 +0000 (17:59 +0100)] 
Replace table.remove with bytecode builtin.

12 years agoFix genlibbc.
Mike Pall [Sun, 24 Feb 2013 16:58:19 +0000 (17:58 +0100)] 
Fix genlibbc.

12 years agoMerge branch 'master' into v2.1
Mike Pall [Sun, 24 Feb 2013 11:43:15 +0000 (12:43 +0100)] 
Merge branch 'master' into v2.1

12 years agoProperly fix MSVC intrinsics for older versions.
Mike Pall [Sun, 24 Feb 2013 11:41:53 +0000 (12:41 +0100)] 
Properly fix MSVC intrinsics for older versions.

12 years agoReplace table.getn/foreach/foreachi with bytecode builtins.
Mike Pall [Sat, 23 Feb 2013 01:17:50 +0000 (02:17 +0100)] 
Replace table.getn/foreach/foreachi with bytecode builtins.

12 years agoAdd special bytecodes for builtins.
Mike Pall [Sat, 23 Feb 2013 01:09:19 +0000 (02:09 +0100)] 
Add special bytecodes for builtins.

BC_ISTYPE, BC_ISNUM: fast type checks/coercions.
BC_TGETR, BC_TSETR: fast rawgeti/rawseti, no type checks for table/key.

12 years agoRemove obsolete non-truncating number to integer conversions.
Mike Pall [Fri, 22 Feb 2013 19:39:25 +0000 (20:39 +0100)] 
Remove obsolete non-truncating number to integer conversions.

12 years agoDon't modify generated libbc header if unchanged.
Mike Pall [Fri, 22 Feb 2013 11:29:54 +0000 (12:29 +0100)] 
Don't modify generated libbc header if unchanged.

12 years agoReplace math.deg/math.rad with builtin Lua function.
Mike Pall [Fri, 22 Feb 2013 00:44:17 +0000 (01:44 +0100)] 
Replace math.deg/math.rad with builtin Lua function.

12 years agoAdd support for embedding LuaJIT bytecode for builtins.
Mike Pall [Fri, 22 Feb 2013 00:40:41 +0000 (01:40 +0100)] 
Add support for embedding LuaJIT bytecode for builtins.

12 years agox86/x64: Drop xmm register/memory move tuning for K8.
Mike Pall [Thu, 21 Feb 2013 16:04:00 +0000 (17:04 +0100)] 
x86/x64: Drop xmm register/memory move tuning for K8.

12 years agox86: Remove x87 support from interpreter.
Mike Pall [Thu, 21 Feb 2013 15:56:59 +0000 (16:56 +0100)] 
x86: Remove x87 support from interpreter.

SSE2 required from now on.

12 years agoBRANCH LuaJIT-2.1
Mike Pall [Thu, 21 Feb 2013 15:49:04 +0000 (16:49 +0100)] 
BRANCH LuaJIT-2.1

12 years agoFix memory access check for fast string interning.
Mike Pall [Thu, 21 Feb 2013 15:22:26 +0000 (16:22 +0100)] 
Fix memory access check for fast string interning.