Commit Graph

2660 Commits

Author SHA1 Message Date
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
117ddf35e6 DynASM/ARM64: Add instructions for ARM64e PAC.
Contributed by Peter Cawley. #559
2023-08-12 22:24:00 +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
Mike Pall
91914b23f6 DynASM: Fix regression due to warning fix.
Thanks to Dmitry Stogov. #1041 #970
2023-08-12 14:29:02 +02: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
ff6c496ba1 MIPSr6: Add missing files to Makefile install target.
Reported by FractalU.
2023-06-12 09:19:58 +02:00
Mike Pall
51fb2f2c3a DynASM: Fix warnings.
Reported by Ilija Tovilo.
2023-06-02 12:54:46 +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
Mike Pall
8a5e398c52 Avoid negation of signed integers in C that may hold INT*_MIN.
Reported by minoki.
Recent C compilers 'take advantage' of the undefined behavior.
This completely changes the meaning of expressions like (k == -k).
2022-12-22 00:03:06 +01:00
Mike Pall
8625eee71f Merge branch 'master' into v2.1 2022-12-09 00:21:40 +01:00
Mike Pall
b2791179ef Correct fix for stack check when recording BC_VARG.
Reported by Yichun Zhang.
2022-12-09 00:20:05 +01:00
Mike Pall
de2e1ca9d3 Disable FMA by default. Use -Ofma or jit.opt.start("+fma") to enable.
See the discussion in #918 for the rationale.
2022-12-07 18:38:22 +01:00
Mike Pall
7d5d4a1b1a Merge branch 'master' into v2.1 2022-12-07 17:21:36 +01:00
Mike Pall
cc96ab9d51 FFI: Fix dangling reference to CType. Improve checks.
Reported by elmknot.
2022-12-07 17:19:29 +01:00
Mike Pall
564147f518 ARM64: Fix code generation for IR_SLOAD with typecheck + conversion.
Reported by memcorrupt.
2022-12-01 12:03:09 +01:00
Mike Pall
637721d00f PS4/PS5: Fix build scripts.
Thanks to Mathias Westerdahl.
2022-11-27 15:36:11 +01:00
Mike Pall
1d75cd4d7b Avoid assertion in case of stack overflow from stitched trace.
Reported by Sergey Bronnikov. Fixed by Sergey Kaplun.
2022-11-27 15:25:32 +01:00
Mike Pall
46aa45dcbd NX: Always compile with -fPIC.
Suggested by Mathias Westerdahl.
2022-11-22 09:52:56 +01:00
Mike Pall
e05371bdc3 Merge branch 'master' into v2.1 2022-11-14 09:56:07 +01:00