[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,6 +1,6 @@
// TARGET_BACKEND: WASM
// WASM_DCE_EXPECTED_OUTPUT_SIZE: wasm 146_345
// WASM_DCE_EXPECTED_OUTPUT_SIZE: mjs 8_119
// WASM_DCE_EXPECTED_OUTPUT_SIZE: wasm 139_781
// WASM_DCE_EXPECTED_OUTPUT_SIZE: mjs 6_501
fun box() = "OK"