[K/N] Make Any.equals simpler

This commit is contained in:
Alexander Shabalin
2023-08-16 11:08:48 +02:00
committed by Space Team
parent 27d25b90b1
commit deb13257c2
2 changed files with 1 additions and 7 deletions
@@ -36,11 +36,6 @@ using namespace kotlin;
extern "C" {
// Any.kt
KBoolean Kotlin_Any_equals(KConstRef thiz, KConstRef other) {
return thiz == other;
}
KInt Kotlin_Any_hashCode(KConstRef thiz) {
// NOTE: `Any?.identityHashCode()` is used in Blackhole implementations of both kotlinx-benchmark and
// K/N's own benchmarks. These usages rely on this being an intrinsic property of the object.