JVM Metadata: Add a bit to mark anonymous objects in inline functions
Anonymous objects in the scope of an inline functions are copied to all call-sites. This makes them part of the public ABI of a Kotlin library. We introduce a flag to mark all classes in the scope of an inline function. When compiling with assertions enabled, we check that this flag is set whenever we inline an anonymous object from another module.
This commit is contained in:
committed by
Alexander Udalov
parent
254fc53b17
commit
de9d2919a8
@@ -44,6 +44,7 @@ public final class JvmAnnotationNames {
|
||||
public static final int METADATA_JVM_IR_FLAG = 1 << 4;
|
||||
public static final int METADATA_JVM_IR_STABLE_ABI_FLAG = 1 << 5;
|
||||
public static final int METADATA_FIR_FLAG = 1 << 6;
|
||||
public static final int METADATA_PUBLIC_ABI_FLAG = 1 << 7;
|
||||
|
||||
public static final Name DEFAULT_ANNOTATION_MEMBER_NAME = Name.identifier("value");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user