IR: don't use descriptors in rendering (work in progress)

There's some descriptor-based code remaining. Need some more work on IR.
This commit is contained in:
Dmitry Petrov
2019-03-14 14:17:26 +03:00
parent bd3d5a9dbb
commit e49eae528c
319 changed files with 18613 additions and 18703 deletions
@@ -1,32 +1,31 @@
FILE fqName:<root> fileName:/simpleUnaryOperators.kt
FUN name:test1 visibility:public modality:FINAL <> (x:kotlin.Int) returnType:kotlin.Int flags:
VALUE_PARAMETER name:x index:0 type:kotlin.Int flags:
FUN name:test1 visibility:public modality:FINAL <> (x:kotlin.Int) returnType:kotlin.Int flags:[]
VALUE_PARAMETER name:x index:0 type:kotlin.Int flags:[]
BLOCK_BODY
RETURN type=kotlin.Nothing from='test1(Int): Int'
CALL 'unaryMinus(): Int' type=kotlin.Int origin=UMINUS
$this: GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=null
FUN name:test2 visibility:public modality:FINAL <> () returnType:kotlin.Int flags:
RETURN type=kotlin.Nothing from='FUN name:test1 visibility:public modality:FINAL <> (x:kotlin.Int) returnType:kotlin.Int flags:[]'
CALL 'FUN IR_EXTERNAL_DECLARATION_STUB name:unaryMinus visibility:public modality:FINAL <> ($this:kotlin.Int) returnType:kotlin.Int flags:[]' type=kotlin.Int origin=UMINUS
$this: GET_VAR 'VALUE_PARAMETER name:x index:0 type:kotlin.Int flags:[]' type=kotlin.Int origin=null
FUN name:test2 visibility:public modality:FINAL <> () returnType:kotlin.Int flags:[]
BLOCK_BODY
RETURN type=kotlin.Nothing from='test2(): Int'
RETURN type=kotlin.Nothing from='FUN name:test2 visibility:public modality:FINAL <> () returnType:kotlin.Int flags:[]'
CONST Int type=kotlin.Int value=-42
FUN name:test3 visibility:public modality:FINAL <> (x:kotlin.Int) returnType:kotlin.Int flags:
VALUE_PARAMETER name:x index:0 type:kotlin.Int flags:
FUN name:test3 visibility:public modality:FINAL <> (x:kotlin.Int) returnType:kotlin.Int flags:[]
VALUE_PARAMETER name:x index:0 type:kotlin.Int flags:[]
BLOCK_BODY
RETURN type=kotlin.Nothing from='test3(Int): Int'
CALL 'unaryPlus(): Int' type=kotlin.Int origin=UPLUS
$this: GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=null
FUN name:test4 visibility:public modality:FINAL <> () returnType:kotlin.Int flags:
RETURN type=kotlin.Nothing from='FUN name:test3 visibility:public modality:FINAL <> (x:kotlin.Int) returnType:kotlin.Int flags:[]'
CALL 'FUN IR_EXTERNAL_DECLARATION_STUB name:unaryPlus visibility:public modality:FINAL <> ($this:kotlin.Int) returnType:kotlin.Int flags:[]' type=kotlin.Int origin=UPLUS
$this: GET_VAR 'VALUE_PARAMETER name:x index:0 type:kotlin.Int flags:[]' type=kotlin.Int origin=null
FUN name:test4 visibility:public modality:FINAL <> () returnType:kotlin.Int flags:[]
BLOCK_BODY
RETURN type=kotlin.Nothing from='test4(): Int'
RETURN type=kotlin.Nothing from='FUN name:test4 visibility:public modality:FINAL <> () returnType:kotlin.Int flags:[]'
CONST Int type=kotlin.Int value=42
FUN name:test5 visibility:public modality:FINAL <> (x:kotlin.Boolean) returnType:kotlin.Boolean flags:
VALUE_PARAMETER name:x index:0 type:kotlin.Boolean flags:
FUN name:test5 visibility:public modality:FINAL <> (x:kotlin.Boolean) returnType:kotlin.Boolean flags:[]
VALUE_PARAMETER name:x index:0 type:kotlin.Boolean flags:[]
BLOCK_BODY
RETURN type=kotlin.Nothing from='test5(Boolean): Boolean'
CALL 'not(): Boolean' type=kotlin.Boolean origin=EXCL
$this: GET_VAR 'value-parameter x: Boolean' type=kotlin.Boolean origin=null
FUN name:test6 visibility:public modality:FINAL <> () returnType:kotlin.Boolean flags:
RETURN type=kotlin.Nothing from='FUN name:test5 visibility:public modality:FINAL <> (x:kotlin.Boolean) returnType:kotlin.Boolean flags:[]'
CALL 'FUN IR_EXTERNAL_DECLARATION_STUB name:not visibility:public modality:FINAL <> ($this:kotlin.Boolean) returnType:kotlin.Boolean flags:[]' type=kotlin.Boolean origin=EXCL
$this: GET_VAR 'VALUE_PARAMETER name:x index:0 type:kotlin.Boolean flags:[]' type=kotlin.Boolean origin=null
FUN name:test6 visibility:public modality:FINAL <> () returnType:kotlin.Boolean flags:[]
BLOCK_BODY
RETURN type=kotlin.Nothing from='test6(): Boolean'
RETURN type=kotlin.Nothing from='FUN name:test6 visibility:public modality:FINAL <> () returnType:kotlin.Boolean flags:[]'
CONST Boolean type=kotlin.Boolean value=false