[IR SERIALIZATION] Get rid of UniqId proto message
- encode locality flag in major bit of uniqid (1 - global, 0 - local)
This commit is contained in:
@@ -76,7 +76,7 @@ message FileEntry {
|
|||||||
}
|
}
|
||||||
|
|
||||||
message IrFile {
|
message IrFile {
|
||||||
repeated UniqId declaration_id = 1;
|
repeated int64 declaration_id = 1;
|
||||||
required FileEntry file_entry = 2;
|
required FileEntry file_entry = 2;
|
||||||
repeated int32 fq_name = 3;
|
repeated int32 fq_name = 3;
|
||||||
repeated IrConstructorCall annotation = 4;
|
repeated IrConstructorCall annotation = 4;
|
||||||
@@ -105,14 +105,12 @@ enum IrSymbolKind {
|
|||||||
|
|
||||||
message IrSymbolData {
|
message IrSymbolData {
|
||||||
required IrSymbolKind kind = 1;
|
required IrSymbolKind kind = 1;
|
||||||
required UniqId uniq_id = 2;
|
|
||||||
required UniqId top_level_uniq_id = 3;
|
|
||||||
repeated int32 fq_name = 4;
|
|
||||||
optional DescriptorReference descriptor_reference = 5;
|
|
||||||
}
|
|
||||||
|
|
||||||
message IrSymbolTable {
|
required int64 uniq_id_index = 4;
|
||||||
repeated IrSymbolData symbols = 1;
|
required int64 top_level_uniq_id_index = 5;
|
||||||
|
|
||||||
|
repeated int32 fq_name = 6;
|
||||||
|
optional DescriptorReference descriptor_reference = 7;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ------ IrTypes --------------------------------------------- */
|
/* ------ IrTypes --------------------------------------------- */
|
||||||
|
|||||||
+5
-3
@@ -37,8 +37,10 @@ abstract class GlobalDeclarationTable(private val mangler: KotlinMangler, privat
|
|||||||
|
|
||||||
protected open fun loadKnownBuiltins(builtIns: IrBuiltIns, startIndex: Long): Long {
|
protected open fun loadKnownBuiltins(builtIns: IrBuiltIns, startIndex: Long): Long {
|
||||||
var index = startIndex
|
var index = startIndex
|
||||||
|
val mask = 1L shl 63
|
||||||
builtIns.knownBuiltins.forEach {
|
builtIns.knownBuiltins.forEach {
|
||||||
table[it.owner] = UniqId(index++, false).also { id -> clashTracker.commit(it.owner, id) }
|
table[it.owner] = UniqId(index or mask).also { id -> clashTracker.commit(it.owner, id) }
|
||||||
|
index++
|
||||||
}
|
}
|
||||||
return index
|
return index
|
||||||
}
|
}
|
||||||
@@ -46,7 +48,7 @@ abstract class GlobalDeclarationTable(private val mangler: KotlinMangler, privat
|
|||||||
open fun computeUniqIdByDeclaration(declaration: IrDeclaration): UniqId {
|
open fun computeUniqIdByDeclaration(declaration: IrDeclaration): UniqId {
|
||||||
return table.getOrPut(declaration) {
|
return table.getOrPut(declaration) {
|
||||||
with(mangler) {
|
with(mangler) {
|
||||||
UniqId(declaration.hashedMangle, false).also { clashTracker.commit(declaration, it) }
|
UniqId(declaration.hashedMangle).also { clashTracker.commit(declaration, it) }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -71,7 +73,7 @@ class DeclarationTable(
|
|||||||
|
|
||||||
private fun computeUniqIdByDeclaration(declaration: IrDeclaration): UniqId {
|
private fun computeUniqIdByDeclaration(declaration: IrDeclaration): UniqId {
|
||||||
return if (declaration.isLocalDeclaration()) {
|
return if (declaration.isLocalDeclaration()) {
|
||||||
table.getOrPut(declaration) { UniqId(localIndex++, true) }
|
table.getOrPut(declaration) { UniqId(localIndex++) }
|
||||||
} else globalDeclarationTable.computeUniqIdByDeclaration(declaration)
|
} else globalDeclarationTable.computeUniqIdByDeclaration(declaration)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+3
-2
@@ -256,11 +256,12 @@ open class IrFileSerializer(
|
|||||||
|
|
||||||
val uniqId =
|
val uniqId =
|
||||||
declarationTable.uniqIdByDeclaration(declaration)
|
declarationTable.uniqIdByDeclaration(declaration)
|
||||||
proto.setUniqId(protoUniqId(uniqId))
|
proto.uniqIdIndex = uniqId.index
|
||||||
|
|
||||||
val topLevelUniqId =
|
val topLevelUniqId =
|
||||||
declarationTable.uniqIdByDeclaration((declaration).findTopLevelDeclaration())
|
declarationTable.uniqIdByDeclaration((declaration).findTopLevelDeclaration())
|
||||||
proto.setTopLevelUniqId(protoUniqId(topLevelUniqId))
|
|
||||||
|
proto.topLevelUniqIdIndex = topLevelUniqId.index
|
||||||
|
|
||||||
descriptorReferenceSerializer.serializeDescriptorReference(declaration)?.let {
|
descriptorReferenceSerializer.serializeDescriptorReference(declaration)?.let {
|
||||||
proto.setDescriptorReference(it)
|
proto.setDescriptorReference(it)
|
||||||
|
|||||||
+11
-9
@@ -289,8 +289,8 @@ abstract class KotlinIrLinker(
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun deserializeIrSymbolData(proto: ProtoSymbolData): IrSymbol {
|
private fun deserializeIrSymbolData(proto: ProtoSymbolData): IrSymbol {
|
||||||
val key = proto.uniqId.uniqId()
|
val key = UniqId(proto.uniqIdIndex)
|
||||||
val topLevelKey = proto.topLevelUniqId.uniqId()
|
val topLevelKey = UniqId(proto.topLevelUniqIdIndex)
|
||||||
|
|
||||||
val topLevelDeserializationState = getStateForID(topLevelKey)
|
val topLevelDeserializationState = getStateForID(topLevelKey)
|
||||||
|
|
||||||
@@ -409,22 +409,23 @@ abstract class KotlinIrLinker(
|
|||||||
fileToDeserializerMap[file] = fileDeserializer
|
fileToDeserializerMap[file] = fileDeserializer
|
||||||
|
|
||||||
fileProto.declarationIdList.forEach {
|
fileProto.declarationIdList.forEach {
|
||||||
val uniqId = it.uniqId()
|
val uniqId = UniqId(it)
|
||||||
assert(uniqId.isPublic)
|
|
||||||
moduleReversedFileIndex.getOrPut(uniqId) { fileDeserializer }
|
moduleReversedFileIndex.getOrPut(uniqId) { fileDeserializer }
|
||||||
}
|
}
|
||||||
|
|
||||||
val forceLoadedIds = deserializationStrategy.run {
|
val forceLoadedIds = deserializationStrategy.run {
|
||||||
when {
|
when {
|
||||||
theWholeWorld -> fileProto.declarationIdList
|
theWholeWorld -> fileProto.declarationIdList.map { UniqId(it) }
|
||||||
explicitlyExported -> fileProto.explicitlyExportedToCompilerList.map {
|
explicitlyExported -> fileProto.explicitlyExportedToCompilerList.map {
|
||||||
fileDeserializer.loadSymbolData(it).topLevelUniqId
|
fileDeserializer.loadSymbolData(it).run {
|
||||||
|
UniqId(topLevelUniqIdIndex)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else -> emptyList()
|
else -> emptyList()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
forceLoadedIds.forEach { moduleDeserializationState.addUniqID(it.uniqId().also { i -> assert(i.isPublic) }) }
|
forceLoadedIds.forEach { moduleDeserializationState.addUniqID(it.also { i -> assert(i.isPublic) }) }
|
||||||
|
|
||||||
return file
|
return file
|
||||||
}
|
}
|
||||||
@@ -464,9 +465,10 @@ abstract class KotlinIrLinker(
|
|||||||
|
|
||||||
private fun loadKnownBuiltinSymbols(): Long {
|
private fun loadKnownBuiltinSymbols(): Long {
|
||||||
var currentIndex = firstKnownBuiltinsIndex
|
var currentIndex = firstKnownBuiltinsIndex
|
||||||
|
val mask = 1L shl 63
|
||||||
val globalDeserializedSymbols = globalDeserializationState.deserializedSymbols
|
val globalDeserializedSymbols = globalDeserializationState.deserializedSymbols
|
||||||
builtIns.knownBuiltins.forEach {
|
builtIns.knownBuiltins.forEach {
|
||||||
globalDeserializedSymbols[UniqId(currentIndex, isLocal = false)] = it
|
globalDeserializedSymbols[UniqId(currentIndex or mask)] = it
|
||||||
assert(symbolTable.referenceSimpleFunction(it.descriptor) == it)
|
assert(symbolTable.referenceSimpleFunction(it.descriptor) == it)
|
||||||
currentIndex++
|
currentIndex++
|
||||||
}
|
}
|
||||||
@@ -519,7 +521,7 @@ abstract class KotlinIrLinker(
|
|||||||
|
|
||||||
val descriptorUniqId = topLevelDescriptor.getUniqId()
|
val descriptorUniqId = topLevelDescriptor.getUniqId()
|
||||||
?: error("Could not get descriptor uniq id for $topLevelDescriptor")
|
?: error("Could not get descriptor uniq id for $topLevelDescriptor")
|
||||||
val topLevelKey = UniqId(descriptorUniqId, isLocal = false)
|
val topLevelKey = UniqId(descriptorUniqId)
|
||||||
|
|
||||||
val moduleOfOrigin = topLevelDescriptor.module
|
val moduleOfOrigin = topLevelDescriptor.module
|
||||||
|
|
||||||
|
|||||||
+4
-1
@@ -28,8 +28,11 @@ interface KotlinMangler {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private const val PUBLIC_MANGLE_FLAG = 1L shl 63
|
||||||
|
|
||||||
abstract class KotlinManglerImpl : KotlinMangler {
|
abstract class KotlinManglerImpl : KotlinMangler {
|
||||||
override val String.hashMangle get() = this.cityHash64()
|
|
||||||
|
override val String.hashMangle get() = (this.cityHash64() % PUBLIC_MANGLE_FLAG) or PUBLIC_MANGLE_FLAG
|
||||||
|
|
||||||
private fun hashedMangleImpl(declaration: IrDeclaration): Long {
|
private fun hashedMangleImpl(declaration: IrDeclaration): Long {
|
||||||
return declaration.uniqSymbolName().hashMangle
|
return declaration.uniqSymbolName().hashMangle
|
||||||
|
|||||||
+4
-15
@@ -6,30 +6,19 @@
|
|||||||
package org.jetbrains.kotlin.backend.common.serialization
|
package org.jetbrains.kotlin.backend.common.serialization
|
||||||
|
|
||||||
import org.jetbrains.kotlin.descriptors.DeclarationDescriptor
|
import org.jetbrains.kotlin.descriptors.DeclarationDescriptor
|
||||||
import org.jetbrains.kotlin.descriptors.ModuleDescriptor
|
|
||||||
import org.jetbrains.kotlin.library.metadata.KlibMetadataProtoBuf
|
import org.jetbrains.kotlin.library.metadata.KlibMetadataProtoBuf
|
||||||
import org.jetbrains.kotlin.protobuf.GeneratedMessageLite
|
import org.jetbrains.kotlin.protobuf.GeneratedMessageLite
|
||||||
import org.jetbrains.kotlin.serialization.deserialization.descriptors.*
|
import org.jetbrains.kotlin.serialization.deserialization.descriptors.*
|
||||||
import org.jetbrains.kotlin.backend.common.serialization.proto.UniqId as ProtoUniqId
|
|
||||||
|
|
||||||
// This is an abstract uniqIdIndex any serialized IR declarations gets.
|
// This is an abstract uniqIdIndex any serialized IR declarations gets.
|
||||||
// It is either isLocal and then just gets and ordinary number within its module.
|
// It is either isLocal and then just gets and ordinary number within its module.
|
||||||
// Or is visible across modules and then gets a hash of mangled name as its index.
|
// Or is visible across modules and then gets a hash of mangled name as its index.
|
||||||
data class UniqId(
|
|
||||||
val index: Long,
|
inline class UniqId(val index: Long) {
|
||||||
val isLocal: Boolean
|
val isPublic: Boolean get() = (index and (1L shl 63)) != 0L
|
||||||
) {
|
val isLocal: Boolean get() = (index and (1L shl 63)) == 0L
|
||||||
val isPublic: Boolean get() = !isLocal
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fun protoUniqId(uniqId: UniqId): ProtoUniqId =
|
|
||||||
ProtoUniqId.newBuilder()
|
|
||||||
.setIndex(uniqId.index)
|
|
||||||
.setIsLocal(uniqId.isLocal)
|
|
||||||
.build()
|
|
||||||
|
|
||||||
fun ProtoUniqId.uniqId(): UniqId = UniqId(this.index, this.isLocal)
|
|
||||||
|
|
||||||
fun <T, M : GeneratedMessageLite.ExtendableMessage<M>> M.tryGetExtension(extension: GeneratedMessageLite.GeneratedExtension<M, T>) =
|
fun <T, M : GeneratedMessageLite.ExtendableMessage<M>> M.tryGetExtension(extension: GeneratedMessageLite.GeneratedExtension<M, T>) =
|
||||||
if (this.hasExtension(extension)) this.getExtension<T>(extension) else null
|
if (this.hasExtension(extension)) this.getExtension<T>(extension) else null
|
||||||
|
|
||||||
|
|||||||
+62
-94
@@ -184,37 +184,36 @@ public final class IrFile extends
|
|||||||
|
|
||||||
private int bitField0_;
|
private int bitField0_;
|
||||||
public static final int DECLARATION_ID_FIELD_NUMBER = 1;
|
public static final int DECLARATION_ID_FIELD_NUMBER = 1;
|
||||||
private java.util.List<org.jetbrains.kotlin.backend.common.serialization.proto.UniqId> declarationId_;
|
private java.util.List<java.lang.Long> declarationId_;
|
||||||
/**
|
/**
|
||||||
* <code>repeated .org.jetbrains.kotlin.backend.common.serialization.proto.UniqId declaration_id = 1;</code>
|
* <code>repeated int64 declaration_id = 1;</code>
|
||||||
|
*
|
||||||
|
* <pre>
|
||||||
|
* repeated UniqId declaration_id = 1;
|
||||||
|
* </pre>
|
||||||
*/
|
*/
|
||||||
public java.util.List<org.jetbrains.kotlin.backend.common.serialization.proto.UniqId> getDeclarationIdList() {
|
public java.util.List<java.lang.Long>
|
||||||
|
getDeclarationIdList() {
|
||||||
return declarationId_;
|
return declarationId_;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>repeated .org.jetbrains.kotlin.backend.common.serialization.proto.UniqId declaration_id = 1;</code>
|
* <code>repeated int64 declaration_id = 1;</code>
|
||||||
*/
|
*
|
||||||
public java.util.List<? extends org.jetbrains.kotlin.backend.common.serialization.proto.UniqIdOrBuilder>
|
* <pre>
|
||||||
getDeclarationIdOrBuilderList() {
|
* repeated UniqId declaration_id = 1;
|
||||||
return declarationId_;
|
* </pre>
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>repeated .org.jetbrains.kotlin.backend.common.serialization.proto.UniqId declaration_id = 1;</code>
|
|
||||||
*/
|
*/
|
||||||
public int getDeclarationIdCount() {
|
public int getDeclarationIdCount() {
|
||||||
return declarationId_.size();
|
return declarationId_.size();
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>repeated .org.jetbrains.kotlin.backend.common.serialization.proto.UniqId declaration_id = 1;</code>
|
* <code>repeated int64 declaration_id = 1;</code>
|
||||||
|
*
|
||||||
|
* <pre>
|
||||||
|
* repeated UniqId declaration_id = 1;
|
||||||
|
* </pre>
|
||||||
*/
|
*/
|
||||||
public org.jetbrains.kotlin.backend.common.serialization.proto.UniqId getDeclarationId(int index) {
|
public long getDeclarationId(int index) {
|
||||||
return declarationId_.get(index);
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>repeated .org.jetbrains.kotlin.backend.common.serialization.proto.UniqId declaration_id = 1;</code>
|
|
||||||
*/
|
|
||||||
public org.jetbrains.kotlin.backend.common.serialization.proto.UniqIdOrBuilder getDeclarationIdOrBuilder(
|
|
||||||
int index) {
|
|
||||||
return declarationId_.get(index);
|
return declarationId_.get(index);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -647,106 +646,80 @@ public final class IrFile extends
|
|||||||
}
|
}
|
||||||
private int bitField0_;
|
private int bitField0_;
|
||||||
|
|
||||||
private java.util.List<org.jetbrains.kotlin.backend.common.serialization.proto.UniqId> declarationId_ =
|
private java.util.List<java.lang.Long> declarationId_ = java.util.Collections.emptyList();
|
||||||
java.util.Collections.emptyList();
|
|
||||||
private void ensureDeclarationIdIsMutable() {
|
private void ensureDeclarationIdIsMutable() {
|
||||||
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
|
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
|
||||||
declarationId_ = new java.util.ArrayList<org.jetbrains.kotlin.backend.common.serialization.proto.UniqId>(declarationId_);
|
declarationId_ = new java.util.ArrayList<java.lang.Long>(declarationId_);
|
||||||
bitField0_ |= 0x00000001;
|
bitField0_ |= 0x00000001;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <code>repeated .org.jetbrains.kotlin.backend.common.serialization.proto.UniqId declaration_id = 1;</code>
|
* <code>repeated int64 declaration_id = 1;</code>
|
||||||
|
*
|
||||||
|
* <pre>
|
||||||
|
* repeated UniqId declaration_id = 1;
|
||||||
|
* </pre>
|
||||||
*/
|
*/
|
||||||
public java.util.List<org.jetbrains.kotlin.backend.common.serialization.proto.UniqId> getDeclarationIdList() {
|
public java.util.List<java.lang.Long>
|
||||||
|
getDeclarationIdList() {
|
||||||
return java.util.Collections.unmodifiableList(declarationId_);
|
return java.util.Collections.unmodifiableList(declarationId_);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>repeated .org.jetbrains.kotlin.backend.common.serialization.proto.UniqId declaration_id = 1;</code>
|
* <code>repeated int64 declaration_id = 1;</code>
|
||||||
|
*
|
||||||
|
* <pre>
|
||||||
|
* repeated UniqId declaration_id = 1;
|
||||||
|
* </pre>
|
||||||
*/
|
*/
|
||||||
public int getDeclarationIdCount() {
|
public int getDeclarationIdCount() {
|
||||||
return declarationId_.size();
|
return declarationId_.size();
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>repeated .org.jetbrains.kotlin.backend.common.serialization.proto.UniqId declaration_id = 1;</code>
|
* <code>repeated int64 declaration_id = 1;</code>
|
||||||
|
*
|
||||||
|
* <pre>
|
||||||
|
* repeated UniqId declaration_id = 1;
|
||||||
|
* </pre>
|
||||||
*/
|
*/
|
||||||
public org.jetbrains.kotlin.backend.common.serialization.proto.UniqId getDeclarationId(int index) {
|
public long getDeclarationId(int index) {
|
||||||
return declarationId_.get(index);
|
return declarationId_.get(index);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>repeated .org.jetbrains.kotlin.backend.common.serialization.proto.UniqId declaration_id = 1;</code>
|
* <code>repeated int64 declaration_id = 1;</code>
|
||||||
|
*
|
||||||
|
* <pre>
|
||||||
|
* repeated UniqId declaration_id = 1;
|
||||||
|
* </pre>
|
||||||
*/
|
*/
|
||||||
public Builder setDeclarationId(
|
public Builder setDeclarationId(
|
||||||
int index, org.jetbrains.kotlin.backend.common.serialization.proto.UniqId value) {
|
int index, long value) {
|
||||||
if (value == null) {
|
|
||||||
throw new NullPointerException();
|
|
||||||
}
|
|
||||||
ensureDeclarationIdIsMutable();
|
ensureDeclarationIdIsMutable();
|
||||||
declarationId_.set(index, value);
|
declarationId_.set(index, value);
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>repeated .org.jetbrains.kotlin.backend.common.serialization.proto.UniqId declaration_id = 1;</code>
|
* <code>repeated int64 declaration_id = 1;</code>
|
||||||
|
*
|
||||||
|
* <pre>
|
||||||
|
* repeated UniqId declaration_id = 1;
|
||||||
|
* </pre>
|
||||||
*/
|
*/
|
||||||
public Builder setDeclarationId(
|
public Builder addDeclarationId(long value) {
|
||||||
int index, org.jetbrains.kotlin.backend.common.serialization.proto.UniqId.Builder builderForValue) {
|
|
||||||
ensureDeclarationIdIsMutable();
|
|
||||||
declarationId_.set(index, builderForValue.build());
|
|
||||||
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>repeated .org.jetbrains.kotlin.backend.common.serialization.proto.UniqId declaration_id = 1;</code>
|
|
||||||
*/
|
|
||||||
public Builder addDeclarationId(org.jetbrains.kotlin.backend.common.serialization.proto.UniqId value) {
|
|
||||||
if (value == null) {
|
|
||||||
throw new NullPointerException();
|
|
||||||
}
|
|
||||||
ensureDeclarationIdIsMutable();
|
ensureDeclarationIdIsMutable();
|
||||||
declarationId_.add(value);
|
declarationId_.add(value);
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>repeated .org.jetbrains.kotlin.backend.common.serialization.proto.UniqId declaration_id = 1;</code>
|
* <code>repeated int64 declaration_id = 1;</code>
|
||||||
*/
|
*
|
||||||
public Builder addDeclarationId(
|
* <pre>
|
||||||
int index, org.jetbrains.kotlin.backend.common.serialization.proto.UniqId value) {
|
* repeated UniqId declaration_id = 1;
|
||||||
if (value == null) {
|
* </pre>
|
||||||
throw new NullPointerException();
|
|
||||||
}
|
|
||||||
ensureDeclarationIdIsMutable();
|
|
||||||
declarationId_.add(index, value);
|
|
||||||
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>repeated .org.jetbrains.kotlin.backend.common.serialization.proto.UniqId declaration_id = 1;</code>
|
|
||||||
*/
|
|
||||||
public Builder addDeclarationId(
|
|
||||||
org.jetbrains.kotlin.backend.common.serialization.proto.UniqId.Builder builderForValue) {
|
|
||||||
ensureDeclarationIdIsMutable();
|
|
||||||
declarationId_.add(builderForValue.build());
|
|
||||||
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>repeated .org.jetbrains.kotlin.backend.common.serialization.proto.UniqId declaration_id = 1;</code>
|
|
||||||
*/
|
|
||||||
public Builder addDeclarationId(
|
|
||||||
int index, org.jetbrains.kotlin.backend.common.serialization.proto.UniqId.Builder builderForValue) {
|
|
||||||
ensureDeclarationIdIsMutable();
|
|
||||||
declarationId_.add(index, builderForValue.build());
|
|
||||||
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>repeated .org.jetbrains.kotlin.backend.common.serialization.proto.UniqId declaration_id = 1;</code>
|
|
||||||
*/
|
*/
|
||||||
public Builder addAllDeclarationId(
|
public Builder addAllDeclarationId(
|
||||||
java.lang.Iterable<? extends org.jetbrains.kotlin.backend.common.serialization.proto.UniqId> values) {
|
java.lang.Iterable<? extends java.lang.Long> values) {
|
||||||
ensureDeclarationIdIsMutable();
|
ensureDeclarationIdIsMutable();
|
||||||
org.jetbrains.kotlin.protobuf.AbstractMessageLite.Builder.addAll(
|
org.jetbrains.kotlin.protobuf.AbstractMessageLite.Builder.addAll(
|
||||||
values, declarationId_);
|
values, declarationId_);
|
||||||
@@ -754,7 +727,11 @@ public final class IrFile extends
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>repeated .org.jetbrains.kotlin.backend.common.serialization.proto.UniqId declaration_id = 1;</code>
|
* <code>repeated int64 declaration_id = 1;</code>
|
||||||
|
*
|
||||||
|
* <pre>
|
||||||
|
* repeated UniqId declaration_id = 1;
|
||||||
|
* </pre>
|
||||||
*/
|
*/
|
||||||
public Builder clearDeclarationId() {
|
public Builder clearDeclarationId() {
|
||||||
declarationId_ = java.util.Collections.emptyList();
|
declarationId_ = java.util.Collections.emptyList();
|
||||||
@@ -762,15 +739,6 @@ public final class IrFile extends
|
|||||||
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
/**
|
|
||||||
* <code>repeated .org.jetbrains.kotlin.backend.common.serialization.proto.UniqId declaration_id = 1;</code>
|
|
||||||
*/
|
|
||||||
public Builder removeDeclarationId(int index) {
|
|
||||||
ensureDeclarationIdIsMutable();
|
|
||||||
declarationId_.remove(index);
|
|
||||||
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
private org.jetbrains.kotlin.backend.common.serialization.proto.FileEntry fileEntry_ = org.jetbrains.kotlin.backend.common.serialization.proto.FileEntry.getDefaultInstance();
|
private org.jetbrains.kotlin.backend.common.serialization.proto.FileEntry fileEntry_ = org.jetbrains.kotlin.backend.common.serialization.proto.FileEntry.getDefaultInstance();
|
||||||
/**
|
/**
|
||||||
|
|||||||
+19
-8
@@ -8,18 +8,29 @@ public interface IrFileOrBuilder extends
|
|||||||
org.jetbrains.kotlin.protobuf.MessageLiteOrBuilder {
|
org.jetbrains.kotlin.protobuf.MessageLiteOrBuilder {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <code>repeated .org.jetbrains.kotlin.backend.common.serialization.proto.UniqId declaration_id = 1;</code>
|
* <code>repeated int64 declaration_id = 1;</code>
|
||||||
|
*
|
||||||
|
* <pre>
|
||||||
|
* repeated UniqId declaration_id = 1;
|
||||||
|
* </pre>
|
||||||
*/
|
*/
|
||||||
java.util.List<org.jetbrains.kotlin.backend.common.serialization.proto.UniqId>
|
java.util.List<java.lang.Long> getDeclarationIdList();
|
||||||
getDeclarationIdList();
|
|
||||||
/**
|
/**
|
||||||
* <code>repeated .org.jetbrains.kotlin.backend.common.serialization.proto.UniqId declaration_id = 1;</code>
|
* <code>repeated int64 declaration_id = 1;</code>
|
||||||
*/
|
*
|
||||||
org.jetbrains.kotlin.backend.common.serialization.proto.UniqId getDeclarationId(int index);
|
* <pre>
|
||||||
/**
|
* repeated UniqId declaration_id = 1;
|
||||||
* <code>repeated .org.jetbrains.kotlin.backend.common.serialization.proto.UniqId declaration_id = 1;</code>
|
* </pre>
|
||||||
*/
|
*/
|
||||||
int getDeclarationIdCount();
|
int getDeclarationIdCount();
|
||||||
|
/**
|
||||||
|
* <code>repeated int64 declaration_id = 1;</code>
|
||||||
|
*
|
||||||
|
* <pre>
|
||||||
|
* repeated UniqId declaration_id = 1;
|
||||||
|
* </pre>
|
||||||
|
*/
|
||||||
|
long getDeclarationId(int index);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <code>required .org.jetbrains.kotlin.backend.common.serialization.proto.FileEntry file_entry = 2;</code>
|
* <code>required .org.jetbrains.kotlin.backend.common.serialization.proto.FileEntry file_entry = 2;</code>
|
||||||
|
|||||||
+119
-215
@@ -65,33 +65,17 @@ public final class IrSymbolData extends
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 18: {
|
|
||||||
org.jetbrains.kotlin.backend.common.serialization.proto.UniqId.Builder subBuilder = null;
|
|
||||||
if (((bitField0_ & 0x00000002) == 0x00000002)) {
|
|
||||||
subBuilder = uniqId_.toBuilder();
|
|
||||||
}
|
|
||||||
uniqId_ = input.readMessage(org.jetbrains.kotlin.backend.common.serialization.proto.UniqId.PARSER, extensionRegistry);
|
|
||||||
if (subBuilder != null) {
|
|
||||||
subBuilder.mergeFrom(uniqId_);
|
|
||||||
uniqId_ = subBuilder.buildPartial();
|
|
||||||
}
|
|
||||||
bitField0_ |= 0x00000002;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case 26: {
|
|
||||||
org.jetbrains.kotlin.backend.common.serialization.proto.UniqId.Builder subBuilder = null;
|
|
||||||
if (((bitField0_ & 0x00000004) == 0x00000004)) {
|
|
||||||
subBuilder = topLevelUniqId_.toBuilder();
|
|
||||||
}
|
|
||||||
topLevelUniqId_ = input.readMessage(org.jetbrains.kotlin.backend.common.serialization.proto.UniqId.PARSER, extensionRegistry);
|
|
||||||
if (subBuilder != null) {
|
|
||||||
subBuilder.mergeFrom(topLevelUniqId_);
|
|
||||||
topLevelUniqId_ = subBuilder.buildPartial();
|
|
||||||
}
|
|
||||||
bitField0_ |= 0x00000004;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case 32: {
|
case 32: {
|
||||||
|
bitField0_ |= 0x00000002;
|
||||||
|
uniqIdIndex_ = input.readInt64();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case 40: {
|
||||||
|
bitField0_ |= 0x00000004;
|
||||||
|
topLevelUniqIdIndex_ = input.readInt64();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case 48: {
|
||||||
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
|
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
|
||||||
fqName_ = new java.util.ArrayList<java.lang.Integer>();
|
fqName_ = new java.util.ArrayList<java.lang.Integer>();
|
||||||
mutable_bitField0_ |= 0x00000008;
|
mutable_bitField0_ |= 0x00000008;
|
||||||
@@ -99,7 +83,7 @@ public final class IrSymbolData extends
|
|||||||
fqName_.add(input.readInt32());
|
fqName_.add(input.readInt32());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 34: {
|
case 50: {
|
||||||
int length = input.readRawVarint32();
|
int length = input.readRawVarint32();
|
||||||
int limit = input.pushLimit(length);
|
int limit = input.pushLimit(length);
|
||||||
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008) && input.getBytesUntilLimit() > 0) {
|
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008) && input.getBytesUntilLimit() > 0) {
|
||||||
@@ -112,7 +96,7 @@ public final class IrSymbolData extends
|
|||||||
input.popLimit(limit);
|
input.popLimit(limit);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 42: {
|
case 58: {
|
||||||
org.jetbrains.kotlin.backend.common.serialization.proto.DescriptorReference.Builder subBuilder = null;
|
org.jetbrains.kotlin.backend.common.serialization.proto.DescriptorReference.Builder subBuilder = null;
|
||||||
if (((bitField0_ & 0x00000008) == 0x00000008)) {
|
if (((bitField0_ & 0x00000008) == 0x00000008)) {
|
||||||
subBuilder = descriptorReference_.toBuilder();
|
subBuilder = descriptorReference_.toBuilder();
|
||||||
@@ -177,76 +161,76 @@ public final class IrSymbolData extends
|
|||||||
return kind_;
|
return kind_;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static final int UNIQ_ID_FIELD_NUMBER = 2;
|
public static final int UNIQ_ID_INDEX_FIELD_NUMBER = 4;
|
||||||
private org.jetbrains.kotlin.backend.common.serialization.proto.UniqId uniqId_;
|
private long uniqIdIndex_;
|
||||||
/**
|
/**
|
||||||
* <code>required .org.jetbrains.kotlin.backend.common.serialization.proto.UniqId uniq_id = 2;</code>
|
* <code>required int64 uniq_id_index = 4;</code>
|
||||||
*/
|
*/
|
||||||
public boolean hasUniqId() {
|
public boolean hasUniqIdIndex() {
|
||||||
return ((bitField0_ & 0x00000002) == 0x00000002);
|
return ((bitField0_ & 0x00000002) == 0x00000002);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>required .org.jetbrains.kotlin.backend.common.serialization.proto.UniqId uniq_id = 2;</code>
|
* <code>required int64 uniq_id_index = 4;</code>
|
||||||
*/
|
*/
|
||||||
public org.jetbrains.kotlin.backend.common.serialization.proto.UniqId getUniqId() {
|
public long getUniqIdIndex() {
|
||||||
return uniqId_;
|
return uniqIdIndex_;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static final int TOP_LEVEL_UNIQ_ID_FIELD_NUMBER = 3;
|
public static final int TOP_LEVEL_UNIQ_ID_INDEX_FIELD_NUMBER = 5;
|
||||||
private org.jetbrains.kotlin.backend.common.serialization.proto.UniqId topLevelUniqId_;
|
private long topLevelUniqIdIndex_;
|
||||||
/**
|
/**
|
||||||
* <code>required .org.jetbrains.kotlin.backend.common.serialization.proto.UniqId top_level_uniq_id = 3;</code>
|
* <code>required int64 top_level_uniq_id_index = 5;</code>
|
||||||
|
*
|
||||||
|
* <pre>
|
||||||
|
* required bool uniq_id_locality = 5;
|
||||||
|
* </pre>
|
||||||
*/
|
*/
|
||||||
public boolean hasTopLevelUniqId() {
|
public boolean hasTopLevelUniqIdIndex() {
|
||||||
return ((bitField0_ & 0x00000004) == 0x00000004);
|
return ((bitField0_ & 0x00000004) == 0x00000004);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>required .org.jetbrains.kotlin.backend.common.serialization.proto.UniqId top_level_uniq_id = 3;</code>
|
* <code>required int64 top_level_uniq_id_index = 5;</code>
|
||||||
|
*
|
||||||
|
* <pre>
|
||||||
|
* required bool uniq_id_locality = 5;
|
||||||
|
* </pre>
|
||||||
*/
|
*/
|
||||||
public org.jetbrains.kotlin.backend.common.serialization.proto.UniqId getTopLevelUniqId() {
|
public long getTopLevelUniqIdIndex() {
|
||||||
return topLevelUniqId_;
|
return topLevelUniqIdIndex_;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static final int FQ_NAME_FIELD_NUMBER = 4;
|
public static final int FQ_NAME_FIELD_NUMBER = 6;
|
||||||
private java.util.List<java.lang.Integer> fqName_;
|
private java.util.List<java.lang.Integer> fqName_;
|
||||||
/**
|
/**
|
||||||
* <code>repeated int32 fq_name = 4;</code>
|
* <code>repeated int32 fq_name = 6;</code>
|
||||||
*/
|
*/
|
||||||
public java.util.List<java.lang.Integer>
|
public java.util.List<java.lang.Integer>
|
||||||
getFqNameList() {
|
getFqNameList() {
|
||||||
return fqName_;
|
return fqName_;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>repeated int32 fq_name = 4;</code>
|
* <code>repeated int32 fq_name = 6;</code>
|
||||||
*/
|
*/
|
||||||
public int getFqNameCount() {
|
public int getFqNameCount() {
|
||||||
return fqName_.size();
|
return fqName_.size();
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>repeated int32 fq_name = 4;</code>
|
* <code>repeated int32 fq_name = 6;</code>
|
||||||
*/
|
*/
|
||||||
public int getFqName(int index) {
|
public int getFqName(int index) {
|
||||||
return fqName_.get(index);
|
return fqName_.get(index);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static final int DESCRIPTOR_REFERENCE_FIELD_NUMBER = 5;
|
public static final int DESCRIPTOR_REFERENCE_FIELD_NUMBER = 7;
|
||||||
private org.jetbrains.kotlin.backend.common.serialization.proto.DescriptorReference descriptorReference_;
|
private org.jetbrains.kotlin.backend.common.serialization.proto.DescriptorReference descriptorReference_;
|
||||||
/**
|
/**
|
||||||
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.DescriptorReference descriptor_reference = 5;</code>
|
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.DescriptorReference descriptor_reference = 7;</code>
|
||||||
*
|
|
||||||
* <pre>
|
|
||||||
* optional FqName fqname = 4;
|
|
||||||
* </pre>
|
|
||||||
*/
|
*/
|
||||||
public boolean hasDescriptorReference() {
|
public boolean hasDescriptorReference() {
|
||||||
return ((bitField0_ & 0x00000008) == 0x00000008);
|
return ((bitField0_ & 0x00000008) == 0x00000008);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.DescriptorReference descriptor_reference = 5;</code>
|
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.DescriptorReference descriptor_reference = 7;</code>
|
||||||
*
|
|
||||||
* <pre>
|
|
||||||
* optional FqName fqname = 4;
|
|
||||||
* </pre>
|
|
||||||
*/
|
*/
|
||||||
public org.jetbrains.kotlin.backend.common.serialization.proto.DescriptorReference getDescriptorReference() {
|
public org.jetbrains.kotlin.backend.common.serialization.proto.DescriptorReference getDescriptorReference() {
|
||||||
return descriptorReference_;
|
return descriptorReference_;
|
||||||
@@ -254,8 +238,8 @@ public final class IrSymbolData extends
|
|||||||
|
|
||||||
private void initFields() {
|
private void initFields() {
|
||||||
kind_ = org.jetbrains.kotlin.backend.common.serialization.proto.IrSymbolKind.FUNCTION_SYMBOL;
|
kind_ = org.jetbrains.kotlin.backend.common.serialization.proto.IrSymbolKind.FUNCTION_SYMBOL;
|
||||||
uniqId_ = org.jetbrains.kotlin.backend.common.serialization.proto.UniqId.getDefaultInstance();
|
uniqIdIndex_ = 0L;
|
||||||
topLevelUniqId_ = org.jetbrains.kotlin.backend.common.serialization.proto.UniqId.getDefaultInstance();
|
topLevelUniqIdIndex_ = 0L;
|
||||||
fqName_ = java.util.Collections.emptyList();
|
fqName_ = java.util.Collections.emptyList();
|
||||||
descriptorReference_ = org.jetbrains.kotlin.backend.common.serialization.proto.DescriptorReference.getDefaultInstance();
|
descriptorReference_ = org.jetbrains.kotlin.backend.common.serialization.proto.DescriptorReference.getDefaultInstance();
|
||||||
}
|
}
|
||||||
@@ -269,19 +253,11 @@ public final class IrSymbolData extends
|
|||||||
memoizedIsInitialized = 0;
|
memoizedIsInitialized = 0;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!hasUniqId()) {
|
if (!hasUniqIdIndex()) {
|
||||||
memoizedIsInitialized = 0;
|
memoizedIsInitialized = 0;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!hasTopLevelUniqId()) {
|
if (!hasTopLevelUniqIdIndex()) {
|
||||||
memoizedIsInitialized = 0;
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
if (!getUniqId().isInitialized()) {
|
|
||||||
memoizedIsInitialized = 0;
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
if (!getTopLevelUniqId().isInitialized()) {
|
|
||||||
memoizedIsInitialized = 0;
|
memoizedIsInitialized = 0;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -302,16 +278,16 @@ public final class IrSymbolData extends
|
|||||||
output.writeEnum(1, kind_.getNumber());
|
output.writeEnum(1, kind_.getNumber());
|
||||||
}
|
}
|
||||||
if (((bitField0_ & 0x00000002) == 0x00000002)) {
|
if (((bitField0_ & 0x00000002) == 0x00000002)) {
|
||||||
output.writeMessage(2, uniqId_);
|
output.writeInt64(4, uniqIdIndex_);
|
||||||
}
|
}
|
||||||
if (((bitField0_ & 0x00000004) == 0x00000004)) {
|
if (((bitField0_ & 0x00000004) == 0x00000004)) {
|
||||||
output.writeMessage(3, topLevelUniqId_);
|
output.writeInt64(5, topLevelUniqIdIndex_);
|
||||||
}
|
}
|
||||||
for (int i = 0; i < fqName_.size(); i++) {
|
for (int i = 0; i < fqName_.size(); i++) {
|
||||||
output.writeInt32(4, fqName_.get(i));
|
output.writeInt32(6, fqName_.get(i));
|
||||||
}
|
}
|
||||||
if (((bitField0_ & 0x00000008) == 0x00000008)) {
|
if (((bitField0_ & 0x00000008) == 0x00000008)) {
|
||||||
output.writeMessage(5, descriptorReference_);
|
output.writeMessage(7, descriptorReference_);
|
||||||
}
|
}
|
||||||
output.writeRawBytes(unknownFields);
|
output.writeRawBytes(unknownFields);
|
||||||
}
|
}
|
||||||
@@ -328,11 +304,11 @@ public final class IrSymbolData extends
|
|||||||
}
|
}
|
||||||
if (((bitField0_ & 0x00000002) == 0x00000002)) {
|
if (((bitField0_ & 0x00000002) == 0x00000002)) {
|
||||||
size += org.jetbrains.kotlin.protobuf.CodedOutputStream
|
size += org.jetbrains.kotlin.protobuf.CodedOutputStream
|
||||||
.computeMessageSize(2, uniqId_);
|
.computeInt64Size(4, uniqIdIndex_);
|
||||||
}
|
}
|
||||||
if (((bitField0_ & 0x00000004) == 0x00000004)) {
|
if (((bitField0_ & 0x00000004) == 0x00000004)) {
|
||||||
size += org.jetbrains.kotlin.protobuf.CodedOutputStream
|
size += org.jetbrains.kotlin.protobuf.CodedOutputStream
|
||||||
.computeMessageSize(3, topLevelUniqId_);
|
.computeInt64Size(5, topLevelUniqIdIndex_);
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
int dataSize = 0;
|
int dataSize = 0;
|
||||||
@@ -345,7 +321,7 @@ public final class IrSymbolData extends
|
|||||||
}
|
}
|
||||||
if (((bitField0_ & 0x00000008) == 0x00000008)) {
|
if (((bitField0_ & 0x00000008) == 0x00000008)) {
|
||||||
size += org.jetbrains.kotlin.protobuf.CodedOutputStream
|
size += org.jetbrains.kotlin.protobuf.CodedOutputStream
|
||||||
.computeMessageSize(5, descriptorReference_);
|
.computeMessageSize(7, descriptorReference_);
|
||||||
}
|
}
|
||||||
size += unknownFields.size();
|
size += unknownFields.size();
|
||||||
memoizedSerializedSize = size;
|
memoizedSerializedSize = size;
|
||||||
@@ -443,9 +419,9 @@ public final class IrSymbolData extends
|
|||||||
super.clear();
|
super.clear();
|
||||||
kind_ = org.jetbrains.kotlin.backend.common.serialization.proto.IrSymbolKind.FUNCTION_SYMBOL;
|
kind_ = org.jetbrains.kotlin.backend.common.serialization.proto.IrSymbolKind.FUNCTION_SYMBOL;
|
||||||
bitField0_ = (bitField0_ & ~0x00000001);
|
bitField0_ = (bitField0_ & ~0x00000001);
|
||||||
uniqId_ = org.jetbrains.kotlin.backend.common.serialization.proto.UniqId.getDefaultInstance();
|
uniqIdIndex_ = 0L;
|
||||||
bitField0_ = (bitField0_ & ~0x00000002);
|
bitField0_ = (bitField0_ & ~0x00000002);
|
||||||
topLevelUniqId_ = org.jetbrains.kotlin.backend.common.serialization.proto.UniqId.getDefaultInstance();
|
topLevelUniqIdIndex_ = 0L;
|
||||||
bitField0_ = (bitField0_ & ~0x00000004);
|
bitField0_ = (bitField0_ & ~0x00000004);
|
||||||
fqName_ = java.util.Collections.emptyList();
|
fqName_ = java.util.Collections.emptyList();
|
||||||
bitField0_ = (bitField0_ & ~0x00000008);
|
bitField0_ = (bitField0_ & ~0x00000008);
|
||||||
@@ -481,11 +457,11 @@ public final class IrSymbolData extends
|
|||||||
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
|
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
|
||||||
to_bitField0_ |= 0x00000002;
|
to_bitField0_ |= 0x00000002;
|
||||||
}
|
}
|
||||||
result.uniqId_ = uniqId_;
|
result.uniqIdIndex_ = uniqIdIndex_;
|
||||||
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
|
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
|
||||||
to_bitField0_ |= 0x00000004;
|
to_bitField0_ |= 0x00000004;
|
||||||
}
|
}
|
||||||
result.topLevelUniqId_ = topLevelUniqId_;
|
result.topLevelUniqIdIndex_ = topLevelUniqIdIndex_;
|
||||||
if (((bitField0_ & 0x00000008) == 0x00000008)) {
|
if (((bitField0_ & 0x00000008) == 0x00000008)) {
|
||||||
fqName_ = java.util.Collections.unmodifiableList(fqName_);
|
fqName_ = java.util.Collections.unmodifiableList(fqName_);
|
||||||
bitField0_ = (bitField0_ & ~0x00000008);
|
bitField0_ = (bitField0_ & ~0x00000008);
|
||||||
@@ -504,11 +480,11 @@ public final class IrSymbolData extends
|
|||||||
if (other.hasKind()) {
|
if (other.hasKind()) {
|
||||||
setKind(other.getKind());
|
setKind(other.getKind());
|
||||||
}
|
}
|
||||||
if (other.hasUniqId()) {
|
if (other.hasUniqIdIndex()) {
|
||||||
mergeUniqId(other.getUniqId());
|
setUniqIdIndex(other.getUniqIdIndex());
|
||||||
}
|
}
|
||||||
if (other.hasTopLevelUniqId()) {
|
if (other.hasTopLevelUniqIdIndex()) {
|
||||||
mergeTopLevelUniqId(other.getTopLevelUniqId());
|
setTopLevelUniqIdIndex(other.getTopLevelUniqIdIndex());
|
||||||
}
|
}
|
||||||
if (!other.fqName_.isEmpty()) {
|
if (!other.fqName_.isEmpty()) {
|
||||||
if (fqName_.isEmpty()) {
|
if (fqName_.isEmpty()) {
|
||||||
@@ -533,19 +509,11 @@ public final class IrSymbolData extends
|
|||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!hasUniqId()) {
|
if (!hasUniqIdIndex()) {
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!hasTopLevelUniqId()) {
|
if (!hasTopLevelUniqIdIndex()) {
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
if (!getUniqId().isInitialized()) {
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
if (!getTopLevelUniqId().isInitialized()) {
|
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -612,123 +580,83 @@ public final class IrSymbolData extends
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
private org.jetbrains.kotlin.backend.common.serialization.proto.UniqId uniqId_ = org.jetbrains.kotlin.backend.common.serialization.proto.UniqId.getDefaultInstance();
|
private long uniqIdIndex_ ;
|
||||||
/**
|
/**
|
||||||
* <code>required .org.jetbrains.kotlin.backend.common.serialization.proto.UniqId uniq_id = 2;</code>
|
* <code>required int64 uniq_id_index = 4;</code>
|
||||||
*/
|
*/
|
||||||
public boolean hasUniqId() {
|
public boolean hasUniqIdIndex() {
|
||||||
return ((bitField0_ & 0x00000002) == 0x00000002);
|
return ((bitField0_ & 0x00000002) == 0x00000002);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>required .org.jetbrains.kotlin.backend.common.serialization.proto.UniqId uniq_id = 2;</code>
|
* <code>required int64 uniq_id_index = 4;</code>
|
||||||
*/
|
*/
|
||||||
public org.jetbrains.kotlin.backend.common.serialization.proto.UniqId getUniqId() {
|
public long getUniqIdIndex() {
|
||||||
return uniqId_;
|
return uniqIdIndex_;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>required .org.jetbrains.kotlin.backend.common.serialization.proto.UniqId uniq_id = 2;</code>
|
* <code>required int64 uniq_id_index = 4;</code>
|
||||||
*/
|
*/
|
||||||
public Builder setUniqId(org.jetbrains.kotlin.backend.common.serialization.proto.UniqId value) {
|
public Builder setUniqIdIndex(long value) {
|
||||||
if (value == null) {
|
|
||||||
throw new NullPointerException();
|
|
||||||
}
|
|
||||||
uniqId_ = value;
|
|
||||||
|
|
||||||
bitField0_ |= 0x00000002;
|
bitField0_ |= 0x00000002;
|
||||||
|
uniqIdIndex_ = value;
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>required .org.jetbrains.kotlin.backend.common.serialization.proto.UniqId uniq_id = 2;</code>
|
* <code>required int64 uniq_id_index = 4;</code>
|
||||||
*/
|
*/
|
||||||
public Builder setUniqId(
|
public Builder clearUniqIdIndex() {
|
||||||
org.jetbrains.kotlin.backend.common.serialization.proto.UniqId.Builder builderForValue) {
|
|
||||||
uniqId_ = builderForValue.build();
|
|
||||||
|
|
||||||
bitField0_ |= 0x00000002;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>required .org.jetbrains.kotlin.backend.common.serialization.proto.UniqId uniq_id = 2;</code>
|
|
||||||
*/
|
|
||||||
public Builder mergeUniqId(org.jetbrains.kotlin.backend.common.serialization.proto.UniqId value) {
|
|
||||||
if (((bitField0_ & 0x00000002) == 0x00000002) &&
|
|
||||||
uniqId_ != org.jetbrains.kotlin.backend.common.serialization.proto.UniqId.getDefaultInstance()) {
|
|
||||||
uniqId_ =
|
|
||||||
org.jetbrains.kotlin.backend.common.serialization.proto.UniqId.newBuilder(uniqId_).mergeFrom(value).buildPartial();
|
|
||||||
} else {
|
|
||||||
uniqId_ = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
bitField0_ |= 0x00000002;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>required .org.jetbrains.kotlin.backend.common.serialization.proto.UniqId uniq_id = 2;</code>
|
|
||||||
*/
|
|
||||||
public Builder clearUniqId() {
|
|
||||||
uniqId_ = org.jetbrains.kotlin.backend.common.serialization.proto.UniqId.getDefaultInstance();
|
|
||||||
|
|
||||||
bitField0_ = (bitField0_ & ~0x00000002);
|
bitField0_ = (bitField0_ & ~0x00000002);
|
||||||
|
uniqIdIndex_ = 0L;
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
private org.jetbrains.kotlin.backend.common.serialization.proto.UniqId topLevelUniqId_ = org.jetbrains.kotlin.backend.common.serialization.proto.UniqId.getDefaultInstance();
|
private long topLevelUniqIdIndex_ ;
|
||||||
/**
|
/**
|
||||||
* <code>required .org.jetbrains.kotlin.backend.common.serialization.proto.UniqId top_level_uniq_id = 3;</code>
|
* <code>required int64 top_level_uniq_id_index = 5;</code>
|
||||||
|
*
|
||||||
|
* <pre>
|
||||||
|
* required bool uniq_id_locality = 5;
|
||||||
|
* </pre>
|
||||||
*/
|
*/
|
||||||
public boolean hasTopLevelUniqId() {
|
public boolean hasTopLevelUniqIdIndex() {
|
||||||
return ((bitField0_ & 0x00000004) == 0x00000004);
|
return ((bitField0_ & 0x00000004) == 0x00000004);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>required .org.jetbrains.kotlin.backend.common.serialization.proto.UniqId top_level_uniq_id = 3;</code>
|
* <code>required int64 top_level_uniq_id_index = 5;</code>
|
||||||
|
*
|
||||||
|
* <pre>
|
||||||
|
* required bool uniq_id_locality = 5;
|
||||||
|
* </pre>
|
||||||
*/
|
*/
|
||||||
public org.jetbrains.kotlin.backend.common.serialization.proto.UniqId getTopLevelUniqId() {
|
public long getTopLevelUniqIdIndex() {
|
||||||
return topLevelUniqId_;
|
return topLevelUniqIdIndex_;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>required .org.jetbrains.kotlin.backend.common.serialization.proto.UniqId top_level_uniq_id = 3;</code>
|
* <code>required int64 top_level_uniq_id_index = 5;</code>
|
||||||
|
*
|
||||||
|
* <pre>
|
||||||
|
* required bool uniq_id_locality = 5;
|
||||||
|
* </pre>
|
||||||
*/
|
*/
|
||||||
public Builder setTopLevelUniqId(org.jetbrains.kotlin.backend.common.serialization.proto.UniqId value) {
|
public Builder setTopLevelUniqIdIndex(long value) {
|
||||||
if (value == null) {
|
|
||||||
throw new NullPointerException();
|
|
||||||
}
|
|
||||||
topLevelUniqId_ = value;
|
|
||||||
|
|
||||||
bitField0_ |= 0x00000004;
|
bitField0_ |= 0x00000004;
|
||||||
|
topLevelUniqIdIndex_ = value;
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>required .org.jetbrains.kotlin.backend.common.serialization.proto.UniqId top_level_uniq_id = 3;</code>
|
* <code>required int64 top_level_uniq_id_index = 5;</code>
|
||||||
|
*
|
||||||
|
* <pre>
|
||||||
|
* required bool uniq_id_locality = 5;
|
||||||
|
* </pre>
|
||||||
*/
|
*/
|
||||||
public Builder setTopLevelUniqId(
|
public Builder clearTopLevelUniqIdIndex() {
|
||||||
org.jetbrains.kotlin.backend.common.serialization.proto.UniqId.Builder builderForValue) {
|
|
||||||
topLevelUniqId_ = builderForValue.build();
|
|
||||||
|
|
||||||
bitField0_ |= 0x00000004;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>required .org.jetbrains.kotlin.backend.common.serialization.proto.UniqId top_level_uniq_id = 3;</code>
|
|
||||||
*/
|
|
||||||
public Builder mergeTopLevelUniqId(org.jetbrains.kotlin.backend.common.serialization.proto.UniqId value) {
|
|
||||||
if (((bitField0_ & 0x00000004) == 0x00000004) &&
|
|
||||||
topLevelUniqId_ != org.jetbrains.kotlin.backend.common.serialization.proto.UniqId.getDefaultInstance()) {
|
|
||||||
topLevelUniqId_ =
|
|
||||||
org.jetbrains.kotlin.backend.common.serialization.proto.UniqId.newBuilder(topLevelUniqId_).mergeFrom(value).buildPartial();
|
|
||||||
} else {
|
|
||||||
topLevelUniqId_ = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
bitField0_ |= 0x00000004;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>required .org.jetbrains.kotlin.backend.common.serialization.proto.UniqId top_level_uniq_id = 3;</code>
|
|
||||||
*/
|
|
||||||
public Builder clearTopLevelUniqId() {
|
|
||||||
topLevelUniqId_ = org.jetbrains.kotlin.backend.common.serialization.proto.UniqId.getDefaultInstance();
|
|
||||||
|
|
||||||
bitField0_ = (bitField0_ & ~0x00000004);
|
bitField0_ = (bitField0_ & ~0x00000004);
|
||||||
|
topLevelUniqIdIndex_ = 0L;
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -740,26 +668,26 @@ public final class IrSymbolData extends
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>repeated int32 fq_name = 4;</code>
|
* <code>repeated int32 fq_name = 6;</code>
|
||||||
*/
|
*/
|
||||||
public java.util.List<java.lang.Integer>
|
public java.util.List<java.lang.Integer>
|
||||||
getFqNameList() {
|
getFqNameList() {
|
||||||
return java.util.Collections.unmodifiableList(fqName_);
|
return java.util.Collections.unmodifiableList(fqName_);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>repeated int32 fq_name = 4;</code>
|
* <code>repeated int32 fq_name = 6;</code>
|
||||||
*/
|
*/
|
||||||
public int getFqNameCount() {
|
public int getFqNameCount() {
|
||||||
return fqName_.size();
|
return fqName_.size();
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>repeated int32 fq_name = 4;</code>
|
* <code>repeated int32 fq_name = 6;</code>
|
||||||
*/
|
*/
|
||||||
public int getFqName(int index) {
|
public int getFqName(int index) {
|
||||||
return fqName_.get(index);
|
return fqName_.get(index);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>repeated int32 fq_name = 4;</code>
|
* <code>repeated int32 fq_name = 6;</code>
|
||||||
*/
|
*/
|
||||||
public Builder setFqName(
|
public Builder setFqName(
|
||||||
int index, int value) {
|
int index, int value) {
|
||||||
@@ -769,7 +697,7 @@ public final class IrSymbolData extends
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>repeated int32 fq_name = 4;</code>
|
* <code>repeated int32 fq_name = 6;</code>
|
||||||
*/
|
*/
|
||||||
public Builder addFqName(int value) {
|
public Builder addFqName(int value) {
|
||||||
ensureFqNameIsMutable();
|
ensureFqNameIsMutable();
|
||||||
@@ -778,7 +706,7 @@ public final class IrSymbolData extends
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>repeated int32 fq_name = 4;</code>
|
* <code>repeated int32 fq_name = 6;</code>
|
||||||
*/
|
*/
|
||||||
public Builder addAllFqName(
|
public Builder addAllFqName(
|
||||||
java.lang.Iterable<? extends java.lang.Integer> values) {
|
java.lang.Iterable<? extends java.lang.Integer> values) {
|
||||||
@@ -789,7 +717,7 @@ public final class IrSymbolData extends
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>repeated int32 fq_name = 4;</code>
|
* <code>repeated int32 fq_name = 6;</code>
|
||||||
*/
|
*/
|
||||||
public Builder clearFqName() {
|
public Builder clearFqName() {
|
||||||
fqName_ = java.util.Collections.emptyList();
|
fqName_ = java.util.Collections.emptyList();
|
||||||
@@ -800,31 +728,19 @@ public final class IrSymbolData extends
|
|||||||
|
|
||||||
private org.jetbrains.kotlin.backend.common.serialization.proto.DescriptorReference descriptorReference_ = org.jetbrains.kotlin.backend.common.serialization.proto.DescriptorReference.getDefaultInstance();
|
private org.jetbrains.kotlin.backend.common.serialization.proto.DescriptorReference descriptorReference_ = org.jetbrains.kotlin.backend.common.serialization.proto.DescriptorReference.getDefaultInstance();
|
||||||
/**
|
/**
|
||||||
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.DescriptorReference descriptor_reference = 5;</code>
|
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.DescriptorReference descriptor_reference = 7;</code>
|
||||||
*
|
|
||||||
* <pre>
|
|
||||||
* optional FqName fqname = 4;
|
|
||||||
* </pre>
|
|
||||||
*/
|
*/
|
||||||
public boolean hasDescriptorReference() {
|
public boolean hasDescriptorReference() {
|
||||||
return ((bitField0_ & 0x00000010) == 0x00000010);
|
return ((bitField0_ & 0x00000010) == 0x00000010);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.DescriptorReference descriptor_reference = 5;</code>
|
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.DescriptorReference descriptor_reference = 7;</code>
|
||||||
*
|
|
||||||
* <pre>
|
|
||||||
* optional FqName fqname = 4;
|
|
||||||
* </pre>
|
|
||||||
*/
|
*/
|
||||||
public org.jetbrains.kotlin.backend.common.serialization.proto.DescriptorReference getDescriptorReference() {
|
public org.jetbrains.kotlin.backend.common.serialization.proto.DescriptorReference getDescriptorReference() {
|
||||||
return descriptorReference_;
|
return descriptorReference_;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.DescriptorReference descriptor_reference = 5;</code>
|
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.DescriptorReference descriptor_reference = 7;</code>
|
||||||
*
|
|
||||||
* <pre>
|
|
||||||
* optional FqName fqname = 4;
|
|
||||||
* </pre>
|
|
||||||
*/
|
*/
|
||||||
public Builder setDescriptorReference(org.jetbrains.kotlin.backend.common.serialization.proto.DescriptorReference value) {
|
public Builder setDescriptorReference(org.jetbrains.kotlin.backend.common.serialization.proto.DescriptorReference value) {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
@@ -836,11 +752,7 @@ public final class IrSymbolData extends
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.DescriptorReference descriptor_reference = 5;</code>
|
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.DescriptorReference descriptor_reference = 7;</code>
|
||||||
*
|
|
||||||
* <pre>
|
|
||||||
* optional FqName fqname = 4;
|
|
||||||
* </pre>
|
|
||||||
*/
|
*/
|
||||||
public Builder setDescriptorReference(
|
public Builder setDescriptorReference(
|
||||||
org.jetbrains.kotlin.backend.common.serialization.proto.DescriptorReference.Builder builderForValue) {
|
org.jetbrains.kotlin.backend.common.serialization.proto.DescriptorReference.Builder builderForValue) {
|
||||||
@@ -850,11 +762,7 @@ public final class IrSymbolData extends
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.DescriptorReference descriptor_reference = 5;</code>
|
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.DescriptorReference descriptor_reference = 7;</code>
|
||||||
*
|
|
||||||
* <pre>
|
|
||||||
* optional FqName fqname = 4;
|
|
||||||
* </pre>
|
|
||||||
*/
|
*/
|
||||||
public Builder mergeDescriptorReference(org.jetbrains.kotlin.backend.common.serialization.proto.DescriptorReference value) {
|
public Builder mergeDescriptorReference(org.jetbrains.kotlin.backend.common.serialization.proto.DescriptorReference value) {
|
||||||
if (((bitField0_ & 0x00000010) == 0x00000010) &&
|
if (((bitField0_ & 0x00000010) == 0x00000010) &&
|
||||||
@@ -869,11 +777,7 @@ public final class IrSymbolData extends
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.DescriptorReference descriptor_reference = 5;</code>
|
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.DescriptorReference descriptor_reference = 7;</code>
|
||||||
*
|
|
||||||
* <pre>
|
|
||||||
* optional FqName fqname = 4;
|
|
||||||
* </pre>
|
|
||||||
*/
|
*/
|
||||||
public Builder clearDescriptorReference() {
|
public Builder clearDescriptorReference() {
|
||||||
descriptorReference_ = org.jetbrains.kotlin.backend.common.serialization.proto.DescriptorReference.getDefaultInstance();
|
descriptorReference_ = org.jetbrains.kotlin.backend.common.serialization.proto.DescriptorReference.getDefaultInstance();
|
||||||
|
|||||||
+21
-21
@@ -17,50 +17,50 @@ public interface IrSymbolDataOrBuilder extends
|
|||||||
org.jetbrains.kotlin.backend.common.serialization.proto.IrSymbolKind getKind();
|
org.jetbrains.kotlin.backend.common.serialization.proto.IrSymbolKind getKind();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <code>required .org.jetbrains.kotlin.backend.common.serialization.proto.UniqId uniq_id = 2;</code>
|
* <code>required int64 uniq_id_index = 4;</code>
|
||||||
*/
|
*/
|
||||||
boolean hasUniqId();
|
boolean hasUniqIdIndex();
|
||||||
/**
|
/**
|
||||||
* <code>required .org.jetbrains.kotlin.backend.common.serialization.proto.UniqId uniq_id = 2;</code>
|
* <code>required int64 uniq_id_index = 4;</code>
|
||||||
*/
|
*/
|
||||||
org.jetbrains.kotlin.backend.common.serialization.proto.UniqId getUniqId();
|
long getUniqIdIndex();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <code>required .org.jetbrains.kotlin.backend.common.serialization.proto.UniqId top_level_uniq_id = 3;</code>
|
* <code>required int64 top_level_uniq_id_index = 5;</code>
|
||||||
|
*
|
||||||
|
* <pre>
|
||||||
|
* required bool uniq_id_locality = 5;
|
||||||
|
* </pre>
|
||||||
*/
|
*/
|
||||||
boolean hasTopLevelUniqId();
|
boolean hasTopLevelUniqIdIndex();
|
||||||
/**
|
/**
|
||||||
* <code>required .org.jetbrains.kotlin.backend.common.serialization.proto.UniqId top_level_uniq_id = 3;</code>
|
* <code>required int64 top_level_uniq_id_index = 5;</code>
|
||||||
|
*
|
||||||
|
* <pre>
|
||||||
|
* required bool uniq_id_locality = 5;
|
||||||
|
* </pre>
|
||||||
*/
|
*/
|
||||||
org.jetbrains.kotlin.backend.common.serialization.proto.UniqId getTopLevelUniqId();
|
long getTopLevelUniqIdIndex();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <code>repeated int32 fq_name = 4;</code>
|
* <code>repeated int32 fq_name = 6;</code>
|
||||||
*/
|
*/
|
||||||
java.util.List<java.lang.Integer> getFqNameList();
|
java.util.List<java.lang.Integer> getFqNameList();
|
||||||
/**
|
/**
|
||||||
* <code>repeated int32 fq_name = 4;</code>
|
* <code>repeated int32 fq_name = 6;</code>
|
||||||
*/
|
*/
|
||||||
int getFqNameCount();
|
int getFqNameCount();
|
||||||
/**
|
/**
|
||||||
* <code>repeated int32 fq_name = 4;</code>
|
* <code>repeated int32 fq_name = 6;</code>
|
||||||
*/
|
*/
|
||||||
int getFqName(int index);
|
int getFqName(int index);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.DescriptorReference descriptor_reference = 5;</code>
|
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.DescriptorReference descriptor_reference = 7;</code>
|
||||||
*
|
|
||||||
* <pre>
|
|
||||||
* optional FqName fqname = 4;
|
|
||||||
* </pre>
|
|
||||||
*/
|
*/
|
||||||
boolean hasDescriptorReference();
|
boolean hasDescriptorReference();
|
||||||
/**
|
/**
|
||||||
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.DescriptorReference descriptor_reference = 5;</code>
|
* <code>optional .org.jetbrains.kotlin.backend.common.serialization.proto.DescriptorReference descriptor_reference = 7;</code>
|
||||||
*
|
|
||||||
* <pre>
|
|
||||||
* optional FqName fqname = 4;
|
|
||||||
* </pre>
|
|
||||||
*/
|
*/
|
||||||
org.jetbrains.kotlin.backend.common.serialization.proto.DescriptorReference getDescriptorReference();
|
org.jetbrains.kotlin.backend.common.serialization.proto.DescriptorReference getDescriptorReference();
|
||||||
}
|
}
|
||||||
-428
@@ -1,428 +0,0 @@
|
|||||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
||||||
// source: compiler/ir/serialization.common/src/KotlinIr.proto
|
|
||||||
|
|
||||||
package org.jetbrains.kotlin.backend.common.serialization.proto;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Protobuf type {@code org.jetbrains.kotlin.backend.common.serialization.proto.UniqId}
|
|
||||||
*/
|
|
||||||
public final class UniqId extends
|
|
||||||
org.jetbrains.kotlin.protobuf.GeneratedMessageLite implements
|
|
||||||
// @@protoc_insertion_point(message_implements:org.jetbrains.kotlin.backend.common.serialization.proto.UniqId)
|
|
||||||
UniqIdOrBuilder {
|
|
||||||
// Use UniqId.newBuilder() to construct.
|
|
||||||
private UniqId(org.jetbrains.kotlin.protobuf.GeneratedMessageLite.Builder builder) {
|
|
||||||
super(builder);
|
|
||||||
this.unknownFields = builder.getUnknownFields();
|
|
||||||
}
|
|
||||||
private UniqId(boolean noInit) { this.unknownFields = org.jetbrains.kotlin.protobuf.ByteString.EMPTY;}
|
|
||||||
|
|
||||||
private static final UniqId defaultInstance;
|
|
||||||
public static UniqId getDefaultInstance() {
|
|
||||||
return defaultInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
public UniqId getDefaultInstanceForType() {
|
|
||||||
return defaultInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
private final org.jetbrains.kotlin.protobuf.ByteString unknownFields;
|
|
||||||
private UniqId(
|
|
||||||
org.jetbrains.kotlin.protobuf.CodedInputStream input,
|
|
||||||
org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
||||||
throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException {
|
|
||||||
initFields();
|
|
||||||
int mutable_bitField0_ = 0;
|
|
||||||
org.jetbrains.kotlin.protobuf.ByteString.Output unknownFieldsOutput =
|
|
||||||
org.jetbrains.kotlin.protobuf.ByteString.newOutput();
|
|
||||||
org.jetbrains.kotlin.protobuf.CodedOutputStream unknownFieldsCodedOutput =
|
|
||||||
org.jetbrains.kotlin.protobuf.CodedOutputStream.newInstance(
|
|
||||||
unknownFieldsOutput);
|
|
||||||
try {
|
|
||||||
boolean done = false;
|
|
||||||
while (!done) {
|
|
||||||
int tag = input.readTag();
|
|
||||||
switch (tag) {
|
|
||||||
case 0:
|
|
||||||
done = true;
|
|
||||||
break;
|
|
||||||
default: {
|
|
||||||
if (!parseUnknownField(input, unknownFieldsCodedOutput,
|
|
||||||
extensionRegistry, tag)) {
|
|
||||||
done = true;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case 8: {
|
|
||||||
bitField0_ |= 0x00000001;
|
|
||||||
index_ = input.readUInt64();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case 16: {
|
|
||||||
bitField0_ |= 0x00000002;
|
|
||||||
isLocal_ = input.readBool();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) {
|
|
||||||
throw e.setUnfinishedMessage(this);
|
|
||||||
} catch (java.io.IOException e) {
|
|
||||||
throw new org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException(
|
|
||||||
e.getMessage()).setUnfinishedMessage(this);
|
|
||||||
} finally {
|
|
||||||
try {
|
|
||||||
unknownFieldsCodedOutput.flush();
|
|
||||||
} catch (java.io.IOException e) {
|
|
||||||
// Should not happen
|
|
||||||
} finally {
|
|
||||||
unknownFields = unknownFieldsOutput.toByteString();
|
|
||||||
}
|
|
||||||
makeExtensionsImmutable();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
public static org.jetbrains.kotlin.protobuf.Parser<UniqId> PARSER =
|
|
||||||
new org.jetbrains.kotlin.protobuf.AbstractParser<UniqId>() {
|
|
||||||
public UniqId parsePartialFrom(
|
|
||||||
org.jetbrains.kotlin.protobuf.CodedInputStream input,
|
|
||||||
org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
||||||
throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException {
|
|
||||||
return new UniqId(input, extensionRegistry);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public org.jetbrains.kotlin.protobuf.Parser<UniqId> getParserForType() {
|
|
||||||
return PARSER;
|
|
||||||
}
|
|
||||||
|
|
||||||
private int bitField0_;
|
|
||||||
public static final int INDEX_FIELD_NUMBER = 1;
|
|
||||||
private long index_;
|
|
||||||
/**
|
|
||||||
* <code>required uint64 index = 1;</code>
|
|
||||||
*/
|
|
||||||
public boolean hasIndex() {
|
|
||||||
return ((bitField0_ & 0x00000001) == 0x00000001);
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>required uint64 index = 1;</code>
|
|
||||||
*/
|
|
||||||
public long getIndex() {
|
|
||||||
return index_;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static final int ISLOCAL_FIELD_NUMBER = 2;
|
|
||||||
private boolean isLocal_;
|
|
||||||
/**
|
|
||||||
* <code>required bool isLocal = 2;</code>
|
|
||||||
*/
|
|
||||||
public boolean hasIsLocal() {
|
|
||||||
return ((bitField0_ & 0x00000002) == 0x00000002);
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>required bool isLocal = 2;</code>
|
|
||||||
*/
|
|
||||||
public boolean getIsLocal() {
|
|
||||||
return isLocal_;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void initFields() {
|
|
||||||
index_ = 0L;
|
|
||||||
isLocal_ = false;
|
|
||||||
}
|
|
||||||
private byte memoizedIsInitialized = -1;
|
|
||||||
public final boolean isInitialized() {
|
|
||||||
byte isInitialized = memoizedIsInitialized;
|
|
||||||
if (isInitialized == 1) return true;
|
|
||||||
if (isInitialized == 0) return false;
|
|
||||||
|
|
||||||
if (!hasIndex()) {
|
|
||||||
memoizedIsInitialized = 0;
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
if (!hasIsLocal()) {
|
|
||||||
memoizedIsInitialized = 0;
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
memoizedIsInitialized = 1;
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void writeTo(org.jetbrains.kotlin.protobuf.CodedOutputStream output)
|
|
||||||
throws java.io.IOException {
|
|
||||||
getSerializedSize();
|
|
||||||
if (((bitField0_ & 0x00000001) == 0x00000001)) {
|
|
||||||
output.writeUInt64(1, index_);
|
|
||||||
}
|
|
||||||
if (((bitField0_ & 0x00000002) == 0x00000002)) {
|
|
||||||
output.writeBool(2, isLocal_);
|
|
||||||
}
|
|
||||||
output.writeRawBytes(unknownFields);
|
|
||||||
}
|
|
||||||
|
|
||||||
private int memoizedSerializedSize = -1;
|
|
||||||
public int getSerializedSize() {
|
|
||||||
int size = memoizedSerializedSize;
|
|
||||||
if (size != -1) return size;
|
|
||||||
|
|
||||||
size = 0;
|
|
||||||
if (((bitField0_ & 0x00000001) == 0x00000001)) {
|
|
||||||
size += org.jetbrains.kotlin.protobuf.CodedOutputStream
|
|
||||||
.computeUInt64Size(1, index_);
|
|
||||||
}
|
|
||||||
if (((bitField0_ & 0x00000002) == 0x00000002)) {
|
|
||||||
size += org.jetbrains.kotlin.protobuf.CodedOutputStream
|
|
||||||
.computeBoolSize(2, isLocal_);
|
|
||||||
}
|
|
||||||
size += unknownFields.size();
|
|
||||||
memoizedSerializedSize = size;
|
|
||||||
return size;
|
|
||||||
}
|
|
||||||
|
|
||||||
private static final long serialVersionUID = 0L;
|
|
||||||
@java.lang.Override
|
|
||||||
protected java.lang.Object writeReplace()
|
|
||||||
throws java.io.ObjectStreamException {
|
|
||||||
return super.writeReplace();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static org.jetbrains.kotlin.backend.common.serialization.proto.UniqId parseFrom(
|
|
||||||
org.jetbrains.kotlin.protobuf.ByteString data)
|
|
||||||
throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException {
|
|
||||||
return PARSER.parseFrom(data);
|
|
||||||
}
|
|
||||||
public static org.jetbrains.kotlin.backend.common.serialization.proto.UniqId parseFrom(
|
|
||||||
org.jetbrains.kotlin.protobuf.ByteString data,
|
|
||||||
org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
||||||
throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException {
|
|
||||||
return PARSER.parseFrom(data, extensionRegistry);
|
|
||||||
}
|
|
||||||
public static org.jetbrains.kotlin.backend.common.serialization.proto.UniqId parseFrom(byte[] data)
|
|
||||||
throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException {
|
|
||||||
return PARSER.parseFrom(data);
|
|
||||||
}
|
|
||||||
public static org.jetbrains.kotlin.backend.common.serialization.proto.UniqId parseFrom(
|
|
||||||
byte[] data,
|
|
||||||
org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
||||||
throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException {
|
|
||||||
return PARSER.parseFrom(data, extensionRegistry);
|
|
||||||
}
|
|
||||||
public static org.jetbrains.kotlin.backend.common.serialization.proto.UniqId parseFrom(java.io.InputStream input)
|
|
||||||
throws java.io.IOException {
|
|
||||||
return PARSER.parseFrom(input);
|
|
||||||
}
|
|
||||||
public static org.jetbrains.kotlin.backend.common.serialization.proto.UniqId parseFrom(
|
|
||||||
java.io.InputStream input,
|
|
||||||
org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
||||||
throws java.io.IOException {
|
|
||||||
return PARSER.parseFrom(input, extensionRegistry);
|
|
||||||
}
|
|
||||||
public static org.jetbrains.kotlin.backend.common.serialization.proto.UniqId parseDelimitedFrom(java.io.InputStream input)
|
|
||||||
throws java.io.IOException {
|
|
||||||
return PARSER.parseDelimitedFrom(input);
|
|
||||||
}
|
|
||||||
public static org.jetbrains.kotlin.backend.common.serialization.proto.UniqId parseDelimitedFrom(
|
|
||||||
java.io.InputStream input,
|
|
||||||
org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
||||||
throws java.io.IOException {
|
|
||||||
return PARSER.parseDelimitedFrom(input, extensionRegistry);
|
|
||||||
}
|
|
||||||
public static org.jetbrains.kotlin.backend.common.serialization.proto.UniqId parseFrom(
|
|
||||||
org.jetbrains.kotlin.protobuf.CodedInputStream input)
|
|
||||||
throws java.io.IOException {
|
|
||||||
return PARSER.parseFrom(input);
|
|
||||||
}
|
|
||||||
public static org.jetbrains.kotlin.backend.common.serialization.proto.UniqId parseFrom(
|
|
||||||
org.jetbrains.kotlin.protobuf.CodedInputStream input,
|
|
||||||
org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
||||||
throws java.io.IOException {
|
|
||||||
return PARSER.parseFrom(input, extensionRegistry);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static Builder newBuilder() { return Builder.create(); }
|
|
||||||
public Builder newBuilderForType() { return newBuilder(); }
|
|
||||||
public static Builder newBuilder(org.jetbrains.kotlin.backend.common.serialization.proto.UniqId prototype) {
|
|
||||||
return newBuilder().mergeFrom(prototype);
|
|
||||||
}
|
|
||||||
public Builder toBuilder() { return newBuilder(this); }
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Protobuf type {@code org.jetbrains.kotlin.backend.common.serialization.proto.UniqId}
|
|
||||||
*/
|
|
||||||
public static final class Builder extends
|
|
||||||
org.jetbrains.kotlin.protobuf.GeneratedMessageLite.Builder<
|
|
||||||
org.jetbrains.kotlin.backend.common.serialization.proto.UniqId, Builder>
|
|
||||||
implements
|
|
||||||
// @@protoc_insertion_point(builder_implements:org.jetbrains.kotlin.backend.common.serialization.proto.UniqId)
|
|
||||||
org.jetbrains.kotlin.backend.common.serialization.proto.UniqIdOrBuilder {
|
|
||||||
// Construct using org.jetbrains.kotlin.backend.common.serialization.proto.UniqId.newBuilder()
|
|
||||||
private Builder() {
|
|
||||||
maybeForceBuilderInitialization();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void maybeForceBuilderInitialization() {
|
|
||||||
}
|
|
||||||
private static Builder create() {
|
|
||||||
return new Builder();
|
|
||||||
}
|
|
||||||
|
|
||||||
public Builder clear() {
|
|
||||||
super.clear();
|
|
||||||
index_ = 0L;
|
|
||||||
bitField0_ = (bitField0_ & ~0x00000001);
|
|
||||||
isLocal_ = false;
|
|
||||||
bitField0_ = (bitField0_ & ~0x00000002);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Builder clone() {
|
|
||||||
return create().mergeFrom(buildPartial());
|
|
||||||
}
|
|
||||||
|
|
||||||
public org.jetbrains.kotlin.backend.common.serialization.proto.UniqId getDefaultInstanceForType() {
|
|
||||||
return org.jetbrains.kotlin.backend.common.serialization.proto.UniqId.getDefaultInstance();
|
|
||||||
}
|
|
||||||
|
|
||||||
public org.jetbrains.kotlin.backend.common.serialization.proto.UniqId build() {
|
|
||||||
org.jetbrains.kotlin.backend.common.serialization.proto.UniqId result = buildPartial();
|
|
||||||
if (!result.isInitialized()) {
|
|
||||||
throw newUninitializedMessageException(result);
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
public org.jetbrains.kotlin.backend.common.serialization.proto.UniqId buildPartial() {
|
|
||||||
org.jetbrains.kotlin.backend.common.serialization.proto.UniqId result = new org.jetbrains.kotlin.backend.common.serialization.proto.UniqId(this);
|
|
||||||
int from_bitField0_ = bitField0_;
|
|
||||||
int to_bitField0_ = 0;
|
|
||||||
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
|
|
||||||
to_bitField0_ |= 0x00000001;
|
|
||||||
}
|
|
||||||
result.index_ = index_;
|
|
||||||
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
|
|
||||||
to_bitField0_ |= 0x00000002;
|
|
||||||
}
|
|
||||||
result.isLocal_ = isLocal_;
|
|
||||||
result.bitField0_ = to_bitField0_;
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Builder mergeFrom(org.jetbrains.kotlin.backend.common.serialization.proto.UniqId other) {
|
|
||||||
if (other == org.jetbrains.kotlin.backend.common.serialization.proto.UniqId.getDefaultInstance()) return this;
|
|
||||||
if (other.hasIndex()) {
|
|
||||||
setIndex(other.getIndex());
|
|
||||||
}
|
|
||||||
if (other.hasIsLocal()) {
|
|
||||||
setIsLocal(other.getIsLocal());
|
|
||||||
}
|
|
||||||
setUnknownFields(
|
|
||||||
getUnknownFields().concat(other.unknownFields));
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public final boolean isInitialized() {
|
|
||||||
if (!hasIndex()) {
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
if (!hasIsLocal()) {
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Builder mergeFrom(
|
|
||||||
org.jetbrains.kotlin.protobuf.CodedInputStream input,
|
|
||||||
org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
||||||
throws java.io.IOException {
|
|
||||||
org.jetbrains.kotlin.backend.common.serialization.proto.UniqId parsedMessage = null;
|
|
||||||
try {
|
|
||||||
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
|
||||||
} catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) {
|
|
||||||
parsedMessage = (org.jetbrains.kotlin.backend.common.serialization.proto.UniqId) e.getUnfinishedMessage();
|
|
||||||
throw e;
|
|
||||||
} finally {
|
|
||||||
if (parsedMessage != null) {
|
|
||||||
mergeFrom(parsedMessage);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
private int bitField0_;
|
|
||||||
|
|
||||||
private long index_ ;
|
|
||||||
/**
|
|
||||||
* <code>required uint64 index = 1;</code>
|
|
||||||
*/
|
|
||||||
public boolean hasIndex() {
|
|
||||||
return ((bitField0_ & 0x00000001) == 0x00000001);
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>required uint64 index = 1;</code>
|
|
||||||
*/
|
|
||||||
public long getIndex() {
|
|
||||||
return index_;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>required uint64 index = 1;</code>
|
|
||||||
*/
|
|
||||||
public Builder setIndex(long value) {
|
|
||||||
bitField0_ |= 0x00000001;
|
|
||||||
index_ = value;
|
|
||||||
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>required uint64 index = 1;</code>
|
|
||||||
*/
|
|
||||||
public Builder clearIndex() {
|
|
||||||
bitField0_ = (bitField0_ & ~0x00000001);
|
|
||||||
index_ = 0L;
|
|
||||||
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
private boolean isLocal_ ;
|
|
||||||
/**
|
|
||||||
* <code>required bool isLocal = 2;</code>
|
|
||||||
*/
|
|
||||||
public boolean hasIsLocal() {
|
|
||||||
return ((bitField0_ & 0x00000002) == 0x00000002);
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>required bool isLocal = 2;</code>
|
|
||||||
*/
|
|
||||||
public boolean getIsLocal() {
|
|
||||||
return isLocal_;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>required bool isLocal = 2;</code>
|
|
||||||
*/
|
|
||||||
public Builder setIsLocal(boolean value) {
|
|
||||||
bitField0_ |= 0x00000002;
|
|
||||||
isLocal_ = value;
|
|
||||||
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>required bool isLocal = 2;</code>
|
|
||||||
*/
|
|
||||||
public Builder clearIsLocal() {
|
|
||||||
bitField0_ = (bitField0_ & ~0x00000002);
|
|
||||||
isLocal_ = false;
|
|
||||||
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
// @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.backend.common.serialization.proto.UniqId)
|
|
||||||
}
|
|
||||||
|
|
||||||
static {
|
|
||||||
defaultInstance = new UniqId(true);
|
|
||||||
defaultInstance.initFields();
|
|
||||||
}
|
|
||||||
|
|
||||||
// @@protoc_insertion_point(class_scope:org.jetbrains.kotlin.backend.common.serialization.proto.UniqId)
|
|
||||||
}
|
|
||||||
-27
@@ -1,27 +0,0 @@
|
|||||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
||||||
// source: compiler/ir/serialization.common/src/KotlinIr.proto
|
|
||||||
|
|
||||||
package org.jetbrains.kotlin.backend.common.serialization.proto;
|
|
||||||
|
|
||||||
public interface UniqIdOrBuilder extends
|
|
||||||
// @@protoc_insertion_point(interface_extends:org.jetbrains.kotlin.backend.common.serialization.proto.UniqId)
|
|
||||||
org.jetbrains.kotlin.protobuf.MessageLiteOrBuilder {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* <code>required uint64 index = 1;</code>
|
|
||||||
*/
|
|
||||||
boolean hasIndex();
|
|
||||||
/**
|
|
||||||
* <code>required uint64 index = 1;</code>
|
|
||||||
*/
|
|
||||||
long getIndex();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* <code>required bool isLocal = 2;</code>
|
|
||||||
*/
|
|
||||||
boolean hasIsLocal();
|
|
||||||
/**
|
|
||||||
* <code>required bool isLocal = 2;</code>
|
|
||||||
*/
|
|
||||||
boolean getIsLocal();
|
|
||||||
}
|
|
||||||
+1
-1
@@ -29,7 +29,7 @@ class JsIrLinker(
|
|||||||
JsDescriptorReferenceDeserializer(currentModule, mangler, builtIns)
|
JsDescriptorReferenceDeserializer(currentModule, mangler, builtIns)
|
||||||
|
|
||||||
override fun reader(moduleDescriptor: ModuleDescriptor, fileIndex: Int, uniqId: UniqId) =
|
override fun reader(moduleDescriptor: ModuleDescriptor, fileIndex: Int, uniqId: UniqId) =
|
||||||
moduleDescriptor.kotlinLibrary.irDeclaration(uniqId.index, uniqId.isLocal, fileIndex)
|
moduleDescriptor.kotlinLibrary.irDeclaration(uniqId.index, fileIndex)
|
||||||
|
|
||||||
override fun readSymbol(moduleDescriptor: ModuleDescriptor, fileIndex: Int, symbolIndex: Int) =
|
override fun readSymbol(moduleDescriptor: ModuleDescriptor, fileIndex: Int, symbolIndex: Int) =
|
||||||
moduleDescriptor.kotlinLibrary.symbol(symbolIndex, fileIndex)
|
moduleDescriptor.kotlinLibrary.symbol(symbolIndex, fileIndex)
|
||||||
|
|||||||
-4
@@ -11,10 +11,6 @@ import org.jetbrains.kotlin.ir.types.IrType
|
|||||||
import org.jetbrains.kotlin.ir.util.isInlined
|
import org.jetbrains.kotlin.ir.util.isInlined
|
||||||
|
|
||||||
object JsMangler : KotlinManglerImpl() {
|
object JsMangler : KotlinManglerImpl() {
|
||||||
private const val MOD_VALUE = PUBLIC_LOCAL_UNIQ_ID_EDGE
|
|
||||||
|
|
||||||
override val String.hashMangle: Long get() = cityHash64() % MOD_VALUE
|
|
||||||
|
|
||||||
override val IrType.isInlined: Boolean
|
override val IrType.isInlined: Boolean
|
||||||
get() = this.isInlined()
|
get() = this.isInlined()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ interface MetadataLibrary {
|
|||||||
|
|
||||||
interface IrLibrary {
|
interface IrLibrary {
|
||||||
val dataFlowGraph: ByteArray?
|
val dataFlowGraph: ByteArray?
|
||||||
fun irDeclaration(index: Long, isLocal: Boolean, fileIndex: Int): ByteArray
|
fun irDeclaration(index: Long, fileIndex: Int): ByteArray
|
||||||
fun symbol(index: Int, fileIndex: Int): ByteArray
|
fun symbol(index: Int, fileIndex: Int): ByteArray
|
||||||
fun type(index: Int, fileIndex: Int): ByteArray
|
fun type(index: Int, fileIndex: Int): ByteArray
|
||||||
fun string(index: Int, fileIndex: Int): ByteArray
|
fun string(index: Int, fileIndex: Int): ByteArray
|
||||||
|
|||||||
@@ -169,7 +169,7 @@ abstract class IrTableReader<K>(file: File, keyReader: ByteBuffer.() -> K) {
|
|||||||
|
|
||||||
class IndexIrTableReader(file: File) : IrTableReader<Long>(file, { long })
|
class IndexIrTableReader(file: File) : IrTableReader<Long>(file, { long })
|
||||||
|
|
||||||
data class DeclarationId(val id: Long, val isLocal: Boolean)
|
data class DeclarationId(val id: Long)
|
||||||
|
|
||||||
class DeclarationIrTableReader(file: File) : IrTableReader<DeclarationId>(file, { DeclarationId(long, int != 0) })
|
class DeclarationIrTableReader(file: File) : IrTableReader<DeclarationId>(file, { DeclarationId(long) })
|
||||||
class DeclarationIrMultiTableReader(file: File) : IrMultiTableReader<DeclarationId>(file, { DeclarationId(long, int != 0) })
|
class DeclarationIrMultiTableReader(file: File) : IrMultiTableReader<DeclarationId>(file, { DeclarationId(long) })
|
||||||
@@ -76,7 +76,7 @@ class IrTableWriter(private val data: List<Pair<Long, ByteArray>>) : IrFileWrite
|
|||||||
override fun writeData(dataOutput: DataOutput) {
|
override fun writeData(dataOutput: DataOutput) {
|
||||||
dataOutput.writeInt(data.size)
|
dataOutput.writeInt(data.size)
|
||||||
|
|
||||||
var dataOffset = 4 + data.size * (8 + 4 + 4)
|
var dataOffset = Int.SIZE_BYTES + data.size * (Long.SIZE_BYTES + 2 * Int.SIZE_BYTES)
|
||||||
|
|
||||||
data.forEach {
|
data.forEach {
|
||||||
dataOutput.writeLong(it.first)
|
dataOutput.writeLong(it.first)
|
||||||
@@ -91,8 +91,8 @@ class IrTableWriter(private val data: List<Pair<Long, ByteArray>>) : IrFileWrite
|
|||||||
|
|
||||||
class IrDeclarationWriter(private val declarations: List<SerializedDeclaration>) : IrFileWriter() {
|
class IrDeclarationWriter(private val declarations: List<SerializedDeclaration>) : IrFileWriter() {
|
||||||
|
|
||||||
private val SINGLE_INDEX_RECORD_SIZE = 20 // sizeof(Long) + 3 * sizeof(Int).
|
private val SINGLE_INDEX_RECORD_SIZE = Long.SIZE_BYTES + 2 * Int.SIZE_BYTES
|
||||||
private val INDEX_HEADER_SIZE = 4 // sizeof(Int).
|
private val INDEX_HEADER_SIZE = Int.SIZE_BYTES
|
||||||
|
|
||||||
override fun writeData(dataOutput: DataOutput) {
|
override fun writeData(dataOutput: DataOutput) {
|
||||||
dataOutput.writeInt(declarations.size)
|
dataOutput.writeInt(declarations.size)
|
||||||
@@ -101,7 +101,6 @@ class IrDeclarationWriter(private val declarations: List<SerializedDeclaration>)
|
|||||||
|
|
||||||
for (d in declarations) {
|
for (d in declarations) {
|
||||||
dataOutput.writeLong(d.id)
|
dataOutput.writeLong(d.id)
|
||||||
dataOutput.writeInt(d.local)
|
|
||||||
dataOutput.writeInt(dataOffset)
|
dataOutput.writeInt(dataOffset)
|
||||||
dataOutput.writeInt(d.size)
|
dataOutput.writeInt(d.size)
|
||||||
dataOffset += d.size
|
dataOffset += d.size
|
||||||
@@ -116,8 +115,8 @@ class IrDeclarationWriter(private val declarations: List<SerializedDeclaration>)
|
|||||||
|
|
||||||
class IrMemoryDeclarationWriter(private val declarations: List<SerializedDeclaration>) : IrMemoryWriter() {
|
class IrMemoryDeclarationWriter(private val declarations: List<SerializedDeclaration>) : IrMemoryWriter() {
|
||||||
|
|
||||||
private val SINGLE_INDEX_RECORD_SIZE = 20 // sizeof(Long) + 3 * sizeof(Int).
|
private val SINGLE_INDEX_RECORD_SIZE = Long.SIZE_BYTES + 2 * Int.SIZE_BYTES
|
||||||
private val INDEX_HEADER_SIZE = 4 // sizeof(Int).
|
private val INDEX_HEADER_SIZE = Int.SIZE_BYTES
|
||||||
|
|
||||||
override fun writeData(dataOutput: DataOutput) {
|
override fun writeData(dataOutput: DataOutput) {
|
||||||
dataOutput.writeInt(declarations.size)
|
dataOutput.writeInt(declarations.size)
|
||||||
@@ -126,7 +125,6 @@ class IrMemoryDeclarationWriter(private val declarations: List<SerializedDeclara
|
|||||||
|
|
||||||
for (d in declarations) {
|
for (d in declarations) {
|
||||||
dataOutput.writeLong(d.id)
|
dataOutput.writeLong(d.id)
|
||||||
dataOutput.writeInt(d.local)
|
|
||||||
dataOutput.writeInt(dataOffset)
|
dataOutput.writeInt(dataOffset)
|
||||||
dataOutput.writeInt(d.size)
|
dataOutput.writeInt(d.size)
|
||||||
dataOffset += d.size
|
dataOffset += d.size
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ abstract class IrLibraryImpl(
|
|||||||
class IrMonoliticLibraryImpl(_access: IrLibraryAccess<IrKotlinLibraryLayout>) : IrLibraryImpl(_access) {
|
class IrMonoliticLibraryImpl(_access: IrLibraryAccess<IrKotlinLibraryLayout>) : IrLibraryImpl(_access) {
|
||||||
override fun fileCount(): Int = files.entryCount()
|
override fun fileCount(): Int = files.entryCount()
|
||||||
|
|
||||||
override fun irDeclaration(index: Long, isLocal: Boolean, fileIndex: Int) = loadIrDeclaration(index, isLocal, fileIndex)
|
override fun irDeclaration(index: Long, fileIndex: Int) = loadIrDeclaration(index, fileIndex)
|
||||||
|
|
||||||
override fun symbol(index: Int, fileIndex: Int) = symbols.tableItemBytes(fileIndex, index)
|
override fun symbol(index: Int, fileIndex: Int) = symbols.tableItemBytes(fileIndex, index)
|
||||||
|
|
||||||
@@ -96,8 +96,8 @@ class IrMonoliticLibraryImpl(_access: IrLibraryAccess<IrKotlinLibraryLayout>) :
|
|||||||
|
|
||||||
override fun file(index: Int) = files.tableItemBytes(index)
|
override fun file(index: Int) = files.tableItemBytes(index)
|
||||||
|
|
||||||
private fun loadIrDeclaration(index: Long, isLocal: Boolean, fileIndex: Int) =
|
private fun loadIrDeclaration(index: Long, fileIndex: Int) =
|
||||||
combinedDeclarations.tableItemBytes(fileIndex, DeclarationId(index, isLocal))
|
combinedDeclarations.tableItemBytes(fileIndex, DeclarationId(index))
|
||||||
|
|
||||||
private val combinedDeclarations: DeclarationIrMultiTableReader by lazy {
|
private val combinedDeclarations: DeclarationIrMultiTableReader by lazy {
|
||||||
DeclarationIrMultiTableReader(access.realFiles {
|
DeclarationIrMultiTableReader(access.realFiles {
|
||||||
@@ -145,14 +145,14 @@ class IrPerFileLibraryImpl(_access: IrLibraryAccess<IrKotlinLibraryLayout>) : Ir
|
|||||||
}
|
}
|
||||||
|
|
||||||
private val fileToDeclarationMap = mutableMapOf<Int, DeclarationIrTableReader>()
|
private val fileToDeclarationMap = mutableMapOf<Int, DeclarationIrTableReader>()
|
||||||
override fun irDeclaration(index: Long, isLocal: Boolean, fileIndex: Int): ByteArray {
|
override fun irDeclaration(index: Long, fileIndex: Int): ByteArray {
|
||||||
val dataReader = fileToDeclarationMap.getOrPut(fileIndex) {
|
val dataReader = fileToDeclarationMap.getOrPut(fileIndex) {
|
||||||
val fileDirectory = directories[fileIndex]
|
val fileDirectory = directories[fileIndex]
|
||||||
DeclarationIrTableReader(access.realFiles {
|
DeclarationIrTableReader(access.realFiles {
|
||||||
it.irDeclarations(fileDirectory)
|
it.irDeclarations(fileDirectory)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
return dataReader.tableItemBytes(DeclarationId(index, isLocal))
|
return dataReader.tableItemBytes(DeclarationId(index))
|
||||||
}
|
}
|
||||||
|
|
||||||
private val fileToSymbolMap = mutableMapOf<Int, IrArrayReader>()
|
private val fileToSymbolMap = mutableMapOf<Int, IrArrayReader>()
|
||||||
|
|||||||
Reference in New Issue
Block a user