fesily
24e8adf315
add LUA_INIT
2023-08-25 09:29:28 +08:00
fesily
e1136896aa
fix parser error
2023-08-25 09:12:40 +08:00
fesily
fe38c5be05
add LUA_COMPAT_VARARG
2023-08-21 10:22:27 +08:00
fesily
d87a18c473
fix stackover read
2023-08-18 17:15:11 +08:00
fesily
1c70983df1
add parser table hash patch
2023-08-18 16:19:15 +08:00
fesily
ca68f2bbcf
fix LUAJIT_NUMMODE=2
2023-08-18 14:37:20 +08:00
fesily
41198c8d24
fix compiler warn
2023-08-18 14:33:51 +08:00
fesily
3c79770bcb
add LUA_COMPAT_GFIND
2023-08-18 14:33:39 +08:00
fesily
e8811a28d9
delete unpack patch, add parser patch
2023-08-17 16:45:31 +08:00
fesily
e73a2dc482
Merge branch 'LuaJIT:v2.1' into dontstarve
2023-08-15 11:00:05 +08:00
Mike Pall
72efc42ef2
MIPS: Fix "bad FP FLOAD" assertion.
...
Reported by Sergey Kaplun. #1043
2023-08-13 03:02:25 +02:00
Mike Pall
119fd1fab0
Ensure forward progress on trace exit to BC_ITERN.
...
Also use a safer way to force a static dispatch for BC_RET*.
Reported by Bartel Eerdekens. Analyzed by Peter Cawley. #1000 #1045
2023-08-13 02:25:12 +02:00
Mike Pall
27af72e66f
ARM64: Add support for ARM64e pointer authentication codes (PAC).
...
Contributed by Peter Cawley. #559
2023-08-12 22:25:40 +02:00
Mike Pall
dbed79ea5c
Merge branch 'master' into v2.1
2023-08-12 22:20:33 +02:00
Mike Pall
abb27c7771
Fix maxslots when recording BC_VARG, part 3.
...
Thanks to Peter Cawley. #1046
2023-08-12 20:16:56 +02:00
Mike Pall
caf7cbc57c
Fix predict_next() in parser.
...
Reported by Sergey Kaplun. #1033
2023-08-12 16:21:41 +02:00
Mike Pall
9b544c25ef
MIPS32: Declare that the assembler part uses the FR=0 model.
...
Thanks to Peter Cawley. #1040
2023-08-12 15:02:51 +02:00
Mike Pall
93ce12ee15
ARM64: Fix assembly of HREFK (again).
...
Thanks to Peter Cawley. #1026
2023-08-12 14:52:48 +02:00
Mike Pall
d5bbf9cdb4
Fix frame for more types of on-trace error messages.
...
Thanks to Maxim Kokryashkin. #1034
2023-08-12 14:48:34 +02:00
Mike Pall
165ea18b0e
Add workaround for bytecode dump of builtins.
...
Reported by Hang Zhou. Thanks to Sergey Kaplun. #1038
2023-08-12 14:37:35 +02:00
fesily
a11a63fbb3
luaL_loadbuffer patch
2023-08-07 14:42:48 +08:00
fesily
b93a33780a
add io and loadbufferex name patch
2023-08-03 14:37:44 +08:00
fesily
708c31b6a7
add dontstarve patch
2023-07-27 11:28:19 +08:00
Mike Pall
8635cbabf3
Merge branch 'master' into v2.1
2023-07-12 22:34:46 +02:00
Mike Pall
aa2db7ebd1
Fix base register coalescing in side trace.
...
Thanks to Sergey Kaplun, NiLuJe and Peter Cawley. #1031 #1016
2023-07-12 21:56:17 +02:00
Mike Pall
8fbd576fb9
ARM64: Fix assembly of HREFK.
...
Reported by caohongqing. #1026
Fix contributed by Peter Cawley.
2023-07-09 21:15:01 +02:00
Mike Pall
bd55d3023f
Merge branch 'master' into v2.1
2023-07-09 21:09:21 +02:00
Mike Pall
a01cba9d2d
Fix maxslots when recording BC_VARG, part 2.
...
Analyzed by Sergey Kaplun. #1024
2023-07-09 21:08:12 +02:00
Mike Pall
0cc5fdfbc0
Fix maxslots when recording BC_TSETM.
...
Analyzed by Sergey Kaplun. #1025
2023-07-08 19:44:48 +02:00
Mike Pall
69dadad6c3
Merge branch 'master' into v2.1
2023-07-08 19:43:08 +02:00
Mike Pall
94ada59628
Fix maxslots when recording BC_VARG.
...
Analyzed by Sergey Kaplun. #1024
2023-07-08 19:40:12 +02:00
Mike Pall
b7a8c7c184
Fix register mask for stack check in head of side trace.
...
Analyzed by Sergey Kaplun. #1016
2023-07-08 19:36:24 +02:00
Mike Pall
4c35a42d9c
FFI: Fix ffi.metatype() for non-raw types.
...
Reported by 999pingGG. #1005
2023-07-08 19:30:56 +02:00
Mike Pall
9493acc1a2
ARM64: Fix LDP code generation.
...
Thanks to Zhongwei Yao. #1028
2023-07-08 12:10:18 +02:00
Mike Pall
2d8300c194
Fix frame for on-trace out-of-memory error.
...
Reported by ruidong007.
2023-06-02 11:42:58 +02:00
Mike Pall
8e53ccc686
Merge branch 'master' into v2.1
2023-06-02 11:42:24 +02:00
Mike Pall
9f452bbef5
Fix handling of instable types in TNEW/TDUP load forwarding.
...
Analyzed by Sergey Kaplun. #994
2023-06-02 11:38:45 +02:00
Mike Pall
8c20c3b1a3
Fix compiler warning.
...
Reported by Myriachan.
2023-06-02 11:36:24 +02:00
Mike Pall
224129a8e6
Fix last commit.
...
Reported by PluMGMK.
2023-04-30 13:38:29 +02:00
Mike Pall
1c27912705
Print errors from __gc finalizers instead of rethrowing them.
...
Finalizers are not supposed to throw errors -- this is undefined behavior.
Lua 5.1 - 5.3 and (previously) LuaJIT rethrow the error. This randomly
breaks some unrelated code that just happens to do an allocation. Bad.
Lua 5.4 catches the error and emits a warning instead. But warnings are
not enabled by default, so it fails silently. Even worse.
LuaJIT (now) catches the error and emits a VM event. The default event
handler function prints "ERROR in finalizer: ...".
Set a custom handler function with: jit.attach(handler, "errfin")
2023-04-16 18:13:48 +02:00
Mike Pall
8bbd58e534
Merge branch 'master' into v2.1
2023-04-16 13:29:58 +02:00
Mike Pall
c7db8255e1
Fix TDUP load forwarding after table rehash.
...
Reported by Sergey Kaplun. #980
2023-04-16 13:26:18 +02:00
Mike Pall
96fc114a7a
Fix canonicalization of +-0.0 keys for IR_NEWREF.
...
Reported by Sergey Kaplun. #981
2023-04-16 13:24:08 +02:00
Mike Pall
505e2c03de
Merge branch 'master' into v2.1
2023-02-21 17:07:37 +01:00
Mike Pall
8135de2a02
Improve error reporting on stack overflow.
...
Thanks to Nicolas Lebedenco.
2023-02-21 17:05:12 +01:00
Mike Pall
eccdf6d6f8
Merge branch 'master' into v2.1
2023-02-21 16:54:04 +01:00
Mike Pall
126526ab93
Allow building sources with mixed LF/CRLF line-endings.
...
Reported by mgood7123.
2023-02-21 16:49:51 +01:00
Mike Pall
d0e88930dd
Fix compiler warning.
...
Reported by Christopher Ng.
2023-01-04 10:44:18 +01:00
Mike Pall
a4f4f5b835
Don't fail for Clang builds, which pretend to be an ancient GCC.
...
Reported by pkubaj.
2023-01-04 10:30:59 +01:00
Mike Pall
a04480e311
Merge branch 'master' into v2.1
2022-12-22 00:52:04 +01:00