IR to CFG: member access unrolling

This commit is contained in:
Mikhail Glukhikh
2016-09-23 17:28:39 +03:00
committed by Dmitry Petrov
parent 5a04c72e75
commit ea13386d0b
9 changed files with 135 additions and 32 deletions
+6 -4
View File
@@ -3,10 +3,12 @@
BB 0
CONTENT
1 FUN public fun foo(arg: kotlin.Int): kotlin.Int
2 CALL 'times(Int): Int' type=kotlin.Int origin=MUL
3 VAR val dbl: kotlin.Int
4 GET_VAR 'dbl: Int' type=kotlin.Int origin=null
5 RETURN type=kotlin.Nothing from='foo(Int): Int'
2 GET_VAR 'value-parameter arg: Int' type=kotlin.Int origin=null
3 CONST Int type=kotlin.Int value='2'
4 CALL 'times(Int): Int' type=kotlin.Int origin=MUL
5 VAR val dbl: kotlin.Int
6 GET_VAR 'dbl: Int' type=kotlin.Int origin=null
7 RETURN type=kotlin.Nothing from='foo(Int): Int'
OUTGOING -> NONE
Function exit: FUN public fun foo(arg: kotlin.Int): kotlin.Int