[Wasm] Improve class type checks
Use wasm ref.test instad of manual type info linked list traversal
This commit is contained in:
@@ -254,6 +254,8 @@ public external fun wasm_ref_is_null(a: Any?): Boolean
|
||||
@WasmOp(WasmOp.REF_EQ)
|
||||
public external fun wasm_ref_eq(a: Any?, b: Any?): Boolean
|
||||
|
||||
@WasmOp(WasmOp.REF_TEST)
|
||||
public external fun <T> wasm_ref_test(a: Any?): Boolean
|
||||
|
||||
// ---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user