JVM IR: prevent behavior change with operator dot calls on literals

#KT-42321 Fixed
This commit is contained in:
Alexander Udalov
2021-02-25 20:20:03 +01:00
parent c7498dd74d
commit bf844aa8e4
22 changed files with 920 additions and 50 deletions
@@ -5,7 +5,6 @@
package org.jetbrains.kotlin.ir.backend.js.utils
import org.jetbrains.kotlin.name.Name
import org.jetbrains.kotlin.util.OperatorNameConventions
object OperatorNames {
@@ -21,12 +20,12 @@ object OperatorNames {
val AND = OperatorNameConventions.AND
val OR = OperatorNameConventions.OR
val XOR = Name.identifier("xor")
val INV = Name.identifier("inv")
val XOR = OperatorNameConventions.XOR
val INV = OperatorNameConventions.INV
val SHL = Name.identifier("shl")
val SHR = Name.identifier("shr")
val SHRU = Name.identifier("ushr")
val SHL = OperatorNameConventions.SHL
val SHR = OperatorNameConventions.SHR
val SHRU = OperatorNameConventions.USHR
val NOT = OperatorNameConventions.NOT
@@ -37,4 +36,4 @@ object OperatorNames {
val BINARY = setOf(ADD, SUB, MUL, DIV, MOD, REM, AND, OR, XOR, SHL, SHR, SHRU)
val UNARY = setOf(UNARY_PLUS, UNARY_MINUS, INV, NOT, INC, DEC)
val ALL = BINARY + UNARY
}
}