]>
git.ipfire.org Git - thirdparty/LuaJIT.git/log
Mike Pall [Tue, 5 Oct 2010 17:35:04 +0000 (19:35 +0200)]
PPC: Add math.abs/deg/rad/min/max() fast functions.
Mike Pall [Tue, 5 Oct 2010 17:27:33 +0000 (19:27 +0200)]
PPC: Remove pointless optimization in BC_UNM.
Mike Pall [Mon, 4 Oct 2010 23:47:39 +0000 (01:47 +0200)]
PPC: Add table.getn() fast function.
Mike Pall [Mon, 4 Oct 2010 23:43:22 +0000 (01:43 +0200)]
PPC: Add tonumber() and tostring() fast functions.
Mike Pall [Mon, 4 Oct 2010 23:41:51 +0000 (01:41 +0200)]
PPC: Add getmetatable(), setmetatable() and rawget() fast functions.
Mike Pall [Mon, 4 Oct 2010 23:39:48 +0000 (01:39 +0200)]
PPC: Add assert() and type() fast functions.
Mike Pall [Mon, 4 Oct 2010 23:36:54 +0000 (01:36 +0200)]
Update docs for PPC port. Clarify and extend install instructions.
Mike Pall [Fri, 1 Oct 2010 21:47:29 +0000 (23:47 +0200)]
PPC: Add pcall() and xpcall() fast functions.
Mike Pall [Fri, 1 Oct 2010 21:45:56 +0000 (23:45 +0200)]
PPC: Add ipairs() fast function and its iterator.
Mike Pall [Fri, 1 Oct 2010 21:43:39 +0000 (23:43 +0200)]
PPC: Add next() and pairs() fast functions.
Mike Pall [Thu, 30 Sep 2010 23:44:02 +0000 (01:44 +0200)]
PPC: Add BC_ITERN and BC_ISNEXT.
Mike Pall [Thu, 30 Sep 2010 19:55:32 +0000 (21:55 +0200)]
Specialize bytecode for pairs()/next() iterator. Speedup: 3.5x.
Parser predict pairs/next and emits specialized bytecode.
Bytecode is descpecialized at runtime if the prediction was wrong.
Store slot index in hidden control var to avoid key lookups.
Mike Pall [Thu, 30 Sep 2010 15:47:32 +0000 (17:47 +0200)]
x64: Use 64 bit slot copies in the interpreter.
Mike Pall [Thu, 30 Sep 2010 00:58:29 +0000 (02:58 +0200)]
PPC: Add dispatch to fast function fallback handlers.
Mike Pall [Thu, 30 Sep 2010 00:56:54 +0000 (02:56 +0200)]
PPC: Add bit.* fast functions.
Mike Pall [Thu, 30 Sep 2010 00:54:33 +0000 (02:54 +0200)]
PPC: Add basic infrastructure for fast functions.
Mike Pall [Tue, 28 Sep 2010 15:50:33 +0000 (17:50 +0200)]
PPC: Add frame unwind info for assembler part.
Add define for target-specific exception handler return register.
Mike Pall [Tue, 28 Sep 2010 12:59:33 +0000 (14:59 +0200)]
PPC: Don't use callee-save registers when folding '%' operator.
Mike Pall [Tue, 28 Sep 2010 12:20:49 +0000 (14:20 +0200)]
Fix checks for minimum required compiler versions.
Mike Pall [Thu, 23 Sep 2010 00:42:29 +0000 (02:42 +0200)]
PPC: Add dispatch target for call hook.
Mike Pall [Thu, 23 Sep 2010 00:38:39 +0000 (02:38 +0200)]
PPC: Add dispatch targets for instruction and return hooks.
Mike Pall [Thu, 23 Sep 2010 00:35:51 +0000 (02:35 +0200)]
PPC: Add lj_vm_resume().
Mike Pall [Wed, 22 Sep 2010 23:30:53 +0000 (01:30 +0200)]
Workaround for missing fseeko/ftello prototypes on ancient glibc.
Mike Pall [Wed, 22 Sep 2010 20:59:41 +0000 (22:59 +0200)]
x86/x64: Fix stack overflow handling for coroutine results.
Mike Pall [Wed, 22 Sep 2010 19:16:16 +0000 (21:16 +0200)]
Fix stack growth for coroutine.wrap().
Mike Pall [Tue, 21 Sep 2010 19:43:29 +0000 (21:43 +0200)]
PPC: Reschedule continuation dispatch.
Mike Pall [Tue, 21 Sep 2010 19:41:49 +0000 (21:41 +0200)]
Whitespace.
Mike Pall [Tue, 21 Sep 2010 19:40:39 +0000 (21:40 +0200)]
PPC: Add fixed register for TOBIT bias.
Mike Pall [Tue, 21 Sep 2010 19:36:37 +0000 (21:36 +0200)]
PPC: Add missing register setup after unwind to ff pcall.
Mike Pall [Tue, 21 Sep 2010 19:21:21 +0000 (21:21 +0200)]
PPC: Fix result copy for return to Lua.
Mike Pall [Tue, 21 Sep 2010 18:54:12 +0000 (20:54 +0200)]
PPC: Fix constant folding of modulo operator.
Mike Pall [Tue, 21 Sep 2010 16:04:59 +0000 (18:04 +0200)]
Consistently round int args of string functions on x64.
Mike Pall [Tue, 21 Sep 2010 13:21:26 +0000 (15:21 +0200)]
Improve AA for field accesses: disambiguate new allocations.
Mike Pall [Tue, 21 Sep 2010 00:44:18 +0000 (02:44 +0200)]
Drop redundant (UGE any +0).
Mike Pall [Tue, 21 Sep 2010 00:28:14 +0000 (02:28 +0200)]
Improve FOLD/CSE of field loads and array/hash refs across NEWREF.
Mike Pall [Mon, 20 Sep 2010 23:31:04 +0000 (01:31 +0200)]
Improve alias analysis: disambiguate new allocations.
Mike Pall [Sat, 18 Sep 2010 16:34:38 +0000 (18:34 +0200)]
Avoid fusing potentially negative indexes into AREF on x64.
Mike Pall [Fri, 17 Sep 2010 14:07:01 +0000 (16:07 +0200)]
PPC: Add metamethod handlers and continuations for comparisons.
Mike Pall [Fri, 17 Sep 2010 14:01:02 +0000 (16:01 +0200)]
PPC: Reschedule bytecode instruction fetch.
Mike Pall [Fri, 17 Sep 2010 13:54:50 +0000 (15:54 +0200)]
PPC: Add BC_CAT and lj_cont_cat.
Mike Pall [Thu, 16 Sep 2010 00:09:19 +0000 (02:09 +0200)]
PPC: Fix ordered comparisons for NaN operands.
Mike Pall [Thu, 16 Sep 2010 00:06:20 +0000 (02:06 +0200)]
PPC: Avoid comparison with NaN in BC_ISEQN/BC_ISNEN.
Mike Pall [Wed, 15 Sep 2010 15:28:24 +0000 (17:28 +0200)]
PPC: Add BC_TSETM.
Mike Pall [Wed, 15 Sep 2010 15:27:17 +0000 (17:27 +0200)]
PPC: Add BC_VARG.
Mike Pall [Tue, 14 Sep 2010 23:13:07 +0000 (01:13 +0200)]
Don't traverse inactive GCtrace objects.
Mike Pall [Tue, 14 Sep 2010 22:51:43 +0000 (00:51 +0200)]
Show names of IR calls in disassembler output.
Mike Pall [Tue, 14 Sep 2010 17:58:27 +0000 (19:58 +0200)]
Add IR_VLOAD for vararg loads.
Also fixes the broken AA improvement in the last commit.
Mike Pall [Tue, 14 Sep 2010 14:48:52 +0000 (16:48 +0200)]
Improve alias analysis for vararg loads.
Mike Pall [Tue, 14 Sep 2010 14:48:25 +0000 (16:48 +0200)]
Avoid unnecessary vararg loads.
Mike Pall [Tue, 14 Sep 2010 01:13:44 +0000 (03:13 +0200)]
PPC: Fix line number in stack overflow error.
Mike Pall [Mon, 13 Sep 2010 23:23:34 +0000 (01:23 +0200)]
PPC: Fix write barrier in BC_TSETV.
Mike Pall [Mon, 13 Sep 2010 23:20:01 +0000 (01:20 +0200)]
PPC: Fix KBASE restore in BC_CALLT.
Mike Pall [Mon, 13 Sep 2010 22:46:06 +0000 (00:46 +0200)]
PPC: Keep MULTRES in a register.
Mike Pall [Mon, 13 Sep 2010 22:00:31 +0000 (00:00 +0200)]
PPC: Add better diagnostics to DynASM for reg/imm mismatches.
Mike Pall [Mon, 13 Sep 2010 20:30:23 +0000 (22:30 +0200)]
x86/x64: Avoid unnecessary resize in BC_TSETM.
Mike Pall [Mon, 13 Sep 2010 19:50:08 +0000 (21:50 +0200)]
PPC: Add support for shifted MULTRES.
Mike Pall [Mon, 13 Sep 2010 19:26:27 +0000 (21:26 +0200)]
PPC: Add metamethod handlers for indexing instructions.
Mike Pall [Mon, 13 Sep 2010 19:21:39 +0000 (21:21 +0200)]
PPC: Add missing write barrier to BC_TSETV.
Mike Pall [Mon, 13 Sep 2010 19:19:33 +0000 (21:19 +0200)]
PPC: Fix write barrier and linkage for BC_USETV/BC_USETS.
Some older linkers can't rearrange to accomodate R_PPC_REL14.
Mike Pall [Mon, 13 Sep 2010 19:11:51 +0000 (21:11 +0200)]
PPC: Teach DynASM to reject r0 for some operands.
Mike Pall [Mon, 13 Sep 2010 17:48:31 +0000 (19:48 +0200)]
Release all memory when using the builtin allocator.
Blocks >128K are not kept in the segment list and were not destroyed.
Mike Pall [Sun, 12 Sep 2010 23:23:19 +0000 (01:23 +0200)]
Record y = select(x, ...) idiom.
Mike Pall [Sun, 12 Sep 2010 23:21:44 +0000 (01:21 +0200)]
Record select().
Mike Pall [Sun, 12 Sep 2010 23:17:38 +0000 (01:17 +0200)]
Record vararg expressions with varargs defined off-trace.
Add SLOAD variant to access the frame type/size.
Mike Pall [Sun, 12 Sep 2010 22:55:05 +0000 (00:55 +0200)]
Fix tailcalls from vararg functions.
Mike Pall [Sun, 12 Sep 2010 01:14:17 +0000 (03:14 +0200)]
Fix off-by-one errors in maxslot calculation of trace recorder.
Mike Pall [Sun, 12 Sep 2010 00:39:06 +0000 (02:39 +0200)]
Record vararg expressions with known fixed number of results.
Mike Pall [Sat, 11 Sep 2010 23:37:02 +0000 (01:37 +0200)]
Record calls to vararg functions.
This loop is now roughly 1000x faster than the Lua interpreter:
local function f(a,b,...) end; for i=1,2e8 do f(1,2,i) end
Yet another silly microbenchmark -- I know.
Mike Pall [Sat, 11 Sep 2010 23:33:32 +0000 (01:33 +0200)]
Fix broken MSVC build.
Mike Pall [Fri, 10 Sep 2010 23:53:59 +0000 (01:53 +0200)]
PPC: Add argument coercion for BC_FORI.
Mike Pall [Fri, 10 Sep 2010 23:52:26 +0000 (01:52 +0200)]
PPC: Add continuation dispatch and RA/nop continuations.
Mike Pall [Fri, 10 Sep 2010 23:47:49 +0000 (01:47 +0200)]
PPC: Add metamethod handlers for arithmetic instructions.
Mike Pall [Fri, 10 Sep 2010 23:46:11 +0000 (01:46 +0200)]
PPC: Add metamethod handlers for call instructions.
Mike Pall [Fri, 10 Sep 2010 09:43:31 +0000 (11:43 +0200)]
Reduce minimum Lua frame size to 1.
Mike Pall [Fri, 10 Sep 2010 09:34:29 +0000 (11:34 +0200)]
Optimize BC_VARG: use RC for numparams.
Mike Pall [Thu, 9 Sep 2010 10:28:17 +0000 (12:28 +0200)]
Turn some lua_State fields into 32 bit pointers.
lua_State now fits into one cache line on x64.
Mike Pall [Thu, 9 Sep 2010 10:01:29 +0000 (12:01 +0200)]
Use biased integer constant for TSETM array index.
Mike Pall [Wed, 8 Sep 2010 23:14:17 +0000 (01:14 +0200)]
PPC: Use unsigned compares for pointer comparisons.
Mike Pall [Wed, 8 Sep 2010 23:08:07 +0000 (01:08 +0200)]
PPC: Add upvalue get/set instructions.
Mike Pall [Wed, 8 Sep 2010 23:06:55 +0000 (01:06 +0200)]
PPC: Add closure-related instructions.
Mike Pall [Tue, 7 Sep 2010 22:14:36 +0000 (00:14 +0200)]
PPC: Add helper function for folding arithmetic ops.
Mike Pall [Tue, 7 Sep 2010 22:12:23 +0000 (00:12 +0200)]
PPC: Add modulo instructions.
Mike Pall [Tue, 7 Sep 2010 22:09:36 +0000 (00:09 +0200)]
PPC: Add heavily optimized floor/ceil/trunc functions.
Mike Pall [Mon, 6 Sep 2010 23:24:25 +0000 (01:24 +0200)]
PPC: Add binary arithmetic instructions (except MOD).
Mike Pall [Mon, 6 Sep 2010 23:15:21 +0000 (01:15 +0200)]
PPC: Add unary instructions.
Mike Pall [Mon, 6 Sep 2010 13:20:58 +0000 (15:20 +0200)]
PPC: Add table constructors.
Mike Pall [Sat, 4 Sep 2010 10:58:36 +0000 (12:58 +0200)]
PPC: Add tailcall instructions.
Mike Pall [Fri, 3 Sep 2010 19:02:55 +0000 (21:02 +0200)]
PPC: Add call and iterator call instructions.
Mike Pall [Fri, 3 Sep 2010 17:35:44 +0000 (19:35 +0200)]
PPC: Add table indexing with variable keys or uint8_t.
Mike Pall [Fri, 3 Sep 2010 17:31:07 +0000 (19:31 +0200)]
PPC: Add table indexing with string keys. Add get/set global.
Mike Pall [Thu, 2 Sep 2010 15:16:56 +0000 (17:16 +0200)]
Explicitly indicate tailcall from fast function fallback.
Mike Pall [Wed, 1 Sep 2010 18:29:29 +0000 (20:29 +0200)]
PPC: Add unary test and copy instructions.
Mike Pall [Wed, 1 Sep 2010 18:27:39 +0000 (20:27 +0200)]
PPC: Add comparison instructions.
Mike Pall [Wed, 1 Sep 2010 18:24:08 +0000 (20:24 +0200)]
PPC: Add loop instructions.
Mike Pall [Tue, 31 Aug 2010 22:27:48 +0000 (00:27 +0200)]
PPC: Unwind the stack after an error is thrown.
Mike Pall [Tue, 31 Aug 2010 22:25:35 +0000 (00:25 +0200)]
PPC: Handle stack growth on return to C.
Mike Pall [Tue, 31 Aug 2010 22:19:27 +0000 (00:19 +0200)]
PPC: Add move and constant instructions.
Mike Pall [Tue, 31 Aug 2010 22:18:00 +0000 (00:18 +0200)]
Improve coalescing of multiple KPRI instructions to KNIL.
Mike Pall [Tue, 31 Aug 2010 21:55:18 +0000 (23:55 +0200)]
PPC: Add return instructions.
Mike Pall [Tue, 31 Aug 2010 21:52:45 +0000 (23:52 +0200)]
PPC: Handle stack growth during function calls.