wasm gc: fix equality checks in records

This commit is contained in:
Alexey Andreev 2024-09-23 20:27:58 +02:00
parent f8022f9465
commit e8c939f40b

View File

@ -56,7 +56,7 @@ public class ObjectMethodsSubstitutor implements BootstrapMethodSubstitutor {
pe.jump(joint);
});
ConditionProducer classCondition = () -> thatVar.isNull()
.or(() -> thatVar.invokeVirtual("getClass", Class.class).isNotSame(pe.constant(type)));
.or(() -> thatVar.invokeSpecial("getClass", Class.class).isNotSame(pe.constant(type)));
pe.when(classCondition).thenDo(() -> {
pe.constant(0).propagateTo(result);
pe.jump(joint);