mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -08:00
wasm gc: fix equality checks in records
This commit is contained in:
parent
f8022f9465
commit
e8c939f40b
|
@ -56,7 +56,7 @@ public class ObjectMethodsSubstitutor implements BootstrapMethodSubstitutor {
|
||||||
pe.jump(joint);
|
pe.jump(joint);
|
||||||
});
|
});
|
||||||
ConditionProducer classCondition = () -> thatVar.isNull()
|
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.when(classCondition).thenDo(() -> {
|
||||||
pe.constant(0).propagateTo(result);
|
pe.constant(0).propagateTo(result);
|
||||||
pe.jump(joint);
|
pe.jump(joint);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user