[KLIB] Implement new linker based on IdSignature
- Remove klib dependency on metadata and uniqID - Refactored proto format to make it more effective and compact -- Use special encoding for some types of data (coordinates, flags, types) -- Remove symbols table -- Use packed proto list if it is possible - Remove extension from metadata - Remove special ids for function interfaces - Fix klib IO - Fix incremental cache - General code clean up
This commit is contained in:
+3
-3
@@ -45,8 +45,8 @@ interface IncrementalResultsConsumer {
|
||||
fun processIrFile(
|
||||
sourceFile: File,
|
||||
fileData: ByteArray,
|
||||
symbols: ByteArray,
|
||||
types: ByteArray,
|
||||
signatures: ByteArray,
|
||||
strings: ByteArray,
|
||||
declarations: ByteArray,
|
||||
bodies: ByteArray,
|
||||
@@ -132,14 +132,14 @@ open class IncrementalResultsConsumerImpl : IncrementalResultsConsumer {
|
||||
override fun processIrFile(
|
||||
sourceFile: File,
|
||||
fileData: ByteArray,
|
||||
symbols: ByteArray,
|
||||
types: ByteArray,
|
||||
signatures: ByteArray,
|
||||
strings: ByteArray,
|
||||
declarations: ByteArray,
|
||||
bodies: ByteArray,
|
||||
fqn: ByteArray
|
||||
) {
|
||||
_irFileData[sourceFile] = IrTranslationResultValue(fileData, symbols, types, strings, declarations, bodies, fqn)
|
||||
_irFileData[sourceFile] = IrTranslationResultValue(fileData, types, signatures, strings, declarations, bodies, fqn)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -21,8 +21,8 @@ data class TranslationResultValue(val metadata: ByteArray, val binaryAst: ByteAr
|
||||
|
||||
data class IrTranslationResultValue(
|
||||
val fileData: ByteArray,
|
||||
val symbols: ByteArray,
|
||||
val types: ByteArray,
|
||||
val signatures: ByteArray,
|
||||
val strings: ByteArray,
|
||||
val declarations: ByteArray,
|
||||
val bodies: ByteArray,
|
||||
|
||||
Reference in New Issue
Block a user