Fix bytecode tests after new optimizations

- Turn some const conditions into non-const conditions
- Make sure inlined const values are used where required
(otherwise they are eliminated by POP backward propagation)
This commit is contained in:
Dmitry Petrov
2017-05-12 17:27:32 +03:00
parent 2051355d6a
commit 1378b0cf05
22 changed files with 84 additions and 60 deletions

View File

@@ -38,8 +38,10 @@ object KoKobject {
val JvmStaticString: String? = "123"
}
fun Any?.use() {}
fun test() {
"res1: " +
("res1: " +
Integer.MIN_VALUE + " " +
java.lang.Long.MAX_VALUE + " " +
JClass.PrimitiveInt + " " +
@@ -52,7 +54,7 @@ fun test() {
JClass.PrimitiveFloat + " " +
JClass.PrimitiveDouble + " " +
JClass.Str + " " +
JClass.StrNullable
JClass.StrNullable).use()
"res2: " + JClass.BoxedInt
"res3: " + JClass.NonFinal