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,34 +1,34 @@
FILE fqName:<root> fileName:/javaSyntheticPropertyAccess.kt
FUN name:test visibility:public modality:FINAL <> (j:J) returnType:kotlin.Unit flags:
VALUE_PARAMETER name:j index:0 type:J flags:
FUN name:test visibility:public modality:FINAL <> (j:<root>.J) returnType:kotlin.Unit flags:[]
VALUE_PARAMETER name:j index:0 type:<root>.J flags:[]
BLOCK_BODY
TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit
typeOperand: CLASS IR_EXTERNAL_DECLARATION_STUB OBJECT name:Unit modality:FINAL visibility:public flags: superTypes:[kotlin.Any]
CALL 'getFoo(): Int' type=kotlin.Int origin=GET_PROPERTY
$this: GET_VAR 'value-parameter j: J' type=J origin=null
CALL 'setFoo(Int): Unit' type=kotlin.Unit origin=EQ
$this: GET_VAR 'value-parameter j: J' type=J origin=null
typeOperand: CLASS IR_EXTERNAL_DECLARATION_STUB OBJECT name:Unit modality:FINAL visibility:public flags:[] superTypes:[kotlin.Any]
CALL 'FUN IR_EXTERNAL_JAVA_DECLARATION_STUB name:getFoo visibility:public modality:OPEN <> ($this:<root>.J) returnType:kotlin.Int flags:[]' type=kotlin.Int origin=GET_PROPERTY
$this: GET_VAR 'VALUE_PARAMETER name:j index:0 type:<root>.J flags:[]' type=<root>.J origin=null
CALL 'FUN IR_EXTERNAL_JAVA_DECLARATION_STUB name:setFoo visibility:public modality:OPEN <> ($this:<root>.J, x:kotlin.Int) returnType:kotlin.Unit flags:[]' type=kotlin.Unit origin=EQ
$this: GET_VAR 'VALUE_PARAMETER name:j index:0 type:<root>.J flags:[]' type=<root>.J origin=null
x: CONST Int type=kotlin.Int value=1
TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit
typeOperand: CLASS IR_EXTERNAL_DECLARATION_STUB OBJECT name:Unit modality:FINAL visibility:public flags: superTypes:[kotlin.Any]
typeOperand: CLASS IR_EXTERNAL_DECLARATION_STUB OBJECT name:Unit modality:FINAL visibility:public flags:[] superTypes:[kotlin.Any]
BLOCK type=kotlin.Int origin=POSTFIX_INCR
VAR IR_TEMPORARY_VARIABLE name:tmp0_receiver type:J flags:val
GET_VAR 'value-parameter j: J' type=J origin=null
VAR IR_TEMPORARY_VARIABLE name:tmp0_receiver type:<root>.J flags:[val]
GET_VAR 'VALUE_PARAMETER name:j index:0 type:<root>.J flags:[]' type=<root>.J origin=null
BLOCK type=kotlin.Int origin=POSTFIX_INCR
VAR IR_TEMPORARY_VARIABLE name:tmp1 type:kotlin.Int flags:val
CALL 'getFoo(): Int' type=kotlin.Int origin=POSTFIX_INCR
$this: GET_VAR 'tmp0_receiver: J' type=J origin=null
CALL 'setFoo(Int): Unit' type=kotlin.Unit origin=POSTFIX_INCR
$this: GET_VAR 'tmp0_receiver: J' type=J origin=null
x: CALL 'inc(): Int' type=kotlin.Int origin=POSTFIX_INCR
$this: GET_VAR 'tmp1: Int' type=kotlin.Int origin=null
GET_VAR 'tmp1: Int' type=kotlin.Int origin=null
VAR IR_TEMPORARY_VARIABLE name:tmp1 type:kotlin.Int flags:[val]
CALL 'FUN IR_EXTERNAL_JAVA_DECLARATION_STUB name:getFoo visibility:public modality:OPEN <> ($this:<root>.J) returnType:kotlin.Int flags:[]' type=kotlin.Int origin=POSTFIX_INCR
$this: GET_VAR 'VAR IR_TEMPORARY_VARIABLE name:tmp0_receiver type:<root>.J flags:[val]' type=<root>.J origin=null
CALL 'FUN IR_EXTERNAL_JAVA_DECLARATION_STUB name:setFoo visibility:public modality:OPEN <> ($this:<root>.J, x:kotlin.Int) returnType:kotlin.Unit flags:[]' type=kotlin.Unit origin=POSTFIX_INCR
$this: GET_VAR 'VAR IR_TEMPORARY_VARIABLE name:tmp0_receiver type:<root>.J flags:[val]' type=<root>.J origin=null
x: CALL 'FUN IR_EXTERNAL_DECLARATION_STUB name:inc visibility:public modality:FINAL <> ($this:kotlin.Int) returnType:kotlin.Int flags:[]' type=kotlin.Int origin=POSTFIX_INCR
$this: GET_VAR 'VAR IR_TEMPORARY_VARIABLE name:tmp1 type:kotlin.Int flags:[val]' type=kotlin.Int origin=null
GET_VAR 'VAR IR_TEMPORARY_VARIABLE name:tmp1 type:kotlin.Int flags:[val]' type=kotlin.Int origin=null
BLOCK type=kotlin.Unit origin=PLUSEQ
VAR IR_TEMPORARY_VARIABLE name:tmp2_receiver type:J flags:val
GET_VAR 'value-parameter j: J' type=J origin=null
CALL 'setFoo(Int): Unit' type=kotlin.Unit origin=PLUSEQ
$this: GET_VAR 'tmp2_receiver: J' type=J origin=null
x: CALL 'plus(Int): Int' type=kotlin.Int origin=PLUSEQ
$this: CALL 'getFoo(): Int' type=kotlin.Int origin=PLUSEQ
$this: GET_VAR 'tmp2_receiver: J' type=J origin=null
VAR IR_TEMPORARY_VARIABLE name:tmp2_receiver type:<root>.J flags:[val]
GET_VAR 'VALUE_PARAMETER name:j index:0 type:<root>.J flags:[]' type=<root>.J origin=null
CALL 'FUN IR_EXTERNAL_JAVA_DECLARATION_STUB name:setFoo visibility:public modality:OPEN <> ($this:<root>.J, x:kotlin.Int) returnType:kotlin.Unit flags:[]' type=kotlin.Unit origin=PLUSEQ
$this: GET_VAR 'VAR IR_TEMPORARY_VARIABLE name:tmp2_receiver type:<root>.J flags:[val]' type=<root>.J origin=null
x: CALL 'FUN IR_EXTERNAL_DECLARATION_STUB name:plus visibility:public modality:FINAL <> ($this:kotlin.Int, other:kotlin.Int) returnType:kotlin.Int flags:[]' type=kotlin.Int origin=PLUSEQ
$this: CALL 'FUN IR_EXTERNAL_JAVA_DECLARATION_STUB name:getFoo visibility:public modality:OPEN <> ($this:<root>.J) returnType:kotlin.Int flags:[]' type=kotlin.Int origin=PLUSEQ
$this: GET_VAR 'VAR IR_TEMPORARY_VARIABLE name:tmp2_receiver type:<root>.J flags:[val]' type=<root>.J origin=null
other: CONST Int type=kotlin.Int value=1