JVM_IR KT-48435 use Java-like counter loop when possible

This commit is contained in:
Dmitry Petrov
2021-08-30 16:05:34 +03:00
committed by TeamCityServer
parent d4c91c96d3
commit 1c1b9547c1
20 changed files with 295 additions and 26 deletions
@@ -9,7 +9,4 @@ abstract class A8 : MutableCollection<Any> {
// 0 INSTANCEOF
/* Only 1 null check should be within the contains method */
// JVM_TEMPLATES:
// 1 IFNULL
// JVM_IR_TEMPLATES:
// 1 IFNONNULL
@@ -9,7 +9,4 @@ abstract class A<T : Any> : MutableCollection<T> {
// 0 INSTANCEOF
/* Only 1 null check should be within the contains method (because T is not nullable) */
// JVM_TEMPLATES:
// 1 IFNULL
// JVM_IR_TEMPLATES:
// 1 IFNONNULL