Remove directives that have no effect from bytecode text tests

All bytecode text tests are run with stdlib in the classpath and only
for JVM backend, therefore directives WITH_RUNTIME, TARGET_BACKEND,
IGNORE_BACKEND are not needed
This commit is contained in:
Alexander Udalov
2018-12-18 17:35:14 +01:00
parent 00caa23307
commit f5ff3d2fa9
90 changed files with 86 additions and 227 deletions
@@ -1,5 +1,3 @@
// WITH_RUNTIME
fun test() {
var x = 0
run {
@@ -13,4 +11,4 @@ fun test() {
// 0 NEW
// 0 GETFIELD
// 0 PUTFIELD
// 0 PUTFIELD
@@ -1,5 +1,3 @@
// WITH_RUNTIME
fun test() {
var x = 0
run { ++x }
@@ -7,4 +5,4 @@ fun test() {
// 0 NEW
// 0 GETFIELD
// 0 PUTFIELD
// 0 PUTFIELD
@@ -1,5 +1,3 @@
// WITH_RUNTIME
fun test() {
var x = 0
run {
@@ -12,4 +10,4 @@ fun test() {
// 1 NEW kotlin/jvm/internal/Ref\$IntRef
// 2 GETFIELD kotlin/jvm/internal/Ref\$IntRef\.element
// 2 PUTFIELD kotlin/jvm/internal/Ref\$IntRef\.element
// 2 PUTFIELD kotlin/jvm/internal/Ref\$IntRef\.element
@@ -1,5 +1,3 @@
// WITH_RUNTIME
fun runNoInline(f: () -> Unit) = f()
fun test() {
@@ -9,4 +7,4 @@ fun test() {
// 1 NEW kotlin/jvm/internal/Ref\$IntRef
// 2 GETFIELD kotlin/jvm/internal/Ref\$IntRef\.element
// 2 PUTFIELD kotlin/jvm/internal/Ref\$IntRef\.element
// 2 PUTFIELD kotlin/jvm/internal/Ref\$IntRef\.element
@@ -1,5 +1,3 @@
// WITH_RUNTIME
fun runNoInline(f: () -> Unit) = f()
fun test() {
@@ -17,4 +15,4 @@ fun test() {
// 1 NEW kotlin/jvm/internal/Ref\$IntRef
// 2 GETFIELD kotlin/jvm/internal/Ref\$IntRef\.element
// 2 PUTFIELD kotlin/jvm/internal/Ref\$IntRef\.element
// 2 PUTFIELD kotlin/jvm/internal/Ref\$IntRef\.element
@@ -1,5 +1,3 @@
// WITH_RUNTIME
fun box(): String {
var xl = 0L // Long, size 2
var xi = 0 // Int, size 1
@@ -22,4 +20,4 @@ fun box(): String {
return "OK"
}
// 0 NEW
// 0 NEW
@@ -1,5 +1,3 @@
// WITH_RUNTIME
fun box(): String {
run {
run {
@@ -29,4 +27,4 @@ fun box(): String {
// 0 NEW
// 0 GETFIELD
// 0 PUTFIELD
// 0 PUTFIELD
@@ -1,5 +1,3 @@
// WITH_RUNTIME
fun add(x: Int, y: Int) = x + y
fun test() {
@@ -11,4 +9,4 @@ fun test() {
// 0 NEW
// 0 GETFIELD
// 0 PUTFIELD
// 0 PUTFIELD