Pseudocode: Do not bind call value to callee expressions

This commit is contained in:
Alexey Sedunov
2014-06-10 17:25:16 +04:00
parent e94f96d457
commit 168b32920b
52 changed files with 351 additions and 477 deletions
@@ -5,8 +5,7 @@ fun Any?.doSomething() {}
== bar ==
fun bar(): Nothing = throw Exception()
---------------------
Exception <v0> NEW()
Exception() <v0> COPY
Exception() <v0> NEW()
=====================
== foo ==
fun foo() {
@@ -16,9 +15,8 @@ fun foo() {
---------------------
null <v0> NEW()
null!! <v1> NEW(<v0>)
doSomething <v2> NEW(<v1>)
doSomething() <v2> COPY
null!!.doSomething() <v2> COPY
doSomething() <v2> NEW(<v1>)
null!!.doSomething() <v2> COPY
doSomething <v3> NEW()
bar().doSomething <v3> COPY
{ null!!.doSomething() bar().doSomething } <v3> COPY