[Wasm] Introducing private identityHashCode shared between Any's hashCode and toString

It splits the dependency of toString from hashCode that prevents keeping hashCode when toString is used.
This commit is contained in:
Zalim Bashorov
2023-03-28 01:30:03 +02:00
parent 6e3eef7a88
commit 2ef47901d0
5 changed files with 16 additions and 9 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
// TARGET_BACKEND: WASM
// WASM_DCE_EXPECTED_OUTPUT_SIZE: wasm 146_294
// WASM_DCE_EXPECTED_OUTPUT_SIZE: mjs 8_247
// WASM_DCE_EXPECTED_OUTPUT_SIZE: wasm 139_730
// WASM_DCE_EXPECTED_OUTPUT_SIZE: mjs 6_629
// FILE: test.kt