Mike Pall
|
6c8258d74b
|
LJ_FR2: Add support for trace recording and snapshots.
Contributed by Peter Cawley.
|
2016-05-23 01:49:00 +02:00 |
|
Mike Pall
|
7fb75ccc4c
|
Embed 64 bit constants directly in the IR, using two slots.
Contributed by Peter Cawley.
|
2016-05-23 00:25:29 +02:00 |
|
Mike Pall
|
a4067978b6
|
Always walk IR constants in ascending order.
Prerequisite for embedding 64 bit constants directly in the IR.
Contributed by Peter Cawley.
|
2016-05-22 23:45:40 +02:00 |
|
Mike Pall
|
1931b38da5
|
LJ_GC64: Introduce IRT_PGC.
Contributed by Peter Cawley.
|
2016-05-20 22:41:42 +02:00 |
|
Mike Pall
|
475a6ae33f
|
Merge branch 'master' into v2.1
|
2016-05-20 20:26:39 +02:00 |
|
Mike Pall
|
37e1e70313
|
Add guard for obscure aliasing between open upvalues and SSA slots.
Thanks to Peter Cawley.
|
2016-05-20 20:24:06 +02:00 |
|
Mike Pall
|
ac42037db0
|
Constrain value range of lj_ir_kptr() to unsigned 32 bit pointers.
Thanks to Peter Cawley.
|
2016-04-24 17:32:12 +02:00 |
|
Mike Pall
|
344fe5f01d
|
Merge branch 'master' into v2.1
|
2016-04-21 17:01:36 +02:00 |
|
Mike Pall
|
2f0001fad0
|
Fix handling of non-numeric strings in arithmetic coercions.
Thanks to Vyacheslav Egorov.
|
2016-04-21 17:00:58 +02:00 |
|
Mike Pall
|
d150fbf441
|
Merge branch 'master' into v2.1
|
2016-04-03 19:13:37 +02:00 |
|
Mike Pall
|
1c6fd13dbd
|
Fix recording of select(n, ...) with off-trace varargs
Thanks to Peter Cawley.
|
2016-04-03 19:12:28 +02:00 |
|
Mike Pall
|
f4231949b5
|
Merge branch 'master' into v2.1
|
2016-03-03 12:11:37 +01:00 |
|
Mike Pall
|
db1b399af1
|
Bump copyright date to 2016.
|
2016-03-03 12:02:22 +01:00 |
|
Mike Pall
|
04d2806823
|
Rollback due to HREFK + load fwd must restore guardemit state.
Thanks to Vyacheslav Egorov.
|
2016-01-18 11:58:13 +01:00 |
|
Mike Pall
|
fe565222a1
|
Disable table allocation bump optimization (for now).
|
2015-06-13 00:42:38 +02:00 |
|
Mike Pall
|
458a40b724
|
Fix table allocation bump optimization (sigh).
|
2015-06-10 17:06:01 +02:00 |
|
Mike Pall
|
c5d262f2d2
|
Fix table allocation bump optimization (again).
|
2015-06-09 23:46:38 +02:00 |
|
Mike Pall
|
60fb3fe2b2
|
Fix table allocation bump optimization.
|
2015-05-21 16:38:31 +02:00 |
|
Mike Pall
|
bca5da8849
|
Fix for last commit.
|
2015-05-19 02:25:16 +02:00 |
|
Mike Pall
|
b82fc3ddc0
|
Bump table allocations retroactively if they grow later on.
|
2015-05-19 01:59:29 +02:00 |
|
Mike Pall
|
43cb818ba8
|
Merge branch 'master' into v2.1
|
2015-01-17 14:57:24 +01:00 |
|
Mike Pall
|
7f013005f6
|
Don't compile IR_RETF after CALLT to ff with-side effects.
|
2015-01-17 14:50:41 +01:00 |
|
Mike Pall
|
0a5045c34e
|
Merge branch 'master' into v2.1
|
2015-01-06 00:12:45 +01:00 |
|
Mike Pall
|
86913b9bbf
|
Bump copyright date to 2015.
|
2015-01-05 23:59:31 +01:00 |
|
Mike Pall
|
054e6abe37
|
Add LJ_FR2 mode: Two-slot frame info.
|
2015-01-03 15:04:38 +01:00 |
|
Mike Pall
|
5cb6e2eaaf
|
Cleanup of TValue setters. No functional changes.
|
2014-12-20 01:48:00 +01:00 |
|
Mike Pall
|
c6130e68eb
|
Avoid dependency on frame layout for LJ_POST_FIXCOMP.
The auxiliary value in u32.lo wasn't used, anyway.
|
2014-12-15 02:45:40 +01:00 |
|
Mike Pall
|
881f48f980
|
Cleanup of frame handling. No functional changes.
|
2014-12-15 02:27:27 +01:00 |
|
Mike Pall
|
b7d29b6e67
|
Eliminate hmask guard for forwarded HREFK.
|
2014-09-17 19:45:16 +02:00 |
|
Mike Pall
|
0ac4c43965
|
Merge branch 'master' into v2.1
|
2014-07-01 17:54:08 +02:00 |
|
Mike Pall
|
a6c34b85f7
|
Fix ABC elimination.
|
2014-07-01 17:53:40 +02:00 |
|
Mike Pall
|
a972d37ef3
|
Merge branch 'master' into v2.1
|
2014-04-01 10:33:42 +02:00 |
|
Mike Pall
|
b293063eb8
|
Correct fix for reuse of SCEV results in FORL.
|
2014-04-01 10:07:15 +02:00 |
|
Mike Pall
|
4401af88dc
|
Merge branch 'master' into v2.1
|
2014-03-27 23:32:45 +01:00 |
|
Mike Pall
|
095344ce7c
|
Fix check for reuse of SCEV results in FORL.
|
2014-03-27 23:29:30 +01:00 |
|
Mike Pall
|
19d53ed2f9
|
Specialize to ffid for non-monomorphic builtins.
|
2014-03-04 16:11:29 +01:00 |
|
Mike Pall
|
fd3354a9dd
|
Merge branch 'master' into v2.1
|
2014-02-28 14:10:30 +01:00 |
|
Mike Pall
|
ef3cc47f9f
|
Fix recording of BC_VARG.
|
2014-02-28 14:09:09 +01:00 |
|
Mike Pall
|
2863b10956
|
Merge branch 'master' into v2.1
|
2014-02-20 15:09:02 +01:00 |
|
Mike Pall
|
998651fcda
|
Don't purge modified function from stack slots in BC_RET.
|
2014-02-20 04:24:50 +01:00 |
|
Mike Pall
|
bcd27038fc
|
Merge branch 'master' into v2.1
|
2014-01-20 16:59:04 +01:00 |
|
Mike Pall
|
dd910f0e01
|
Fix initial maxslot for down-recursive traces.
|
2014-01-20 16:49:13 +01:00 |
|
Mike Pall
|
a9d4543601
|
Merge branch 'master' into v2.1
|
2014-01-16 23:18:34 +01:00 |
|
Mike Pall
|
ef59e54820
|
Bump copyright date to 2014.
|
2014-01-16 23:10:16 +01:00 |
|
Mike Pall
|
b5d741fa7e
|
Add trace stitching.
|
2013-12-25 02:55:25 +01:00 |
|
Mike Pall
|
585dd449b5
|
Merge branch 'master' into v2.1
|
2013-12-09 00:32:08 +01:00 |
|
Mike Pall
|
0ded8e82a8
|
Fix call unroll checks in the presence of metamethod frames.
|
2013-12-09 00:29:56 +01:00 |
|
Mike Pall
|
a8c3862d63
|
Merge branch 'master' into v2.1
|
2013-11-22 05:45:33 +01:00 |
|
Mike Pall
|
f371ed6bd8
|
Respect jit.off(func) when returning to a function, too.
|
2013-11-22 05:42:56 +01:00 |
|
Mike Pall
|
1837d07082
|
Compile BC_TSETM, e.g. {1,2,3,f()}.
|
2013-10-09 23:51:30 +02:00 |
|
Mike Pall
|
d1194a82eb
|
Low-overhead profiler, part 4: JIT compiler support.
|
2013-09-08 02:53:23 +02:00 |
|
Mike Pall
|
8f90a1279e
|
Big renaming of string buffer/formatting/conversion functions.
|
2013-05-13 10:15:07 +02:00 |
|
Mike Pall
|
4ac25a9132
|
Compile __concat metamethod.
|
2013-04-28 01:51:41 +02:00 |
|
Mike Pall
|
47fa9a8d8f
|
Change semantics of buffer ops to simplify CSE and DCE.
|
2013-04-26 13:47:41 +02:00 |
|
Mike Pall
|
255326afb6
|
Use explicit conversion type for IR_TOSTR. Add char conversion.
|
2013-04-23 02:20:03 +02:00 |
|
Mike Pall
|
2cdf90f068
|
Always emit TOSTR for non-string CAT operands. Fuse in backend.
|
2013-04-23 00:10:01 +02:00 |
|
Mike Pall
|
5f1781a127
|
Compile string concatenations (BC_CAT).
|
2013-04-21 01:01:33 +02:00 |
|
Mike Pall
|
73ef845fca
|
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.
|
2013-02-23 02:09:19 +01:00 |
|
Mike Pall
|
4a44c4ff69
|
Bump copyright date to 2013.
|
2013-02-11 12:54:48 +01:00 |
|
Mike Pall
|
c022692ab0
|
Don't propagate implicitly widened number to index metamethods.
|
2012-11-06 16:58:52 +01:00 |
|
Mike Pall
|
614e78d1f6
|
Fix recording of equality comparisons with __eq metamethods.
|
2012-10-19 17:03:41 +02:00 |
|
Mike Pall
|
1c626112a0
|
FFI: Compile ffi.sizeof(), ffi.alignof() and ffi.offsetof().
|
2012-10-10 18:16:18 +02:00 |
|
Mike Pall
|
d08e7bd518
|
From Lua 5.2: Allow mixed metamethods for ordered comparisons.
Needs -DLUAJIT_ENABLE_LUA52COMPAT.
|
2012-09-28 19:30:08 +02:00 |
|
Mike Pall
|
d9c5eba1bb
|
Remove some library functions for no-JIT/no-FFI builds.
|
2012-09-24 16:56:07 +02:00 |
|
Mike Pall
|
ead325b0c9
|
From Lua 5.2: Add goto and :🏷️: statements.
|
2012-09-16 18:46:04 +02:00 |
|
Mike Pall
|
23932a6c8b
|
Use 0/1 macro for Lua 5.2 compatibility.
|
2012-09-12 11:20:47 +02:00 |
|
Mike Pall
|
751cd9d821
|
Don't constify upvalues that may retain large amounts of memory.
|
2012-08-28 15:24:53 +02:00 |
|
Mike Pall
|
3636a720a5
|
Turn loads from immutable upvalues into constants.
|
2012-07-20 18:54:52 +02:00 |
|
Mike Pall
|
afeb4e2c51
|
Handle initial snapshot for side traces in lj_snap.c only.
|
2012-07-02 22:52:15 +02:00 |
|
Mike Pall
|
7ae3832f20
|
Move snapshot replay for side traces to lj_snap.c.
|
2012-07-02 13:37:55 +02:00 |
|
Mike Pall
|
10ef109eef
|
Bump copyright date to 2012.
|
2012-01-23 22:42:42 +01:00 |
|
Mike Pall
|
c142b6c53e
|
FFI: Record C function calls with bool return values.
|
2011-11-25 19:36:35 +01:00 |
|
Mike Pall
|
cecbe3c15f
|
Specialize to prototype for non-monomorphic functions.
Solves the trace-explosion problem with closure-heavy programming.
|
2011-11-20 19:16:40 +01:00 |
|
Mike Pall
|
cc7a12be93
|
Count frames with same prototype in call unroll limit check.
|
2011-11-20 17:59:41 +01:00 |
|
Mike Pall
|
dc2a39e46d
|
Get rid of snap->depth.
|
2011-11-20 13:23:25 +01:00 |
|
Mike Pall
|
78cc9c889d
|
Record missing FORI slot loads (e.g. after return to lower frame).
|
2011-08-21 15:08:27 +02:00 |
|
Mike Pall
|
05ef03e2d0
|
Don't bother to chain NOPs.
|
2011-08-11 22:04:38 +02:00 |
|
Mike Pall
|
64dbe7d929
|
Return to lower frame via interpreter for unhandled cases.
E.g. spontaneous upcalls from C are now compiled.
|
2011-06-29 01:53:39 +02:00 |
|
Mike Pall
|
deeb8196c4
|
Reorganize trace linking and track link types.
|
2011-06-28 23:23:34 +02:00 |
|
Mike Pall
|
4df40a228f
|
Fix recording of loops with instable directions in side traces.
|
2011-06-20 21:51:31 +02:00 |
|
Mike Pall
|
31d566428f
|
From Lua 5.2: __len for tables. Needs -DLUAJIT_ENABLE_LUA52COMPAT.
|
2011-06-20 20:45:41 +02:00 |
|
Mike Pall
|
b6a7fc5330
|
Cleanup prototype flags.
|
2011-06-09 13:54:40 +02:00 |
|
Mike Pall
|
8c5935000d
|
Add narrowing of modulo operator.
|
2011-06-03 18:48:02 +02:00 |
|
Mike Pall
|
8dd09d5041
|
DUALNUM: Fix missing type check for loop index slot.
|
2011-06-01 00:49:29 +02:00 |
|
Mike Pall
|
138f54352a
|
Split up FP IR instructions with SPLIT pass for soft-float targets.
|
2011-05-22 17:44:58 +02:00 |
|
Mike Pall
|
919ba5fd74
|
Add missing guard to for loop argument conversion.
|
2011-05-22 16:47:55 +02:00 |
|
Mike Pall
|
effdfda673
|
Move IR_CALL* definitions to lj_ircall.h.
|
2011-05-22 16:28:43 +02:00 |
|
Mike Pall
|
b79cdba3a0
|
Tuning loop unrolling heuristics again.
|
2011-05-10 16:55:23 +02:00 |
|
Mike Pall
|
fb8b87e818
|
More tuning of loop unrolling heuristics.
|
2011-05-04 23:21:46 +02:00 |
|
Mike Pall
|
b4006ba9a8
|
Fix stack slot updates for down-recursion.
|
2011-05-04 21:34:21 +02:00 |
|
Mike Pall
|
139175f8c4
|
Tune loop unrolling heuristics. Increase trace recorder limits.
|
2011-05-03 21:14:18 +02:00 |
|
Mike Pall
|
9ea679410c
|
Workaround to compile with Clang. Fix Clang warnings.
|
2011-04-19 17:12:41 +02:00 |
|
Mike Pall
|
23f847f4ed
|
Optimize lookups in empty proxy tables.
|
2011-04-10 21:43:21 +02:00 |
|
Mike Pall
|
d85b7e636e
|
Fix recording of JLOOP with higher maxslot.
|
2011-04-10 18:00:08 +02:00 |
|
Mike Pall
|
7088abce8f
|
DUALNUM: Fix narrowing of unary minus.
|
2011-03-19 17:46:10 +01:00 |
|
Mike Pall
|
dcbae09b1d
|
DUALNUM: Narrow unary minus.
|
2011-03-15 18:14:18 +01:00 |
|
Mike Pall
|
bfce3c1127
|
DUALNUM: Handle integer type in JIT compiler.
|
2011-03-10 01:57:24 +01:00 |
|
Mike Pall
|
54978e481b
|
DUALNUM: Make overflow guards weak. Add IR_USE and IR_MULOV.
|
2011-03-07 20:21:38 +01:00 |
|
Mike Pall
|
8eb09fe820
|
Suppress recording of retried fast functions.
|
2011-03-07 20:03:38 +01:00 |
|
Mike Pall
|
4c97cc7730
|
Eliminate dead slots in snapshots using bytecode data-flow analysis.
|
2011-02-22 22:39:12 +01:00 |
|