JVM_IR: Put continuation parameter before default mask and handler.

This is important for calls using reflection as the reflect
library assumes this ordering of arguments.

It would be nice if this could be handled in the lowerings.
Currently AddContinuationLowering is after
DefaultArgumentStubGenerator. If we could add the continuation
first and then do default stub generation maybe we could avoid
the reshuffling introduced in coroutine codegen in this change.
This commit is contained in:
Mads Ager
2020-01-09 15:09:52 +01:00
committed by Ilmir Usmanov
parent c948459ed5
commit b2f8a4e82a
3 changed files with 47 additions and 14 deletions
@@ -2,7 +2,6 @@
// WITH_COROUTINES
// WITH_REFLECT
// TARGET_BACKEND: JVM
// IGNORE_BACKEND: JVM_IR
import helpers.*
import kotlin.coroutines.*