JVM IR: Optimize delegated properties (KT-36814)

This commit is contained in:
Steven Schäfer
2020-07-24 16:27:03 +02:00
committed by Dmitry Petrov
parent 8724efbe8a
commit b15e32936e
6 changed files with 336 additions and 15 deletions
@@ -1,6 +1,3 @@
// IGNORE_BACKEND: JVM_IR
// TODO KT-36814 Support optimized delegated properties in JVM_IR
class Provider<T>(val _value: T) {
inline operator fun provideDelegate(thisRef: Any?, kProperty: Any?) =
Mut(_value)
@@ -1,6 +1,3 @@
// IGNORE_BACKEND: JVM_IR
// TODO KT-36814 Support optimized delegated properties in JVM_IR
// MODULE: lib
// FILE: lib.kt
package lib
@@ -1,5 +1,3 @@
// IGNORE_BACKEND: JVM_IR
// TODO KT-36814 Support optimized delegated properties in JVM_IR
// WITH_RUNTIME
val topLevelLazyVal by lazy { 1 }
@@ -1,6 +1,3 @@
// IGNORE_BACKEND: JVM_IR
// TODO KT-36814 Support optimized delegated properties in JVM_IR
class Provider<T>(val _value: T) {
inline operator fun provideDelegate(thisRef: Any?, kProperty: Any) =
Mut(_value)