Updated tests for control flow: call instruction stores call element

instead of callee expression
This commit is contained in:
Svetlana Isakova
2014-07-02 18:27:19 +04:00
parent 72e9822d99
commit aa26db0538
110 changed files with 1084 additions and 1084 deletions
@@ -38,14 +38,14 @@ L0:
1 <START>
v(val a = Delegate())
mark(Delegate())
call(Delegate, <init>) -> <v0>
call(Delegate(), <init>) -> <v0>
w(a|<v0>)
L1:
<END> NEXT:[<SINK>]
<END> NEXT:[<SINK>]
error:
<ERROR> PREV:[]
<ERROR> PREV:[]
sink:
<SINK> PREV:[<ERROR>, <END>]
<SINK> PREV:[<ERROR>, <END>]
=====================
== b ==
val b by a
@@ -7,14 +7,14 @@ class Delegate {
== get ==
fun get(_this: Any, p: PropertyMetadata): Int = 0
---------------------
<v0>: {<: Any} NEW: magic(_this: Any) -> <v0>
<v0>: {<: Any} NEW: magic(_this: Any) -> <v0>
<v1>: {<: PropertyMetadata} NEW: magic(p: PropertyMetadata) -> <v1>
0 <v2>: Int NEW: r(0) -> <v2>
0 <v2>: Int NEW: r(0) -> <v2>
=====================
== a ==
val a = Delegate()
---------------------
Delegate() <v0>: Delegate NEW: call(Delegate, <init>) -> <v0>
Delegate() <v0>: Delegate NEW: call(Delegate(), <init>) -> <v0>
=====================
== b ==
val b by a
@@ -8,7 +8,7 @@ class C {
}
}
---------------------
<v0>: C NEW: magic($a) -> <v0>
<v0>: C NEW: magic($a) -> <v0>
$a <v1>: * NEW: r($a|<v0>) -> <v1>
{ $a } <v1>: * COPY
=====================
{ $a } <v1>: * COPY
=====================
@@ -25,11 +25,11 @@ L0:
r(this) -> <v1>
r($bar|<v1>) -> <v2>
mark("foo" + this.$bar)
call(+, plus|<v0>, <v2>) -> <v3>
call("foo" + this.$bar, plus|<v0>, <v2>) -> <v3>
L1:
<END> NEXT:[<SINK>]
<END> NEXT:[<SINK>]
error:
<ERROR> PREV:[]
<ERROR> PREV:[]
sink:
<SINK> PREV:[<ERROR>, <END>]
<SINK> PREV:[<ERROR>, <END>]
=====================
@@ -8,10 +8,10 @@ abstract class Bar {
== foo ==
fun foo() = "foo" + this.$bar
---------------------
"foo" <v0>: String NEW: r("foo") -> <v0>
this <v1>: {<: Bar} COPY
this <v1>: {<: Bar} NEW: r(this) -> <v1>
$bar <v2>: {<: Any?} NEW: r($bar|<v1>) -> <v2>
this.$bar <v2>: {<: Any?} COPY
"foo" + this.$bar <v3>: String NEW: call(+, plus|<v0>, <v2>) -> <v3>
=====================
"foo" <v0>: String NEW: r("foo") -> <v0>
this <v1>: {<: Bar} COPY
this <v1>: {<: Bar} NEW: r(this) -> <v1>
$bar <v2>: {<: Any?} NEW: r($bar|<v1>) -> <v2>
this.$bar <v2>: {<: Any?} COPY
"foo" + this.$bar <v3>: String NEW: call("foo" + this.$bar, plus|<v0>, <v2>) -> <v3>
=====================