WASM: Don't special case string equality, it now goes through normal .equals method
This commit is contained in:
committed by
TeamCityServer
parent
d90e3618f9
commit
fc0ae851a2
@@ -79,8 +79,7 @@ class WasmSymbols(
|
||||
context.irBuiltIns.shortType to getInternalFunction("wasm_i32_eq"),
|
||||
context.irBuiltIns.charType to getInternalFunction("wasm_i32_eq"),
|
||||
context.irBuiltIns.intType to getInternalFunction("wasm_i32_eq"),
|
||||
context.irBuiltIns.longType to getInternalFunction("wasm_i64_eq"),
|
||||
context.irBuiltIns.stringType to getFunction("wasm_string_eq", builtInsPackage)
|
||||
context.irBuiltIns.longType to getInternalFunction("wasm_i64_eq")
|
||||
)
|
||||
|
||||
val floatEqualityFunctions = mapOf(
|
||||
|
||||
@@ -54,8 +54,6 @@ internal fun stringLiteral(startAddr: Int, length: Int) = String(unsafeRawMemory
|
||||
|
||||
internal fun charToString(c: Char): String = String(charArrayOf(c))
|
||||
|
||||
internal fun wasm_string_eq(x: String, y: String): Boolean = x.equals(y)
|
||||
|
||||
//@JsFun("(it, other) => it + String(other)")
|
||||
//private fun stringPlusImpl(it: String, other: String): String =
|
||||
// implementedAsIntrinsic
|
||||
|
||||
Reference in New Issue
Block a user