mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-25 07:27:52 +01:00
ref_ne need also the non GC polyfill
This commit is contained in:
parent
82e5f367b8
commit
8fd7ae26f7
@ -395,7 +395,7 @@ public abstract class WasmCodeBuilder {
|
|||||||
protected WasmNumericInstruction addNumericInstruction( @Nullable NumericOperator numOp, @Nullable ValueType valueType, int javaCodePos, int lineNumber ) {
|
protected WasmNumericInstruction addNumericInstruction( @Nullable NumericOperator numOp, @Nullable ValueType valueType, int javaCodePos, int lineNumber ) {
|
||||||
WasmNumericInstruction numeric = new WasmNumericInstruction( numOp, valueType, javaCodePos, lineNumber );
|
WasmNumericInstruction numeric = new WasmNumericInstruction( numOp, valueType, javaCodePos, lineNumber );
|
||||||
instructions.add( numeric );
|
instructions.add( numeric );
|
||||||
if( !options.useGC() && numOp == NumericOperator.ref_eq ) {
|
if( !options.useGC() && options.ref_eq == null && (numOp == NumericOperator.ref_eq || numOp == NumericOperator.ref_ne ) ) {
|
||||||
functions.markAsNeeded( options.ref_eq = getNonGC( "ref_eq", lineNumber ) );
|
functions.markAsNeeded( options.ref_eq = getNonGC( "ref_eq", lineNumber ) );
|
||||||
}
|
}
|
||||||
return numeric;
|
return numeric;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user