Bump Abi version for IR based libraries.
This commit is contained in:
committed by
alexander-gorshenev
parent
a929dc9c6d
commit
a9176c736b
+21
-11
@@ -5,9 +5,9 @@ option java_outer_classname = "KonanIr";
|
|||||||
option optimize_for = LITE_RUNTIME;
|
option optimize_for = LITE_RUNTIME;
|
||||||
|
|
||||||
message DescriptorReference {
|
message DescriptorReference {
|
||||||
required string package_fq_name = 1;
|
required String package_fq_name = 1;
|
||||||
required string class_fq_name = 2;
|
required String class_fq_name = 2;
|
||||||
required string name = 3;
|
required String name = 3;
|
||||||
optional UniqId uniq_id = 4;
|
optional UniqId uniq_id = 4;
|
||||||
optional bool is_getter = 5 [default = false];
|
optional bool is_getter = 5 [default = false];
|
||||||
optional bool is_setter = 6 [default = false];
|
optional bool is_setter = 6 [default = false];
|
||||||
@@ -28,7 +28,7 @@ message Coordinates {
|
|||||||
required int32 end_offset = 2;
|
required int32 end_offset = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ------ Top Level---------------------------------------------- */
|
/* ------ Top Level---------------------------------------KonanIrModuleDeserializer.kt------- */
|
||||||
|
|
||||||
message IrDeclarationContainer {
|
message IrDeclarationContainer {
|
||||||
repeated IrDeclaration declaration = 1;
|
repeated IrDeclaration declaration = 1;
|
||||||
@@ -52,6 +52,16 @@ message IrModule {
|
|||||||
required IrTypeTable type_table = 4;
|
required IrTypeTable type_table = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ------ String Table ------------------------------------------ */
|
||||||
|
|
||||||
|
message String {
|
||||||
|
required int32 index = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
message StringTable {
|
||||||
|
repeated string value = 1;
|
||||||
|
}
|
||||||
|
|
||||||
/* ------ IrSymbols --------------------------------------------- */
|
/* ------ IrSymbols --------------------------------------------- */
|
||||||
|
|
||||||
enum IrSymbolKind {
|
enum IrSymbolKind {
|
||||||
@@ -74,7 +84,7 @@ message IrSymbolData {
|
|||||||
required IrSymbolKind kind = 1;
|
required IrSymbolKind kind = 1;
|
||||||
required UniqId uniq_id = 2;
|
required UniqId uniq_id = 2;
|
||||||
required UniqId top_level_uniq_id = 3;
|
required UniqId top_level_uniq_id = 3;
|
||||||
optional string fqname = 4;
|
optional String fqname = 4;
|
||||||
optional DescriptorReference descriptor_reference = 5;
|
optional DescriptorReference descriptor_reference = 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -153,7 +163,7 @@ message IrTypeIndex {
|
|||||||
|
|
||||||
message IrBreak {
|
message IrBreak {
|
||||||
required int32 loop_id = 1;
|
required int32 loop_id = 1;
|
||||||
optional string label = 2;
|
optional String label = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
message IrBlock {
|
message IrBlock {
|
||||||
@@ -183,7 +193,7 @@ message IrCall {
|
|||||||
|
|
||||||
message IrFunctionReference {
|
message IrFunctionReference {
|
||||||
required IrSymbol symbol = 1;
|
required IrSymbol symbol = 1;
|
||||||
optional string origin = 2;
|
optional Origin origin = 2;
|
||||||
required MemberAccessCommon member_access = 3;
|
required MemberAccessCommon member_access = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -192,7 +202,7 @@ message IrPropertyReference {
|
|||||||
optional IrSymbol field = 1;
|
optional IrSymbol field = 1;
|
||||||
optional IrSymbol getter = 2;
|
optional IrSymbol getter = 2;
|
||||||
optional IrSymbol setter = 3;
|
optional IrSymbol setter = 3;
|
||||||
optional string origin = 4;
|
optional Origin origin = 4;
|
||||||
required MemberAccessCommon member_access = 5;
|
required MemberAccessCommon member_access = 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -216,13 +226,13 @@ message IrConst {
|
|||||||
int64 long = 7;
|
int64 long = 7;
|
||||||
float float = 8;
|
float float = 8;
|
||||||
double double = 9;
|
double double = 9;
|
||||||
string string = 10;
|
String string = 10;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
message IrContinue {
|
message IrContinue {
|
||||||
required int32 loop_id = 1;
|
required int32 loop_id = 1;
|
||||||
optional string label = 2;
|
optional String label = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
message IrDelegatingConstructorCall {
|
message IrDelegatingConstructorCall {
|
||||||
@@ -272,7 +282,7 @@ message IrInstanceInitializerCall {
|
|||||||
message Loop {
|
message Loop {
|
||||||
required int32 loop_id = 1;
|
required int32 loop_id = 1;
|
||||||
required IrExpression condition = 2;
|
required IrExpression condition = 2;
|
||||||
optional string label = 3;
|
optional String label = 3;
|
||||||
optional IrExpression body = 4;
|
optional IrExpression body = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ fun String.parseKonanAbiVersion(): KonanAbiVersion {
|
|||||||
|
|
||||||
data class KonanAbiVersion(val version: Int) {
|
data class KonanAbiVersion(val version: Int) {
|
||||||
companion object {
|
companion object {
|
||||||
val CURRENT = KonanAbiVersion(5)
|
val CURRENT = KonanAbiVersion(6)
|
||||||
}
|
}
|
||||||
override fun toString() = "$version"
|
override fun toString() = "$version"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user