Commit Graph

1734 Commits

Author SHA1 Message Date
Mike Pall
7f454aed82 Fix narrowing of TOBIT. 2015-06-10 16:14:41 +02:00
Mike Pall
08e100ec05 x64/LJ_GC64: Fix ipairs(). 2015-06-10 12:15:28 +02:00
Mike Pall
c5d262f2d2 Fix table allocation bump optimization (again). 2015-06-09 23:46:38 +02:00
Mike Pall
fb19df9fd7 Merge branch 'master' into v2.1 2015-06-09 22:09:11 +02:00
Mike Pall
72347895ed x64: Allow building without external unwinder.
Required for PS4 SDK 2.5. Thanks to James Park.
2015-06-09 22:08:40 +02:00
Mike Pall
4da1bb66cd x64/LJ_GC64: Fix upvalue write barrier. 2015-05-29 16:45:26 +02:00
Mike Pall
5de95edf4c x64/LJ_GC64: Fix setmetatable(). 2015-05-25 16:31:52 +02:00
Mike Pall
60fb3fe2b2 Fix table allocation bump optimization. 2015-05-21 16:38:31 +02:00
Mike Pall
4a146cac9a LJ_GC64: Fix frame unwinding. 2015-05-20 16:43:41 +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
69e5342eb8 RELEASE LuaJIT-2.0.4 2015-05-14 20:29:31 +02:00
Mike Pall
a836b7e177 Cleanup. 2015-05-04 06:38:01 +02:00
Mike Pall
4cec6a5706 Merge branch 'master' into v2.1 2015-05-04 06:37:24 +02:00
Mike Pall
9622d6b8b2 x86/x64: Fix argument check for bit shifts. 2015-05-04 06:36:16 +02:00
Mike Pall
a92e730233 x64: Add LJ_GC64 mode interpreter.
Enable this mode with: make XCFLAGS=-DLUAJIT_ENABLE_GC64
2015-05-04 06:30:57 +02:00
Mike Pall
5caf53d502 Fix broken Windows build. 2015-04-29 10:13:01 +02:00
Mike Pall
c2924c3e1d Disable trace stitching (for now) due to a design mistake.
Thanks to Elias Hogstvedt for finding a test case for a well known,
but hard to track down issue with trace stitching.
2015-04-28 20:52:24 +02:00
Mike Pall
74caac97ae Merge branch 'master' into v2.1 2015-04-28 20:29:46 +02:00
Mike Pall
11106aa833 Fix stack check in narrowing optimization.
Thanks to Robert Nix.
2015-04-28 20:28:16 +02:00
Mike Pall
1e67a4cb6b ARM64: Fix math.floor/math.ceil for string args. 2015-04-15 22:09:46 +02:00
Mike Pall
1c968d5b63 DynASM/PPC: Add sub/shift/rotate/clear instruction aliases. 2015-04-12 03:46:16 +02:00
Mike Pall
dec4acca9a PPC: Fix cross-endian builds. 2015-04-12 01:23:01 +02:00
Mike Pall
8002871619 PPC: Fix write barrier in BC_TSETR.
Thanks to Gustavo Serra Scalet.
2015-04-09 18:48:54 +02:00
Mike Pall
361827c8f9 PPC64: Add build infrastructure. 2015-03-06 03:47:45 +01:00
Mike Pall
c821e0aded Merge branch 'master' into v2.1 2015-03-05 12:21:39 +01:00
Mike Pall
8b6af89ba7 Fix Lua/C API typecheck error for special indexes. 2015-03-05 12:19:11 +01:00
Mike Pall
2c0748f691 Merge branch 'master' into v2.1 2015-03-02 17:34:33 +01:00
Mike Pall
1f578bd424 FFI: Fix FOLD rule for TOBIT + CONV num.u32.
Thanks to Jiale Zhi.
2015-03-02 17:34:06 +01:00
Mike Pall
e1a8f3ba0b Merge branch 'master' into v2.1 2015-02-25 18:12:14 +01:00
Mike Pall
5c0e33c2aa ARM: Handle more arch defines. 2015-02-25 18:10:54 +01:00
Mike Pall
7ff476804e Properly fail unsupported cross-compile to MIPS64. 2015-02-25 18:02:31 +01:00
Mike Pall
906008d467 Merge branch 'master' into v2.1 2015-02-22 23:08:56 +01:00
Mike Pall
e6b0875a7e Fix string to number conversion.
Thanks to Lesley De Cruz.
2015-02-22 23:07:49 +01:00
Mike Pall
576ddf1db5 Merge branch 'master' into v2.1 2015-02-21 21:46:22 +01:00
Mike Pall
4fa51affe8 x86/x64: Fix code generation for fused test/arith ops.
Thanks to Alexander Nasonov and AFL.
2015-02-21 21:44:41 +01:00
Mike Pall
063f3d5d7c Merge branch 'master' into v2.1 2015-02-18 16:01:11 +01:00
Mike Pall
704280fb80 FFI: Prevent DSE across ffi.string(). 2015-02-18 16:00:15 +01:00
Mike Pall
04dc64b558 LJ_FR2: Fix bytecode generation for method lookups. 2015-02-08 20:25:27 +01:00
Mike Pall
ca5bbdf92a Merge branch 'master' into v2.1 2015-02-02 11:06:45 +01:00
Mike Pall
dfa173b929 Fix lexer error for chunks without tokens. 2015-02-02 11:03:39 +01: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
b876d6dada OpenBSD/x86: Better executable memory allocation for W^X mode. 2015-01-17 12:55:04 +01:00
Mike Pall
3f19b34242 iOS/ARM64: Fix target OS detection. 2015-01-08 02:52:31 +01:00
Mike Pall
962d2aaa9f LJ_GC64: Return true for ffi.abi("gc64"). 2015-01-07 21:14:43 +01:00
Mike Pall
33f0c24f06 ARM64: Add FFI support. 2015-01-07 21:06:40 +01:00
Mike Pall
ce1a5ee535 iOS/ARM64: The frame pointer is required. 2015-01-07 20:59:37 +01:00
Mike Pall
9647aab0dc LJ_FR2: Fix lua_settable() and lua_setfield(). 2015-01-07 13:17:57 +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
c71cdf4c36 Merge branch 'master' into v2.1 2015-01-05 23:43:57 +01:00
Mike Pall
999f57de83 Fix BC_UCLO/BC_JMP join optimization in Lua parser. 2015-01-05 23:39:37 +01:00
Mike Pall
71ecc051dc Fix MSVC build. 2015-01-05 00:38:18 +01:00
Mike Pall
fcae87e315 Merge branch 'master' into v2.1 2015-01-05 00:07:27 +01:00
Mike Pall
4d9e8e245a ARM: Minor interpreter optimization. 2015-01-05 00:05:38 +01:00
Mike Pall
31e66838d8 x86: Minor interpreter optimization. 2015-01-05 00:04:40 +01:00
Mike Pall
e1261a07bf ARM64: Compatibility fixes for Clang. 2015-01-04 23:52:50 +01:00
Mike Pall
dfe84fd8c5 PPC/e500: Drop support for this architecture. 2015-01-04 23:01:16 +01:00
Mike Pall
f307d0adaf ARM64: Add build infrastructure and initial port of interpreter. 2015-01-03 15:28:33 +01:00
Mike Pall
cb481ddc8f Add LJ_GC64 mode: 64 bit GC object references.
Actually NaN tagging with 47 bit pointers and 13+4 bit tags.
2015-01-03 15:23:58 +01:00
Mike Pall
054e6abe37 Add LJ_FR2 mode: Two-slot frame info. 2015-01-03 15:04:38 +01:00
Mike Pall
7a76d435da Merge branch 'master' into v2.1 2014-12-27 06:11:14 +01:00
Mike Pall
f45d11e2fe MIPS: Fix excess stack growth in interpreter. 2014-12-27 06:06:07 +01:00
Mike Pall
6319e0312d PPC: Fix excess stack growth in interpreter. 2014-12-27 06:05:50 +01:00
Mike Pall
16f910b4a8 ARM: Fix write barrier check in BC_USETS. 2014-12-27 06:03:06 +01:00
Mike Pall
54826563b2 ARM: Fix excess stack growth in interpreter. 2014-12-27 05:59:16 +01:00
Mike Pall
1b774d9da3 Fix corner case in string to number conversion. 2014-12-27 05:46:51 +01:00
Mike Pall
ecaa4eae88 Merge branch 'master' into v2.1 2014-12-20 01:48:17 +01:00
Mike Pall
5cb6e2eaaf Cleanup of TValue setters. No functional changes. 2014-12-20 01:48:00 +01:00
Mike Pall
10caad0261 x86: Fix argument checks for ipairs() iterator. 2014-12-20 01:05:06 +01:00
Mike Pall
6e9145a882 Cleanup of memory vs. GC sizes. No functional changes. 2014-12-20 00:17:50 +01:00
Mike Pall
82e6e5fb5f x86: Fix stack slot reservation for FP math functions.
Followup fix for commit ad03eba7.
2014-12-16 22:25:52 +01:00
Mike Pall
9679a949ff Disable debug info for generated *.S to avoid confusing gdb. 2014-12-16 02:32:53 +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
b93b624ad8 Merge branch 'master' into v2.1 2014-12-15 01:56:18 +01:00
Mike Pall
c6e69249dd Gracefully handle lua_error() for a suspended coroutine.
Thanks to Sergei Zhirikov.
2014-12-15 01:55:45 +01:00
Mike Pall
cca81a3fe7 Merge branch 'master' into v2.1 2014-12-08 02:10:10 +01:00
Mike Pall
6fddb9bc2e Avoid error messages when building with Clang. 2014-12-08 02:07:05 +01:00
Mike Pall
ad03eba715 x86/x64: Drop internal x87 math functions. Use libm functions. 2014-12-08 02:02:34 +01:00
Mike Pall
e03df1e339 x86/x64: Call external symbols directly from interpreter code.
Except for ELF/x86 PIC, where it's easier to use wrappers.
2014-12-08 01:58:05 +01:00
Mike Pall
8cc89332ff Merge branch 'master' into v2.1 2014-11-28 20:21:35 +01:00
Mike Pall
c75c62b489 Fix snapshot #0 handling for traces with a stack check on entry. 2014-11-28 20:20:12 +01:00
Mike Pall
42ed4e53a5 Merge branch 'master' into v2.1 2014-11-03 21:35:52 +01:00
Mike Pall
a31c317fb5 FFI: No meta fallback when indexing pointer to incomplete struct. 2014-11-03 21:34:24 +01:00
Mike Pall
d6ff3afc14 FFI: Add ffi.typeinfo().
Thanks to Peter Colberg.
2014-10-08 22:16:53 +02:00
Mike Pall
d2809bec24 Merge branch 'master' into v2.1 2014-10-08 22:06:23 +02:00
Mike Pall
6d0654d3ec Fix fused constant loads under high register pressure. 2014-10-08 22:04:51 +02:00
Mike Pall
be64823d95 Merge branch 'master' into v2.1 2014-10-07 16:18:46 +02:00
Mike Pall
4846a714a9 Fix DragonFly build (unsupported).
Thanks to Robin Hahling, Alex Hornung and Joris Giovannangeli.
2014-10-07 16:17:29 +02:00
Mike Pall
b7d29b6e67 Eliminate hmask guard for forwarded HREFK. 2014-09-17 19:45:16 +02:00
Mike Pall
72c661e2b8 Merge branch 'master' into v2.1 2014-09-08 23:39:02 +02:00
Mike Pall
41156fe1cd FFI: Fix initialization of unions of subtypes.
Thanks to Peter Colberg.
2014-09-08 23:37:22 +02:00
Mike Pall
247ead6718 FFI: Fix for cdata vs. non-cdata arithmetic and comparisons.
Thanks to Roman Tsisyk.
2014-09-08 23:28:02 +02:00
Mike Pall
e107525f20 Merge branch 'master' into v2.1 2014-08-05 20:18:20 +02:00
Mike Pall
66515a054c FFI: Fix __index/__newindex metamethod resolution for ctypes. 2014-08-05 20:15:52 +02:00
Mike Pall
92c32b7814 Merge branch 'master' into v2.1 2014-07-24 13:08:49 +02:00
Mike Pall
59d290656a Invalidate backpropagation cache after DCE. 2014-07-24 13:08:02 +02:00
Mike Pall
5f370d9071 Merge branch 'master' into v2.1 2014-07-04 18:19:16 +02:00