[IR] In irText tests, test full mangled names only computed from IR
We plan to disable computing full mangled names of declarations in all manglers except the IR mangler (see the subsequent commits). From now on, in irText tests we dump only the following mangled names: - Full mangled names computed using the IR mangler - Signature mangled names computed using the Descriptor mangler - Signature mangled names computed using the IR mangler - Signature mangled names computed using the FIR mangler Here by a full mangled name we mean the mangled name of a declaration computed using the `MangleMode.FULL` mode. Those mangled names include the mangled names of the declaration'a parents. By a signature mangled name we mean the mangled name of a declaration computed using the `MangleMode.SIGNATURE` mode. These mangled names are used to compute an `IdSignature` for the declaration, hence the name.
This commit is contained in:
committed by
Space Team
parent
9ccce52915
commit
69aeddcba8
@@ -5,70 +5,90 @@
|
||||
fun outer(): Unit
|
||||
// CHECK:
|
||||
// Mangled name: #outer(){}.ALocal
|
||||
// Mangled name for the signature: outer(){}
|
||||
local abstract class ALocal {
|
||||
// CHECK:
|
||||
// Mangled name: #outer(){}.ALocal#<init>(){}
|
||||
// Mangled name for the signature: outer(){}<init>(){}
|
||||
constructor() /* primary */
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: #outer(){}.ALocal#afun(){}
|
||||
// Mangled name for the signature: outer(){}afun(){}
|
||||
abstract fun afun(): Unit
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: #outer(){}.ALocal{}aval
|
||||
// Mangled name for the signature: outer(){}{}aval
|
||||
abstract val aval: Int
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: #outer(){}.ALocal#<get-aval>(){}kotlin.Int
|
||||
// Mangled name for the signature: outer(){}<get-aval>(){}kotlin.Int
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name: #outer(){}.ALocal#<get-aval>(){}
|
||||
// Mangled name for the signature: outer(){}<get-aval>(){}
|
||||
abstract get
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: #outer(){}.ALocal{}avar
|
||||
// Mangled name for the signature: outer(){}{}avar
|
||||
abstract var avar: Int
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: #outer(){}.ALocal#<get-avar>(){}kotlin.Int
|
||||
// Mangled name for the signature: outer(){}<get-avar>(){}kotlin.Int
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name: #outer(){}.ALocal#<get-avar>(){}
|
||||
// Mangled name for the signature: outer(){}<get-avar>(){}
|
||||
abstract get
|
||||
// CHECK:
|
||||
// Mangled name: #outer(){}.ALocal#<set-avar>(kotlin.Int){}
|
||||
// Mangled name for the signature: outer(){}<set-avar>(kotlin.Int){}
|
||||
abstract set
|
||||
|
||||
}
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: #outer(){}.Local
|
||||
// Mangled name for the signature: outer(){}
|
||||
local class Local : ALocal {
|
||||
// CHECK:
|
||||
// Mangled name: #outer(){}.Local{}aval
|
||||
// Mangled name for the signature: outer(){}{}aval
|
||||
override val aval: Int
|
||||
field
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: #outer(){}.Local#<get-aval>(){}kotlin.Int
|
||||
// Mangled name for the signature: outer(){}<get-aval>(){}kotlin.Int
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name: #outer(){}.Local#<get-aval>(){}
|
||||
// Mangled name for the signature: outer(){}<get-aval>(){}
|
||||
override get
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: #outer(){}.Local{}avar
|
||||
// Mangled name for the signature: outer(){}{}avar
|
||||
override var avar: Int
|
||||
field
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: #outer(){}.Local#<get-avar>(){}kotlin.Int
|
||||
// Mangled name for the signature: outer(){}<get-avar>(){}kotlin.Int
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name: #outer(){}.Local#<get-avar>(){}
|
||||
// Mangled name for the signature: outer(){}<get-avar>(){}
|
||||
override get
|
||||
// CHECK:
|
||||
// Mangled name: #outer(){}.Local#<set-avar>(kotlin.Int){}
|
||||
// Mangled name for the signature: outer(){}<set-avar>(kotlin.Int){}
|
||||
override set
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: #outer(){}.Local#<init>(){}
|
||||
// Mangled name for the signature: outer(){}<init>(){}
|
||||
constructor() /* primary */
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: #outer(){}.Local#afun(){}
|
||||
// Mangled name for the signature: outer(){}afun(){}
|
||||
override fun afun(): Unit
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user