Alexander Korepanov
a5c8e30bb1
[JS IR] Use a copy of an original inline function for inlining
...
If inline function A calls another inline function B,
we must use the original version of inline function A for inlining,
which doesn’t have inlined function B. Because during the inlining
process, we remap all occurrences of inline function A
to a temporary copy of function A, and if the function B
somehow uses function A (e.g. callable reference),
the built IR will have a reference to the temporary function,
not the original one. All these things lead to broken cross-module references.
This patch saves the original versions of all inline functions
before inlining and provides them during the inline process.
^KT-55930 Fixed
2023-01-16 11:01:03 +00:00
..
2022-04-11 10:37:21 +00:00
2022-04-11 10:37:21 +00:00
2022-04-11 10:37:21 +00:00
2022-04-11 10:37:21 +00:00
2022-04-20 09:28:45 +00:00
2021-12-22 10:14:08 +03:00
2022-08-08 17:40:45 +00:00
2022-04-14 13:48:19 +00:00
2022-04-11 10:37:21 +00:00
2022-04-11 10:37:21 +00:00
2022-04-11 10:37:21 +00:00
2022-06-02 13:47:24 +00:00
2022-04-11 10:37:21 +00:00
2022-04-11 10:37:21 +00:00
2022-04-11 10:37:21 +00:00
2022-04-11 10:37:21 +00:00
2022-06-02 13:47:24 +00:00
2022-06-02 13:47:24 +00:00
2022-04-11 10:37:21 +00:00
2022-04-11 10:37:21 +00:00
2022-04-11 10:37:21 +00:00
2022-04-11 10:37:21 +00:00
2021-10-12 23:29:39 +03:00
2022-04-11 10:37:21 +00:00
2022-06-02 13:47:24 +00:00
2022-04-11 10:37:21 +00:00
2022-06-02 13:47:30 +00:00
2022-04-11 10:37:21 +00:00
2022-04-11 10:37:21 +00:00
2022-04-11 10:37:21 +00:00
2022-04-11 10:37:21 +00:00
2022-04-11 10:37:21 +00:00
2022-04-11 10:37:21 +00:00
2022-04-11 10:37:21 +00:00
2022-04-11 10:37:21 +00:00
2022-04-11 10:37:21 +00:00
2022-04-11 10:37:21 +00:00
2022-04-11 10:37:21 +00:00
2022-04-11 10:37:21 +00:00
2022-04-11 10:37:21 +00:00
2022-04-11 10:37:21 +00:00
2022-04-11 10:37:21 +00:00
2022-04-11 10:37:21 +00:00
2022-04-11 10:37:21 +00:00
2022-04-11 10:37:21 +00:00
2022-08-22 23:15:52 +00:00
2022-08-22 23:15:52 +00:00
2022-06-02 13:47:24 +00:00
2020-06-22 12:03:59 +03:00
2022-04-11 10:37:21 +00:00
2022-04-11 10:37:21 +00:00
2022-04-11 10:37:21 +00:00
2022-04-11 10:37:21 +00:00
2022-04-11 10:37:21 +00:00
2022-04-11 10:37:21 +00:00
2022-04-11 10:37:21 +00:00
2022-04-11 10:37:21 +00:00
2022-04-11 10:37:21 +00:00
2022-04-11 10:37:21 +00:00
2021-10-12 23:29:39 +03:00
2022-04-11 10:37:21 +00:00
2022-04-11 10:37:21 +00:00
2022-04-11 10:37:21 +00:00
2022-04-11 10:37:21 +00:00
2022-04-11 10:37:21 +00:00
2023-01-16 11:01:03 +00:00
2022-04-11 10:37:21 +00:00
2022-04-11 10:37:21 +00:00
2022-04-11 10:37:21 +00:00
2022-04-11 10:37:21 +00:00
2022-04-11 10:37:21 +00:00
2022-04-11 10:37:21 +00:00
2022-04-11 10:37:21 +00:00
2022-04-11 10:37:21 +00:00
2022-04-11 10:37:21 +00:00
2022-04-11 10:37:21 +00:00
2022-04-11 10:37:21 +00:00
2019-11-25 20:22:03 +03:00
2022-04-11 10:37:21 +00:00
2022-04-11 10:37:21 +00:00