Introduce support for plugin-defined intrinsics in JVM IR backend:
Add intrinsic for kotlinx.serialization.serializer<T>() function. Plugin intrinsic for old backend is removed because it is too hard and unjustifiable to unify them.
This commit is contained in:
@@ -72,7 +72,7 @@ class ReifiedTypeInliner<KT : KotlinTypeMarker>(
|
||||
fun applyPluginDefinedReifiedOperationMarker(
|
||||
insn: MethodInsnNode,
|
||||
instructions: InsnList,
|
||||
type: KotlinType,
|
||||
type: KT,
|
||||
asmType: Type
|
||||
): Int = -1
|
||||
}
|
||||
@@ -206,7 +206,7 @@ class ReifiedTypeInliner<KT : KotlinTypeMarker>(
|
||||
val applyResult = intrinsicsSupport.applyPluginDefinedReifiedOperationMarker(
|
||||
insn,
|
||||
instructions,
|
||||
intrinsicsSupport.toKotlinType(type),
|
||||
type,
|
||||
asmType
|
||||
)
|
||||
if (applyResult == -1) return false
|
||||
|
||||
Reference in New Issue
Block a user