Commit Graph

2528 Commits (7306ba78d62b55a64f25231df1d5697345a5572e)

Author SHA1 Message Date
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 c21c6cb417 FFI: Ensure library is loaded before de-serializing FFI types.
Reported by ImagicTheCat.
2022-01-15 18:32:34 +01:00
Mike Pall d5a237eae0 Fix HREFK forwarding vs. table.clear().
Reported by XmiliaH.
2022-01-15 17:52:21 +01:00
Mike Pall bc1bdbf620 Fix FOLD rule for BUFHDR append.
Reported by XmiliaH.
2022-01-13 18:33:04 +01:00
Mike Pall be251d9149 OSX: Disable unreliable assertion for external frame unwinding. 2022-01-13 17:57:03 +01:00
Mike Pall 4ccaf348fb Merge branch 'master' into v2.1 2022-01-13 17:51:09 +01:00
Mike Pall e560487536 Limit exponent range in number parsing.
Reported by XmiliaH.
2022-01-13 17:48:43 +01:00
Mike Pall 103c29e634 Fix tonumber("-0") in dual-number mode.
Reported by Sergey Kaplun.
2022-01-13 15:38:56 +01:00
Mike Pall a01602a826 Limit work done in SINK pass.
Reported by XmiliaH.
2022-01-13 15:13:59 +01:00
Mike Pall c8bcf1e5fb Fix ABC FOLD rule with constants.
Reported by XmiliaH.
2022-01-13 14:40:11 +01:00
Mike Pall a91d0d9d3b Merge branch 'master' into v2.1 2021-12-19 18:37:06 +01:00
Mike Pall e73916d811 Prevent CSE of a REF_BASE operand across IR_RETF.
Reported by XmiliaH.
2021-12-19 18:35:27 +01:00
Mike Pall 1d20f33d29 Windows: Fix binary output of jit.bcsave to stdout.
Thanks to erw7.
2021-12-17 14:30:44 +01:00
Mike Pall 8b7ea5c1af Merge branch 'master' into v2.1 2021-12-17 14:17:16 +01:00
Mike Pall 7b994e0ee0 Fix FOLD rule for x-0.
Reported by XmiliaH.
2021-12-17 14:15:40 +01:00
Mike Pall f3c856915b Update Android build docs. 2021-11-13 20:39:37 +01:00
Mike Pall 6bac78e838 Merge branch 'master' into v2.1 2021-11-13 20:39:20 +01:00
Mike Pall 43f117946e Update Android build docs. 2021-11-13 20:24:06 +01:00
Mike Pall b4b2dce9fc ARM64: Fix pcall() error case.
Reported by Alex Orlenko.
2021-10-27 21:56:07 +02:00
Mike Pall bfcb74ed36 OSX/ARM64: Fix external unwinding.
Contributed by Edmund Kapusniak. #698 #757
2021-10-17 13:14:41 +02:00
Mike Pall bfd076532c Fix string buffer method recording.
Reported and analyzed by vfprintf. #755
2021-10-12 23:49:47 +02: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 442eff63ab Fix compilation of multi-result call to next().
Thanks to Vyacheslav Egorov.
2021-10-06 17:31:46 +02:00
Mike Pall e4b4d94514 ARM64: Fix IR_HREF code generation. 2021-10-02 17:49:50 +02:00
Mike Pall 4a70bd71ac MIPS64: Fix soft-float IR_TOSTR. 2021-10-02 17:48:19 +02:00
Mike Pall 10c9d9a214 Merge branch 'master' into v2.1 2021-10-02 17:23:51 +02:00
Mike Pall d3294fa63b MIPS: Fix register allocation in assembly of HREF.
Reported by Jakub Piotr Cłapa.
2021-10-02 16:52:57 +02:00
Mike Pall a2047d3f18 Fix compiler warning.
Suggested by Fezile Manana.
2021-09-29 11:59:27 +02:00
Mike Pall cb0f124f8f Merge branch 'master' into v2.1 2021-09-24 12:11:55 +02:00
Mike Pall 1811c4b0f1 Windows/x64: Document MSVC flags for C++ exception interoperability.
Suggested by Julien Cugnière.
2021-09-24 12:10:44 +02:00
Mike Pall 94a40bb238 FFI: Ensure returned string is alive in ffi.typeinfo().
Reported by zhuizhuhaomeng.
2021-09-23 19:07:30 +02:00
Mike Pall 78350a2565 OSX/ARM64: Disable unwind info.
See #698.
2021-09-21 17:49:06 +02:00
Mike Pall e2b9797ba1 Merge branch 'master' into v2.1 2021-09-21 16:44:06 +02:00
Mike Pall 204cee2c91 Fix stack allocation after on-trace stack check. 2021-09-21 16:42:35 +02:00
Mike Pall 191d87f531 Fix ITERN blacklisting.
Reported by ExtReMLapin. #744
2021-09-21 14:30:28 +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 421c4c7987 ARM64: Reorder interpreter stack frame and fix unwinding.
Reported by Yichun Zhang. Fixes #722.
May help towards fixing #698, too.
2021-09-20 22:37:07 +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 003f68565d FFI: Don't load PC from non-function object in FFI continuation.
Reported by Yichun Zhang. #743
2021-09-20 14:39:26 +02:00
Mike Pall 98b7d9a3b2 Merge branch 'master' into v2.1 2021-09-20 14:39:50 +02:00
Mike Pall 68ffbd318b FFI: Don't load PC from non-function object in FFI continuation.
Reported by Yichun Zhang. #743
2021-09-20 14:36:52 +02:00
Mike Pall a622e2eb55 FFI: Fix missing cts->L initialization in argv2ctype(). 2021-09-20 14:34:47 +02:00
Mike Pall 27ee3bcd79 OSX/ARM64: Disable external unwinding for now.
This reduces functionality, e.g. no handling of on-trace errors.
Someone with very deep knowledge about macOS and MACH-O/DWARF stack
unwinding internals is needed to fix this. See issue #698.
2021-09-19 17:58:24 +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 986bb406ad Use IR_HIOP for generalized two-register returns.
Sponsored by OpenResty Inc.
2021-09-19 17:47:11 +02:00
Mike Pall c6f5ef649b Refactor table traversal.
Sponsored by OpenResty Inc.
2021-09-19 17:38:49 +02:00
Mike Pall 4e0ea654a8 ARM: Fix symbol display in trace disassembly. 2021-09-19 17:27:18 +02:00
Mike Pall 5ee78fd8e3 Refactor IR_TMPREF generation. 2021-09-19 17:25:27 +02:00
Mike Pall 9211f0b03b Refactor IR_VLOAD to take an offset. 2021-09-19 17:18:16 +02:00