2dee506022
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