Commit Graph

1685 Commits

Author SHA1 Message Date
Mike Pall
18c9cf7d37 Fix POSIX install with missing or incompatible ldconfig. 2020-01-25 17:37:12 +01:00
Mike Pall
62903bacf4 Fix C file generation in jit.bcsave.
Thanks to codicodi.
2020-01-22 02:37:21 +01:00
Mike Pall
38a5ed4b43 Bump copyright date. 2020-01-20 23:26:51 +01:00
Mike Pall
8203399601 Fix embedded bytecode loader. 2020-01-13 14:28:43 +01:00
Mike Pall
45a7e5073c Fix tonumber("-0").
Reported by bluecheetah001.
2019-12-08 19:51:33 +01:00
Mike Pall
de48d00094 Fix hash table chaining (again).
Thanks to Peter Cawley.
2019-12-08 19:47:00 +01:00
Mike Pall
324aef08d9 Typo. 2019-12-08 19:45:07 +01:00
Mike Pall
41a25efc80 Fix declarations of _BitScanForward/_BitScanReverse.
Reported by Mumin Guler.
2019-12-08 19:42:49 +01:00
Mike Pall
46a1b268eb Add stricter check for print() vs. tostring() shortcut. 2019-12-08 19:40:24 +01:00
Mike Pall
16e5605eec Prevent integer overflow while parsing long strings. 2019-12-08 19:35:25 +01:00
Mike Pall
e0388e6c00 Fix stack check when recording BC_VARG.
Contributed by Yichun Zhang.
2019-12-08 19:32:27 +01:00
Mike Pall
1d1bac5a65 FFI: Add missing write barrier on C library index update.
Contributed by Yichun Zhang.
2019-12-08 19:32:16 +01:00
Mike Pall
478bcfe52a FFI: Workaround for platform dlerror() returning NULL.
Contributed by mcclure.
2019-12-08 19:25:45 +01:00
Mike Pall
44382e833a OSX: Use __thread attribute. 2019-12-08 19:22:37 +01:00
Mike Pall
8961a92dd1 OSX: Don't set a default MACOSX_DEPLOYMENT_TARGET. 2019-12-08 19:22:00 +01:00
Mike Pall
eba586854b Build MinGW import library, too.
Thanks to Tarnyko.
2019-12-08 19:19:12 +01:00
Mike Pall
c43b6a9137 Fix MinGW make clean.
Reported by Shmuel Zeigerman.
2019-12-08 19:16:34 +01:00
Mike Pall
08272de59e Update Android and iOS build docs. 2019-12-08 19:07:22 +01:00
Mike Pall
a75d13c63a Add note about the unsuitabilty of math.random() for crypto. 2019-12-08 19:01:06 +01:00
Mike Pall
c6c6e3b416 Update MSVC build script and docs. 2019-12-08 18:52:41 +01:00
Mike Pall
3ece3a3e3a More recent MSVC is partially C99 compliant. 2019-12-08 18:43:12 +01:00
Mike Pall
c4e15b457e Fix narrowing of conversions to U32.
Reported by spacewander.
2019-11-10 22:37:42 +01:00
Mike Pall
20ac817a74 Fix bytecode dump unpatching.
Reported by Christopher Oliver.
2019-08-30 11:07:45 +02:00
Mike Pall
0cd643d7cf Fix debug.getinfo() argument check.
Thanks to Sergey Ostanevich.
2019-08-10 00:54:41 +02:00
Mike Pall
51e013934b MIPS: Fix delay slot hint.
This is documentation only. Thanks to snyh.
2019-07-05 13:19:41 +02:00
Mike Pall
d4c0c6e17e Fix TNEW load forwarding with instable types. 2019-05-09 11:33:03 +02:00
Mike Pall
9bd5a722be ARM: Fix GCC 7 -Wimplicit-fallthrough warnings. 2019-04-29 18:02:50 +02:00
Mike Pall
5802ab56b6 ARM: Fix condition code check fusion.
Reported by Qingjun Wei.
2019-04-29 17:38:05 +02:00
Mike Pall
61464b0a5b Fix MinGW build.
Thanks to Victor Bombi.
2019-01-10 12:37:09 +01:00
Mike Pall
5c911998a3 DynASM/MIPS: Fix shadowed variable.
Cleanup only, bug cannot trigger.
Thanks to Domingo Alvarez Duarte.
2019-01-10 12:32:08 +01:00
Mike Pall
20e4c52945 DynASM/PPC: Fix shadowed variable.
Cleanup only, bug cannot trigger.
Thanks to Domingo Alvarez Duarte.
2019-01-10 12:28:24 +01:00
Mike Pall
380e4409a7 Fix overflow of snapshot map offset.
Thanks to Yichun Zhang.
2019-01-10 12:19:30 +01:00
Mike Pall
3404183e23 Better detection of MinGW build. 2019-01-10 12:02:15 +01:00
Mike Pall
b025b01c5b PPC/NetBSD: Fix endianess check.
Thanks to he32 and daurnimator.
2018-06-05 11:36:18 +02:00
Mike Pall
fb5e522fbc x86/x64: Check for jcc when using xor r,r in emit_loadi().
Thanks to Peter Cawley.
2018-05-20 12:40:33 +02:00
Mike Pall
f5d424afe8 FFI: Make FP to U64 conversions match JIT backend behavior. 2018-05-20 12:25:36 +02:00
Mike Pall
cf7a0540a3 Bump copyright date to 2018. 2018-04-25 12:07:08 +02:00
Mike Pall
02b521981a FFI: Add tonumber() specialization for failed conversions.
Contributed by Javier Guerra Giraldez.
2018-04-22 13:27:25 +02:00
Mike Pall
046129dbdd Fix rechaining of pseudo-resurrected string keys.
This is a serious bug. But extremely hard to reproduce, so it went
undetected for 8 years. One needs two resurrections with different
main nodes, which are both in a hash chain which gets relinked on
key insertion where the colliding node is in a non-main position. Phew.

Thanks to lbeiming.
2018-02-27 23:02:23 +01:00
Mike Pall
03cd5aa749 Clear stack after print_jit_status() in CLI.
Suggested by Hydroque.
2018-01-29 13:25:51 +01:00
Mike Pall
d4ee803427 Fix GCC 7 -Wimplicit-fallthrough warnings. 2018-01-29 13:06:13 +01:00
Mike Pall
b03a56f28e FFI: Don't assert on #1LL (5.2 compatibility mode only).
Reported by Denis Golovan.
2018-01-29 12:47:08 +01:00
Mike Pall
c88602f080 Fix LuaJIT API docs for LUAJIT_MODE_*.
Thanks to sunfishgao.
2018-01-18 12:29:39 +01:00
Mike Pall
430d9f8f7e Fix string.format("%c", 0). 2018-01-14 14:11:59 +01:00
Mike Pall
7dbf0b05f1 Fix saved bytecode encapsulated in ELF objects.
Thanks to Dimitry Andric.
2017-11-16 12:58:12 +01:00
Mike Pall
9f0caad0e4 Fix FOLD rule for strength reduction of widening.
Reported by Matthew Burk.
2017-11-08 12:53:05 +01:00
Mike Pall
0c0e7b168e DynASM/x86: Fix potential REL_A overflow.
Thanks to Joshua Haberman.
2017-09-20 19:39:50 +02:00
Mike Pall
f3d75075ed Use https for freelists.org links. 2017-08-18 12:52:14 +02:00
Mike Pall
82151a4514 Modify fix for warning from 'ar'. 2017-06-12 09:24:00 +02:00
Mike Pall
c7c3c4da43 MIPS: Fix handling of spare long-range jump slots.
Contributed by Djordje Kovacevic and Stefan Pejic.
2017-06-07 19:36:46 +02:00