Files
kotlin-fork/compiler/testData/codegen/boxInline
Ilmir Usmanov 2dee506022 Generate suspend markers for inline and crossinline parameters
if they are not inlined, but directly called.
Previously, all inline and crossinline lambda calls were treated by
codegen as if they are always going to be inlined. However, this is not
always the case.

Note, that we cannot generate these markers during codegen, since we
can inline code with no suspension points, but the whole inlined code
will become one giant suspension point. This, of course, breaks
tail-call optimization and, hence, slows down cold streams.

Because of that, we generate these markers, when we are sure, that they
are not going to be inlined. The only place, in which we know that, is
the inliner. During inlining of the inline function, we check, whether
the parameter is inline or crossinline and whether it is not an inline
lambda. If these checks pass, we generate the markers. Noinline
parameters are already covered by the codegen.
 #KT-30706 Fixed
 #KT-26925 Fixed
 #KT-26418 Fixed
2019-04-08 17:28:37 +03:00
..
2018-08-02 13:19:24 +02:00
2018-06-28 12:26:41 +02:00
2018-10-19 14:07:20 +03:00
2018-08-02 13:19:24 +02:00
2019-04-08 13:10:25 +02:00
2019-04-08 13:10:22 +02:00
2019-04-08 13:10:25 +02:00
2019-04-08 16:23:00 +02:00
2018-08-15 10:26:28 +03:00
2018-08-02 13:19:24 +02:00
2018-06-28 12:26:41 +02:00
2018-08-02 13:19:24 +02:00