[JS BE] Implement accessor inlining optimization (WIP)

- enable constant folding
This commit is contained in:
Roman Artemev
2019-12-07 02:02:09 +03:00
committed by romanart
parent 9871f8c579
commit fb3bd8a9ac
5 changed files with 155 additions and 5 deletions
+1
View File
@@ -1,6 +1,7 @@
// IGNORE_BACKEND_FIR: JVM_IR
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
// IGNORE_BACKEND: JS_IR
fun box(): String {
if (239.toByte().toString() != (239.toByte() as Byte?).toString()) return "byte failed"
@@ -1,5 +1,3 @@
// IGNORE_BACKEND: JS_IR
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
class A() {