diff --git a/runtime/src/main/cpp/Operator.cpp b/runtime/src/main/cpp/Operator.cpp index 9f2db476b1e..5d051712f20 100644 --- a/runtime/src/main/cpp/Operator.cpp +++ b/runtime/src/main/cpp/Operator.cpp @@ -110,11 +110,6 @@ ALWAYS_INLINE KByte Kotlin_Byte_dec (KByte a ) { return ALWAYS_INLINE KInt Kotlin_Byte_unaryPlus (KByte a ) { return +a; } ALWAYS_INLINE KInt Kotlin_Byte_unaryMinus (KByte a ) { return -a; } -ALWAYS_INLINE KByte Kotlin_Byte_or_Byte (KByte a, KByte b) { return a | b; } -ALWAYS_INLINE KByte Kotlin_Byte_xor_Byte (KByte a, KByte b) { return a ^ b; } -ALWAYS_INLINE KByte Kotlin_Byte_and_Byte (KByte a, KByte b) { return a & b; } -ALWAYS_INLINE KByte Kotlin_Byte_inv (KByte a ) { return ~a; } - ALWAYS_INLINE KByte Kotlin_Byte_toByte (KByte a ) { return a; } ALWAYS_INLINE KChar Kotlin_Byte_toChar (KByte a ) { return a; } ALWAYS_INLINE KShort Kotlin_Byte_toShort (KByte a ) { return a; } @@ -172,11 +167,6 @@ ALWAYS_INLINE KShort Kotlin_Short_dec (KShort a ) { retu ALWAYS_INLINE KInt Kotlin_Short_unaryPlus (KShort a ) { return +a; } ALWAYS_INLINE KInt Kotlin_Short_unaryMinus (KShort a ) { return -a; } -ALWAYS_INLINE KShort Kotlin_Short_or_Short (KShort a, KShort b) { return a | b; } -ALWAYS_INLINE KShort Kotlin_Short_xor_Short (KShort a, KShort b) { return a ^ b; } -ALWAYS_INLINE KShort Kotlin_Short_and_Short (KShort a, KShort b) { return a & b; } -ALWAYS_INLINE KShort Kotlin_Short_inv (KShort a ) { return ~a; } - ALWAYS_INLINE KByte Kotlin_Short_toByte (KShort a ) { return a; } ALWAYS_INLINE KChar Kotlin_Short_toChar (KShort a ) { return a; } ALWAYS_INLINE KShort Kotlin_Short_toShort (KShort a ) { return a; } diff --git a/runtime/src/main/kotlin/kotlin/Arrays.kt b/runtime/src/main/kotlin/kotlin/Arrays.kt index c253cb13a4c..f3b0fdabca0 100644 --- a/runtime/src/main/kotlin/kotlin/Arrays.kt +++ b/runtime/src/main/kotlin/kotlin/Arrays.kt @@ -429,6 +429,13 @@ private class BooleanIteratorImpl(val collection: BooleanArray) : BooleanIterato } } +/** + * Returns an array of objects of the given type with the given [size], initialized with null values. + */ +public inline fun arrayOfNulls(size: Int): Array = + @Suppress("NON_PUBLIC_CALL_FROM_PUBLIC_INLINE") + arrayOfUninitializedElements(size) + /** * Returns an array containing the specified elements. */ diff --git a/runtime/src/main/kotlin/kotlin/Primitives.kt b/runtime/src/main/kotlin/kotlin/Primitives.kt index 361779688af..ae311cb22f2 100644 --- a/runtime/src/main/kotlin/kotlin/Primitives.kt +++ b/runtime/src/main/kotlin/kotlin/Primitives.kt @@ -186,19 +186,6 @@ public final class Byte : Number(), Comparable { @SymbolName("Kotlin_Byte_unaryMinus") external public operator fun unaryMinus(): Int - /** Performs a bitwise AND operation between the two values. */ - @SymbolName("Kotlin_Byte_and_Byte") - external public infix fun and(other: Byte): Byte - /** Performs a bitwise OR operation between the two values. */ - @SymbolName("Kotlin_Byte_or_Byte") - external public infix fun or(other: Byte): Byte - /** Performs a bitwise XOR operation between the two values. */ - @SymbolName("Kotlin_Byte_xor_Byte") - external public infix fun xor(other: Byte): Byte - /** Inverts the bits in this value/ */ - @SymbolName("Kotlin_Byte_inv") - external public fun inv(): Byte - @SymbolName("Kotlin_Byte_toByte") external public override fun toByte(): Byte @SymbolName("Kotlin_Byte_toChar") @@ -413,19 +400,6 @@ public final class Short : Number(), Comparable { @SymbolName("Kotlin_Short_unaryMinus") external public operator fun unaryMinus(): Int - /** Performs a bitwise AND operation between the two values. */ - @SymbolName("Kotlin_Short_and_Short") - external public infix fun and(other: Short): Short - /** Performs a bitwise OR operation between the two values. */ - @SymbolName("Kotlin_Short_or_Short") - external public infix fun or(other: Short): Short - /** Performs a bitwise XOR operation between the two values. */ - @SymbolName("Kotlin_Short_xor_Short") - external public infix fun xor(other: Short): Short - /** Inverts the bits in this value/ */ - @SymbolName("Kotlin_Short_inv") - external public fun inv(): Short - /** Creates a range from this value to the specified [other] value. */ public operator fun rangeTo(other: Byte): IntRange { return IntRange(this.toInt(), other.toInt()) diff --git a/runtime/src/main/kotlin/kotlin/collections/Arrays.kt b/runtime/src/main/kotlin/kotlin/collections/Arrays.kt index 61a3b2904f7..430ad8884ce 100644 --- a/runtime/src/main/kotlin/kotlin/collections/Arrays.kt +++ b/runtime/src/main/kotlin/kotlin/collections/Arrays.kt @@ -1016,14 +1016,6 @@ public actual fun CharArray.contentHashCode(): Int { return result } -// From Library.kt. -/** - * Returns an array of objects of the given type with the given [size], initialized with null values. - */ -public inline fun arrayOfNulls(size: Int): Array = - @Suppress("NON_PUBLIC_CALL_FROM_PUBLIC_INLINE") - arrayOfUninitializedElements(size) - // From JS collections.kt. internal actual fun arrayOfNulls(reference: Array, size: Int): Array { return arrayOfNulls(size) as Array