[Wasm] Stop using unsigned numbers in ScopedMemoryAllocator

It turned out that using unsigned numbers is heavy both in terms of size and performance.
We can consider switching back (KT-58041) as soon as we implement unsigned numbers and operations using wasm built-in capabilities (KT-58039).
This commit is contained in:
Zalim Bashorov
2023-04-17 15:33:32 +02:00
committed by Space Team
parent c114afb55d
commit 6bfd1e7e9f
5 changed files with 19 additions and 16 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
// TARGET_BACKEND: WASM
// WASM_DCE_EXPECTED_OUTPUT_SIZE: wasm 29_800
// WASM_DCE_EXPECTED_OUTPUT_SIZE: wasm 17_726
// WASM_DCE_EXPECTED_OUTPUT_SIZE: mjs 6_104
// FILE: test.kt
+1 -1
View File
@@ -1,6 +1,6 @@
// TARGET_BACKEND: WASM
// WASM_DCE_EXPECTED_OUTPUT_SIZE: wasm 60_691
// WASM_DCE_EXPECTED_OUTPUT_SIZE: wasm 51_463
// WASM_DCE_EXPECTED_OUTPUT_SIZE: mjs 6_130
fun box(): String {
+1 -1
View File
@@ -1,6 +1,6 @@
// TARGET_BACKEND: WASM
// WASM_DCE_EXPECTED_OUTPUT_SIZE: wasm 31_232
// WASM_DCE_EXPECTED_OUTPUT_SIZE: wasm 19_102
// WASM_DCE_EXPECTED_OUTPUT_SIZE: mjs 6_659
// FILE: test.kt
+1 -1
View File
@@ -1,6 +1,6 @@
// TARGET_BACKEND: WASM
// WASM_DCE_EXPECTED_OUTPUT_SIZE: wasm 29_848
// WASM_DCE_EXPECTED_OUTPUT_SIZE: wasm 17_768
// WASM_DCE_EXPECTED_OUTPUT_SIZE: mjs 5_976
fun box() = "OK"