Denis Zharkov
0878049f15
Support tailrec suspend functions in JVM backend
...
The main problem is that inside a state machine for a named suspend
function parameters of it's owner are available as a usual captured
closure parameters (i.e. through synthetic fields), while
TailRecursion codegen expects that parameters are straight local
variables.
So, the solution is just to define local var for each of real parameters
(all but the last continuation parameters) for tailrec functions.
#KT-15759 Fixed
2017-02-02 18:09:19 +03:00
..
2017-01-27 23:24:13 +03:00
2017-02-02 18:09:19 +03:00
2017-01-27 23:24:13 +03:00
2017-01-27 23:24:13 +03:00
2017-01-27 23:24:13 +03:00
2017-01-27 23:24:13 +03:00
2017-01-27 23:24:13 +03:00
2017-01-27 23:24:13 +03:00
2017-01-27 23:24:13 +03:00
2017-01-27 23:24:13 +03:00
2017-01-27 23:24:13 +03:00
2017-01-27 23:24:13 +03:00
2017-01-27 23:24:13 +03:00
2017-01-27 23:24:13 +03:00
2017-01-27 23:24:13 +03:00
2017-01-27 23:24:13 +03:00
2017-01-27 23:24:13 +03:00
2017-01-27 23:24:13 +03:00
2017-01-27 23:24:13 +03:00
2017-01-27 23:24:13 +03:00
2017-01-27 23:24:13 +03:00
2017-01-27 23:24:13 +03:00
2017-01-27 23:24:13 +03:00
2017-01-27 23:24:13 +03:00
2017-01-27 23:24:13 +03:00
2017-01-27 23:24:13 +03:00
2017-01-27 23:24:13 +03:00
2017-01-27 23:24:13 +03:00
2017-01-27 23:24:13 +03:00
2017-01-27 23:24:13 +03:00
2017-01-27 23:24:13 +03:00
2017-01-27 23:24:13 +03:00
2017-01-27 23:24:13 +03:00
2017-01-27 23:24:13 +03:00
2017-01-27 23:24:13 +03:00
2017-01-27 23:24:13 +03:00
2017-01-27 23:24:13 +03:00
2017-01-27 23:24:13 +03:00
2017-01-27 23:24:13 +03:00
2017-01-27 23:24:13 +03:00
2017-01-27 23:24:13 +03:00
2017-01-30 15:45:02 +03:00
2017-01-27 23:24:13 +03:00
2017-01-27 23:24:13 +03:00
2017-01-27 23:24:13 +03:00
2017-01-27 23:24:13 +03:00
2017-01-27 23:24:13 +03:00
2017-01-27 23:24:13 +03:00
2017-01-27 23:24:13 +03:00
2017-01-27 23:24:13 +03:00
2017-01-27 23:24:13 +03:00
2017-01-27 23:24:13 +03:00
2017-01-27 23:24:13 +03:00
2017-01-27 23:24:13 +03:00
2017-01-27 23:24:13 +03:00
2017-01-27 23:24:13 +03:00
2017-01-27 23:24:13 +03:00
2017-01-27 23:24:13 +03:00
2017-01-27 23:24:13 +03:00
2017-01-27 23:24:13 +03:00
2017-01-27 23:24:13 +03:00
2017-01-27 23:24:13 +03:00
2017-01-27 23:24:13 +03:00
2017-01-27 23:24:13 +03:00
2017-01-27 23:24:13 +03:00
2017-01-27 23:24:13 +03:00
2017-01-27 23:24:13 +03:00
2017-01-27 23:24:13 +03:00
2017-01-27 23:24:13 +03:00