rra/zhelenskiy/flattening_impl
[IR] Remove unused MFVC getters Signed-off-by: Evgeniy.Zhelenskiy <Evgeniy.Zhelenskiy@jetbrains.com> #KT-1179 [IR] Add context receivers test, fix a flattening fields bug Signed-off-by: Evgeniy.Zhelenskiy <Evgeniy.Zhelenskiy@jetbrains.com> #KT-1179 [IR] Support `try` for MFVC #KT-1179 [IR] Support `if` and `when` for MFVC, fix several bugs, refactor #KT-1179 [IR] Rename MFVC tests + Add test for get-field optimization #KT-1179 [IR] Suppress temporary test failing on Android Bug is fixed in https://jetbrains.team/p/kt/reviews/6452 #KT-1179 [IR] Document the new MFVC lowering classes when necessary #KT-1179 [IR] Correct work of the new MFVC lowering classes #KT-1179 [IR] Prepare MFVC-lowering for the new MFVC classes #KT-1179 [IR] Fix MFVC with type arguments/parameters #KT-1179 [IR] Support MFVC with type parameters #KT-1179 [IR] Integrate MFVC with Inline classes #KT-1179 [IR] Fix compilation of MFVC in different module #KT-1179 [IR] Add MFVC generation tests #KT-1179 [IR] Implement equals call correct generation for MFVC #KT-1179 [IR] Implement bridges generation for MFVC #KT-1179 [IR] Implement MFVC basic flattening #KT-1179 Merge-request: KT-MR-6213 Merged-by: Evgeniy Zhelenskiy <Evgeniy.Zhelenskiy@jetbrains.com>
This commit is contained in:
committed by
Space Team
parent
5c9802ae84
commit
b7f5c039a6
+1
@@ -346,6 +346,7 @@ abstract class AnnotationCodegen(
|
||||
declaration.origin.isSynthetic ->
|
||||
true
|
||||
declaration.origin == JvmLoweredDeclarationOrigin.INLINE_CLASS_GENERATED_IMPL_METHOD ||
|
||||
declaration.origin == JvmLoweredDeclarationOrigin.MULTI_FIELD_VALUE_CLASS_GENERATED_IMPL_METHOD ||
|
||||
declaration.origin == IrDeclarationOrigin.GENERATED_SAM_IMPLEMENTATION ->
|
||||
true
|
||||
else ->
|
||||
|
||||
+1
@@ -294,6 +294,7 @@ class ExpressionCodegen(
|
||||
(irFunction is IrConstructor && irFunction.parentAsClass.isAnonymousObject) ||
|
||||
// TODO: Implement this as a lowering, so that we can more easily exclude generated methods.
|
||||
irFunction.origin == JvmLoweredDeclarationOrigin.INLINE_CLASS_GENERATED_IMPL_METHOD ||
|
||||
irFunction.origin == JvmLoweredDeclarationOrigin.MULTI_FIELD_VALUE_CLASS_GENERATED_IMPL_METHOD ||
|
||||
// Although these are accessible from Java, the functions they bridge to already have the assertions.
|
||||
irFunction.origin == IrDeclarationOrigin.BRIDGE_SPECIAL ||
|
||||
irFunction.origin == JvmLoweredDeclarationOrigin.SUPER_INTERFACE_METHOD_BRIDGE ||
|
||||
|
||||
+2
-1
@@ -37,9 +37,10 @@ object HashCode : IntrinsicMethod() {
|
||||
val target = context.state.target
|
||||
when {
|
||||
irFunction.origin == JvmLoweredDeclarationOrigin.INLINE_CLASS_GENERATED_IMPL_METHOD ||
|
||||
irFunction.origin == JvmLoweredDeclarationOrigin.MULTI_FIELD_VALUE_CLASS_GENERATED_IMPL_METHOD ||
|
||||
irFunction.origin == IrDeclarationOrigin.GENERATED_DATA_CLASS_MEMBER ||
|
||||
irFunction.origin == IrDeclarationOrigin.GENERATED_MULTI_FIELD_VALUE_CLASS_MEMBER -> {
|
||||
// TODO generate or lower IR for data class / inline class 'hashCode'?
|
||||
// TODO generate or lower IR for data class / value class 'hashCode'?
|
||||
DescriptorAsmUtil.genHashCode(mv, mv, receiverType, target)
|
||||
}
|
||||
target >= JvmTarget.JVM_1_8 && AsmUtil.isPrimitive(receiverJvmType) -> {
|
||||
|
||||
Reference in New Issue
Block a user