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:
@@ -1,43 +1,42 @@
|
||||
FILE fqName:<root> fileName:/callWithReorderedArguments.kt
|
||||
FUN name:foo visibility:public modality:FINAL <> (a:kotlin.Int, b:kotlin.Int) returnType:kotlin.Unit flags:
|
||||
VALUE_PARAMETER name:a index:0 type:kotlin.Int flags:
|
||||
VALUE_PARAMETER name:b index:1 type:kotlin.Int flags:
|
||||
FUN name:foo visibility:public modality:FINAL <> (a:kotlin.Int, b:kotlin.Int) returnType:kotlin.Unit flags:[]
|
||||
VALUE_PARAMETER name:a index:0 type:kotlin.Int flags:[]
|
||||
VALUE_PARAMETER name:b index:1 type:kotlin.Int flags:[]
|
||||
BLOCK_BODY
|
||||
FUN name:noReorder1 visibility:public modality:FINAL <> () returnType:kotlin.Int flags:
|
||||
FUN name:noReorder1 visibility:public modality:FINAL <> () returnType:kotlin.Int flags:[]
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='noReorder1(): Int'
|
||||
RETURN type=kotlin.Nothing from='FUN name:noReorder1 visibility:public modality:FINAL <> () returnType:kotlin.Int flags:[]'
|
||||
CONST Int type=kotlin.Int value=1
|
||||
FUN name:noReorder2 visibility:public modality:FINAL <> () returnType:kotlin.Int flags:
|
||||
FUN name:noReorder2 visibility:public modality:FINAL <> () returnType:kotlin.Int flags:[]
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='noReorder2(): Int'
|
||||
RETURN type=kotlin.Nothing from='FUN name:noReorder2 visibility:public modality:FINAL <> () returnType:kotlin.Int flags:[]'
|
||||
CONST Int type=kotlin.Int value=2
|
||||
FUN name:reordered1 visibility:public modality:FINAL <> () returnType:kotlin.Int flags:
|
||||
FUN name:reordered1 visibility:public modality:FINAL <> () returnType:kotlin.Int flags:[]
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='reordered1(): Int'
|
||||
RETURN type=kotlin.Nothing from='FUN name:reordered1 visibility:public modality:FINAL <> () returnType:kotlin.Int flags:[]'
|
||||
CONST Int type=kotlin.Int value=1
|
||||
FUN name:reordered2 visibility:public modality:FINAL <> () returnType:kotlin.Int flags:
|
||||
FUN name:reordered2 visibility:public modality:FINAL <> () returnType:kotlin.Int flags:[]
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='reordered2(): Int'
|
||||
RETURN type=kotlin.Nothing from='FUN name:reordered2 visibility:public modality:FINAL <> () returnType:kotlin.Int flags:[]'
|
||||
CONST Int type=kotlin.Int value=2
|
||||
FUN name:test visibility:public modality:FINAL <> () returnType:kotlin.Unit flags:
|
||||
FUN name:test visibility:public modality:FINAL <> () returnType:kotlin.Unit flags:[]
|
||||
BLOCK_BODY
|
||||
CALL 'foo(Int, Int): Unit' type=kotlin.Unit origin=null
|
||||
a: CALL 'noReorder1(): Int' type=kotlin.Int origin=null
|
||||
b: CALL 'noReorder2(): Int' type=kotlin.Int origin=null
|
||||
CALL 'FUN name:foo visibility:public modality:FINAL <> (a:kotlin.Int, b:kotlin.Int) returnType:kotlin.Unit flags:[]' type=kotlin.Unit origin=null
|
||||
a: CALL 'FUN name:noReorder1 visibility:public modality:FINAL <> () returnType:kotlin.Int flags:[]' type=kotlin.Int origin=null
|
||||
b: CALL 'FUN name:noReorder2 visibility:public modality:FINAL <> () returnType:kotlin.Int flags:[]' type=kotlin.Int origin=null
|
||||
BLOCK type=kotlin.Unit origin=ARGUMENTS_REORDERING_FOR_CALL
|
||||
VAR IR_TEMPORARY_VARIABLE name:tmp0_b type:kotlin.Int flags:val
|
||||
CALL 'reordered1(): Int' type=kotlin.Int origin=null
|
||||
VAR IR_TEMPORARY_VARIABLE name:tmp1_a type:kotlin.Int flags:val
|
||||
CALL 'reordered2(): Int' type=kotlin.Int origin=null
|
||||
CALL 'foo(Int, Int): Unit' type=kotlin.Unit origin=null
|
||||
a: GET_VAR 'tmp1_a: Int' type=kotlin.Int origin=null
|
||||
b: GET_VAR 'tmp0_b: Int' type=kotlin.Int origin=null
|
||||
VAR IR_TEMPORARY_VARIABLE name:tmp0_b type:kotlin.Int flags:[val]
|
||||
CALL 'FUN name:reordered1 visibility:public modality:FINAL <> () returnType:kotlin.Int flags:[]' type=kotlin.Int origin=null
|
||||
VAR IR_TEMPORARY_VARIABLE name:tmp1_a type:kotlin.Int flags:[val]
|
||||
CALL 'FUN name:reordered2 visibility:public modality:FINAL <> () returnType:kotlin.Int flags:[]' type=kotlin.Int origin=null
|
||||
CALL 'FUN name:foo visibility:public modality:FINAL <> (a:kotlin.Int, b:kotlin.Int) returnType:kotlin.Unit flags:[]' type=kotlin.Unit origin=null
|
||||
a: GET_VAR 'VAR IR_TEMPORARY_VARIABLE name:tmp1_a type:kotlin.Int flags:[val]' type=kotlin.Int origin=null
|
||||
b: GET_VAR 'VAR IR_TEMPORARY_VARIABLE name:tmp0_b type:kotlin.Int flags:[val]' type=kotlin.Int origin=null
|
||||
BLOCK type=kotlin.Unit origin=ARGUMENTS_REORDERING_FOR_CALL
|
||||
VAR IR_TEMPORARY_VARIABLE name:tmp2_b type:kotlin.Int flags:val
|
||||
VAR IR_TEMPORARY_VARIABLE name:tmp2_b type:kotlin.Int flags:[val]
|
||||
CONST Int type=kotlin.Int value=1
|
||||
VAR IR_TEMPORARY_VARIABLE name:tmp3_a type:kotlin.Int flags:val
|
||||
CALL 'reordered2(): Int' type=kotlin.Int origin=null
|
||||
CALL 'foo(Int, Int): Unit' type=kotlin.Unit origin=null
|
||||
a: GET_VAR 'tmp3_a: Int' type=kotlin.Int origin=null
|
||||
b: GET_VAR 'tmp2_b: Int' type=kotlin.Int origin=null
|
||||
|
||||
VAR IR_TEMPORARY_VARIABLE name:tmp3_a type:kotlin.Int flags:[val]
|
||||
CALL 'FUN name:reordered2 visibility:public modality:FINAL <> () returnType:kotlin.Int flags:[]' type=kotlin.Int origin=null
|
||||
CALL 'FUN name:foo visibility:public modality:FINAL <> (a:kotlin.Int, b:kotlin.Int) returnType:kotlin.Unit flags:[]' type=kotlin.Unit origin=null
|
||||
a: GET_VAR 'VAR IR_TEMPORARY_VARIABLE name:tmp3_a type:kotlin.Int flags:[val]' type=kotlin.Int origin=null
|
||||
b: GET_VAR 'VAR IR_TEMPORARY_VARIABLE name:tmp2_b type:kotlin.Int flags:[val]' type=kotlin.Int origin=null
|
||||
|
||||
Reference in New Issue
Block a user