Support plugin intrinsics for serializer() function in K2.
- Add IrPluginContext to JvmBackendContext, so plugin intrinsics can reference external functions properly. - Do not use module.findClassAcrossModuleDependencies as Descriptor API does not work for FIR. - Add asm listing tests in serialization plugin for K2 - Remove Delegated.kt asm listing test as we have similar test in boxIr group. #KT-56553 Fixed
This commit is contained in:
committed by
Space Team
parent
121c920099
commit
80ad6a4cd7
+5
-1
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
@@ -38,6 +38,10 @@ fun main(args: Array<String>) {
|
||||
model("codegen")
|
||||
}
|
||||
|
||||
testClass<AbstractSerializationFir2IrAsmLikeInstructionsListingTest> {
|
||||
model("codegen")
|
||||
}
|
||||
|
||||
// ------------------------------- box -------------------------------
|
||||
|
||||
testClass<AbstractSerializationIrBoxTest> {
|
||||
|
||||
+11
-1
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
@@ -28,6 +28,16 @@ open class AbstractSerializationIrAsmLikeInstructionsListingTest : AbstractIrAsm
|
||||
}
|
||||
}
|
||||
|
||||
open class AbstractSerializationFir2IrAsmLikeInstructionsListingTest : AbstractFirAsmLikeInstructionListingTest() {
|
||||
override fun configure(builder: TestConfigurationBuilder) {
|
||||
super.configure(builder)
|
||||
builder.defaultDirectives {
|
||||
+AsmLikeInstructionListingDirectives.FIR_DIFFERENCE
|
||||
}
|
||||
builder.configureForKotlinxSerialization()
|
||||
}
|
||||
}
|
||||
|
||||
private fun TestConfigurationBuilder.enableDifference() {
|
||||
defaultDirectives {
|
||||
+AsmLikeInstructionListingDirectives.IR_DIFFERENCE
|
||||
|
||||
Reference in New Issue
Block a user