diff --git a/compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/interpreter/builtins/IrBuiltInsMapGenerated.kt b/compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/interpreter/builtins/IrBuiltInsMapGenerated.kt index a62933f579c..24d60188a46 100644 --- a/compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/interpreter/builtins/IrBuiltInsMapGenerated.kt +++ b/compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/interpreter/builtins/IrBuiltInsMapGenerated.kt @@ -22,7 +22,8 @@ import org.jetbrains.kotlin.backend.common.interpreter.stack.* val unaryFunctions = mapOf>( unaryOperation("not", "Boolean") { a -> a.not() }, - unaryOperation("toString", "Boolean") { a -> a.toString() }, + unaryOperation("dec", "Char") { a -> a.dec() }, + unaryOperation("inc", "Char") { a -> a.inc() }, unaryOperation("toByte", "Char") { a -> a.toByte() }, unaryOperation("toChar", "Char") { a -> a.toChar() }, unaryOperation("toDouble", "Char") { a -> a.toDouble() }, @@ -30,7 +31,8 @@ val unaryFunctions = mapOf>( unaryOperation("toInt", "Char") { a -> a.toInt() }, unaryOperation("toLong", "Char") { a -> a.toLong() }, unaryOperation("toShort", "Char") { a -> a.toShort() }, - unaryOperation("toString", "Char") { a -> a.toString() }, + unaryOperation("dec", "Byte") { a -> a.dec() }, + unaryOperation("inc", "Byte") { a -> a.inc() }, unaryOperation("toByte", "Byte") { a -> a.toByte() }, unaryOperation("toChar", "Byte") { a -> a.toChar() }, unaryOperation("toDouble", "Byte") { a -> a.toDouble() }, @@ -38,9 +40,10 @@ val unaryFunctions = mapOf>( unaryOperation("toInt", "Byte") { a -> a.toInt() }, unaryOperation("toLong", "Byte") { a -> a.toLong() }, unaryOperation("toShort", "Byte") { a -> a.toShort() }, - unaryOperation("toString", "Byte") { a -> a.toString() }, unaryOperation("unaryMinus", "Byte") { a -> a.unaryMinus() }, unaryOperation("unaryPlus", "Byte") { a -> a.unaryPlus() }, + unaryOperation("dec", "Short") { a -> a.dec() }, + unaryOperation("inc", "Short") { a -> a.inc() }, unaryOperation("toByte", "Short") { a -> a.toByte() }, unaryOperation("toChar", "Short") { a -> a.toChar() }, unaryOperation("toDouble", "Short") { a -> a.toDouble() }, @@ -48,9 +51,10 @@ val unaryFunctions = mapOf>( unaryOperation("toInt", "Short") { a -> a.toInt() }, unaryOperation("toLong", "Short") { a -> a.toLong() }, unaryOperation("toShort", "Short") { a -> a.toShort() }, - unaryOperation("toString", "Short") { a -> a.toString() }, unaryOperation("unaryMinus", "Short") { a -> a.unaryMinus() }, unaryOperation("unaryPlus", "Short") { a -> a.unaryPlus() }, + unaryOperation("dec", "Int") { a -> a.dec() }, + unaryOperation("inc", "Int") { a -> a.inc() }, unaryOperation("inv", "Int") { a -> a.inv() }, unaryOperation("toByte", "Int") { a -> a.toByte() }, unaryOperation("toChar", "Int") { a -> a.toChar() }, @@ -59,9 +63,10 @@ val unaryFunctions = mapOf>( unaryOperation("toInt", "Int") { a -> a.toInt() }, unaryOperation("toLong", "Int") { a -> a.toLong() }, unaryOperation("toShort", "Int") { a -> a.toShort() }, - unaryOperation("toString", "Int") { a -> a.toString() }, unaryOperation("unaryMinus", "Int") { a -> a.unaryMinus() }, unaryOperation("unaryPlus", "Int") { a -> a.unaryPlus() }, + unaryOperation("dec", "Float") { a -> a.dec() }, + unaryOperation("inc", "Float") { a -> a.inc() }, unaryOperation("toByte", "Float") { a -> a.toByte() }, unaryOperation("toChar", "Float") { a -> a.toChar() }, unaryOperation("toDouble", "Float") { a -> a.toDouble() }, @@ -69,9 +74,10 @@ val unaryFunctions = mapOf>( unaryOperation("toInt", "Float") { a -> a.toInt() }, unaryOperation("toLong", "Float") { a -> a.toLong() }, unaryOperation("toShort", "Float") { a -> a.toShort() }, - unaryOperation("toString", "Float") { a -> a.toString() }, unaryOperation("unaryMinus", "Float") { a -> a.unaryMinus() }, unaryOperation("unaryPlus", "Float") { a -> a.unaryPlus() }, + unaryOperation("dec", "Long") { a -> a.dec() }, + unaryOperation("inc", "Long") { a -> a.inc() }, unaryOperation("inv", "Long") { a -> a.inv() }, unaryOperation("toByte", "Long") { a -> a.toByte() }, unaryOperation("toChar", "Long") { a -> a.toChar() }, @@ -80,9 +86,10 @@ val unaryFunctions = mapOf>( unaryOperation("toInt", "Long") { a -> a.toInt() }, unaryOperation("toLong", "Long") { a -> a.toLong() }, unaryOperation("toShort", "Long") { a -> a.toShort() }, - unaryOperation("toString", "Long") { a -> a.toString() }, unaryOperation("unaryMinus", "Long") { a -> a.unaryMinus() }, unaryOperation("unaryPlus", "Long") { a -> a.unaryPlus() }, + unaryOperation("dec", "Double") { a -> a.dec() }, + unaryOperation("inc", "Double") { a -> a.inc() }, unaryOperation("toByte", "Double") { a -> a.toByte() }, unaryOperation("toChar", "Double") { a -> a.toChar() }, unaryOperation("toDouble", "Double") { a -> a.toDouble() }, @@ -90,11 +97,9 @@ val unaryFunctions = mapOf>( unaryOperation("toInt", "Double") { a -> a.toInt() }, unaryOperation("toLong", "Double") { a -> a.toLong() }, unaryOperation("toShort", "Double") { a -> a.toShort() }, - unaryOperation("toString", "Double") { a -> a.toString() }, unaryOperation("unaryMinus", "Double") { a -> a.unaryMinus() }, unaryOperation("unaryPlus", "Double") { a -> a.unaryPlus() }, unaryOperation("length", "String") { a -> a.length }, - unaryOperation("toString", "String") { a -> a.toString() }, unaryOperation("size", "BooleanArray") { a -> a.size }, unaryOperation("iterator", "BooleanArray") { a -> a.iterator() }, unaryOperation("size", "CharArray") { a -> a.size }, @@ -123,14 +128,13 @@ val unaryFunctions = mapOf>( val binaryFunctions = mapOf>( binaryOperation("and", "Boolean", "Boolean") { a, b -> a.and(b) }, binaryOperation("compareTo", "Boolean", "Boolean") { a, b -> a.compareTo(b) }, - binaryOperation("equals", "Boolean", "Any?") { a, b -> a.equals(b) }, binaryOperation("or", "Boolean", "Boolean") { a, b -> a.or(b) }, binaryOperation("xor", "Boolean", "Boolean") { a, b -> a.xor(b) }, binaryOperation("compareTo", "Char", "Char") { a, b -> a.compareTo(b) }, - binaryOperation("equals", "Char", "Any?") { a, b -> a.equals(b) }, binaryOperation("minus", "Char", "Char") { a, b -> a.minus(b) }, binaryOperation("minus", "Char", "Int") { a, b -> a.minus(b) }, binaryOperation("plus", "Char", "Int") { a, b -> a.plus(b) }, + binaryOperation("rangeTo", "Char", "Char") { a, b -> a.rangeTo(b) }, binaryOperation("compareTo", "Byte", "Byte") { a, b -> a.compareTo(b) }, binaryOperation("compareTo", "Byte", "Double") { a, b -> a.compareTo(b) }, binaryOperation("compareTo", "Byte", "Float") { a, b -> a.compareTo(b) }, @@ -143,7 +147,6 @@ val binaryFunctions = mapOf>( binaryOperation("div", "Byte", "Int") { a, b -> a.div(b) }, binaryOperation("div", "Byte", "Long") { a, b -> a.div(b) }, binaryOperation("div", "Byte", "Short") { a, b -> a.div(b) }, - binaryOperation("equals", "Byte", "Any?") { a, b -> a.equals(b) }, binaryOperation("minus", "Byte", "Byte") { a, b -> a.minus(b) }, binaryOperation("minus", "Byte", "Double") { a, b -> a.minus(b) }, binaryOperation("minus", "Byte", "Float") { a, b -> a.minus(b) }, @@ -184,7 +187,6 @@ val binaryFunctions = mapOf>( binaryOperation("div", "Short", "Int") { a, b -> a.div(b) }, binaryOperation("div", "Short", "Long") { a, b -> a.div(b) }, binaryOperation("div", "Short", "Short") { a, b -> a.div(b) }, - binaryOperation("equals", "Short", "Any?") { a, b -> a.equals(b) }, binaryOperation("minus", "Short", "Byte") { a, b -> a.minus(b) }, binaryOperation("minus", "Short", "Double") { a, b -> a.minus(b) }, binaryOperation("minus", "Short", "Float") { a, b -> a.minus(b) }, @@ -226,7 +228,6 @@ val binaryFunctions = mapOf>( binaryOperation("div", "Int", "Int") { a, b -> a.div(b) }, binaryOperation("div", "Int", "Long") { a, b -> a.div(b) }, binaryOperation("div", "Int", "Short") { a, b -> a.div(b) }, - binaryOperation("equals", "Int", "Any?") { a, b -> a.equals(b) }, binaryOperation("minus", "Int", "Byte") { a, b -> a.minus(b) }, binaryOperation("minus", "Int", "Double") { a, b -> a.minus(b) }, binaryOperation("minus", "Int", "Float") { a, b -> a.minus(b) }, @@ -272,7 +273,6 @@ val binaryFunctions = mapOf>( binaryOperation("div", "Float", "Int") { a, b -> a.div(b) }, binaryOperation("div", "Float", "Long") { a, b -> a.div(b) }, binaryOperation("div", "Float", "Short") { a, b -> a.div(b) }, - binaryOperation("equals", "Float", "Any?") { a, b -> a.equals(b) }, binaryOperation("minus", "Float", "Byte") { a, b -> a.minus(b) }, binaryOperation("minus", "Float", "Double") { a, b -> a.minus(b) }, binaryOperation("minus", "Float", "Float") { a, b -> a.minus(b) }, @@ -310,7 +310,6 @@ val binaryFunctions = mapOf>( binaryOperation("div", "Long", "Int") { a, b -> a.div(b) }, binaryOperation("div", "Long", "Long") { a, b -> a.div(b) }, binaryOperation("div", "Long", "Short") { a, b -> a.div(b) }, - binaryOperation("equals", "Long", "Any?") { a, b -> a.equals(b) }, binaryOperation("minus", "Long", "Byte") { a, b -> a.minus(b) }, binaryOperation("minus", "Long", "Double") { a, b -> a.minus(b) }, binaryOperation("minus", "Long", "Float") { a, b -> a.minus(b) }, @@ -356,7 +355,6 @@ val binaryFunctions = mapOf>( binaryOperation("div", "Double", "Int") { a, b -> a.div(b) }, binaryOperation("div", "Double", "Long") { a, b -> a.div(b) }, binaryOperation("div", "Double", "Short") { a, b -> a.div(b) }, - binaryOperation("equals", "Double", "Any?") { a, b -> a.equals(b) }, binaryOperation("minus", "Double", "Byte") { a, b -> a.minus(b) }, binaryOperation("minus", "Double", "Double") { a, b -> a.minus(b) }, binaryOperation("minus", "Double", "Float") { a, b -> a.minus(b) }, @@ -382,7 +380,6 @@ val binaryFunctions = mapOf>( binaryOperation("times", "Double", "Long") { a, b -> a.times(b) }, binaryOperation("times", "Double", "Short") { a, b -> a.times(b) }, binaryOperation("compareTo", "String", "String") { a, b -> a.compareTo(b) }, - binaryOperation("equals", "String", "Any?") { a, b -> a.equals(b) }, binaryOperation("get", "String", "Int") { a, b -> a.get(b) }, binaryOperation("plus", "String", "Any?") { a, b -> a.plus(b) }, binaryOperation("get", "BooleanArray", "Int") { a, b -> a.get(b) },