Commit Graph

273 Commits

Author SHA1 Message Date
Mike Pall
7421a1b33c Restore state when recording __concat metamethod throws an error.
Thanks to Sergey Kaplun. #1234
2024-07-04 00:48:49 +02:00
Mike Pall
bcc5125a91 Fix recording of __concat metamethod.
Thanks to Sergey Kaplun. #1164
2024-03-10 17:26:36 +01:00
Mike Pall
913df6a945 Merge branch 'master' into v2.1 2024-03-10 17:26:03 +01:00
Mike Pall
cae361187e Prevent down-recursion for side traces.
Thanks to Sergey Kaplun. #1169
2024-03-10 17:23:21 +01:00
Mike Pall
302366a338 Check frame size limit before returning to a lower frame.
Thanks to Sergey Kaplun. #1173
2024-03-10 17:19:29 +01:00
Mike Pall
69bbbf7736 Merge branch 'master' into v2.1 2023-11-09 11:05:27 +01:00
Mike Pall
65c8493907 Invalidate SCEV entry when returning to lower frame.
Thanks to Zhongwei Yao. #1115
2023-11-09 11:02:36 +01:00
Mike Pall
07b3cd3cf9 Check for upvalue state transition in IR_UREFO.
Thanks to Peter Cawley. #1085
2023-11-05 16:34:46 +01:00
Mike Pall
b8919781d4 Consistently use 64 bit constants for 64 bit IR instructions.
Thanks to Peter Cawley. #1084
2023-09-21 03:46:33 +02:00
Mike Pall
4b605a7da8 Merge branch 'master' into v2.1 2023-09-21 02:23:25 +02:00
Mike Pall
92b89d005a Add missing coercion when recording select(string, ...)
Thanks to Peter Cawley. #1083
2023-09-21 02:10:18 +02:00
Mike Pall
9bd2404137 Merge branch 'master' into v2.1 2023-09-09 13:42:12 +02:00
Mike Pall
7f9907b4ed Add NaN check to IR_NEWREF.
Thanks to Peter Cawley. #1069
2023-09-09 13:37:31 +02:00
Mike Pall
ef587afb2c Merge branch 'master' into v2.1 2023-08-20 21:33:37 +02:00
Mike Pall
158a284cc9 Bump copyright date. 2023-08-20 21:25:30 +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
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
8bbd58e534 Merge branch 'master' into v2.1 2023-04-16 13:29:58 +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
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
dad04f1754 Fix trace join to BC_JLOOP originating from BC_ITERN.
Reported by OpenResty Inc.
2022-09-14 12:26:53 +02:00
Mike Pall
fffd3eafc4 Fix compiler warnings.
Reported by gan74.
2022-09-13 13:43:03 +02:00
Mike Pall
32984282dd Prevent trace start at BC_ITERL after compiled BC_ITERN.
Reported by ccagml.
2022-07-21 17:30:56 +02:00
Mike Pall
6bda30d8c7 LJ_GC64: Fix IR_VARG offset for fixed number of results.
Reported by George Vaintrub. Fixed by Sergey Kaplun.
2022-07-12 22:21:26 +02:00
Mike Pall
d4b6bb80ea Fix ITERN loop detection when hook checks are enabled.
Reported by Myria.
2022-06-02 13:18:10 +02:00
Mike Pall
80bb1428aa Fix loop initialization in table.foreach().
Reported by Daniel Steinberg.
2022-05-20 11:54:20 +02:00
Mike Pall
91bc6b8ad1 LJ_GC64: Fix HREFK optimization.
Contributed by XmiliaH.
2022-05-03 20:51:29 +02:00
Mike Pall
3ee3c9cfa9 Fix recording of __concat metamethod.
Reported by Elias Oelschner. Analyzed by XmiliaH.
2022-05-02 22:33:35 +02:00
Mike Pall
1cdff194cf Add missing check for LJ_KEYINDEX in ITERN recording.
Reported by dragonorloong. Analyzed by vfprintf. #827
2022-04-02 21:27:43 +02:00
Mike Pall
96d6d50320 Revert to trival pow() optimizations to prevent inaccuracies. 2022-03-08 19:44:10 +01:00
Mike Pall
4077f0c3d6 Prevent unroll across BC_ITERN.
Reported by Marukyu.
2022-01-16 21:01:52 +01:00
Mike Pall
7306ba78d6 Merge branch 'master' into v2.1 2022-01-15 19:42:30 +01:00
Mike Pall
c4dfb625ba Bump copyright date. 2022-01-15 19:30:54 +01:00
Mike Pall
05f1984e1a Fix interaction of profiler and ITERN recording.
Reported and analyzed by vfprintf. #754
2021-10-08 16:50:35 +02:00
Mike Pall
1aa4af0b83 Ensure ITERN forward progress on interpreter bailout.
Reported by Yichun Zhang and ExtReMLapin. #744
2021-09-21 13:15:06 +02:00
Mike Pall
28440544ba Don't bail out to interpreter to JLOOP originating from ITERN.
Otherwise forward progress is not guaranteed.
Reported by Yichun Zhang.
2021-09-20 14:40:23 +02:00
Mike Pall
bb0f241015 Compile table traversals: next(), pairs(), BC_ISNEXT/BC_ITERN.
Sponsored by OpenResty Inc.
2021-09-19 17:49:25 +02:00
Mike Pall
9211f0b03b Refactor IR_VLOAD to take an offset. 2021-09-19 17:18:16 +02:00
Mike Pall
29bc1f04ac String buffers, part 3d: Compile string buffer methods and functions.
Sponsored by fmad.io.
2021-07-19 16:53:30 +02:00
Mike Pall
6df650fe3f String buffers, part 3a: Add IR_TMPREF for passing TValues to helpers.
Sponsored by fmad.io.
2021-07-19 16:23:12 +02:00
Mike Pall
75ee3a6159 Prevent compile of __concat with tailcall to fast function.
E.g. __concat = function() return setmetatable(...) end
Reported by Fezile Manana.
2021-04-21 15:23:15 +02:00
Mike Pall
a32aeadc68 Handle on-trace OOM errors from helper functions. 2021-03-23 00:39:50 +01:00
Mike Pall
ddd0fd8f37 Use weak guards for on-trace allocations. 2021-03-23 00:33:34 +01:00
Mike Pall
1e66d0f9e6 Merge branch 'master' into v2.1 2021-01-02 21:56:07 +01:00