mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-15 02:44:47 +01:00
fix non gc array operations
This commit is contained in:
parent
128ac19242
commit
ea2a179161
@ -636,8 +636,8 @@ public abstract class WasmCodeBuilder {
|
||||
if( options.useGC() ) {
|
||||
instructions.add( new WasmArrayInstruction( op, type, types, javaCodePos, lineNumber ) );
|
||||
} else {
|
||||
if( type.getCode() >= 0 ) {
|
||||
type = ValueType.anyref;
|
||||
if( type.getCode() >= 0 || type.getCode() == ValueType.anyref.getCode() ) {
|
||||
type = ValueType.anyref; // handle all not native types as anyref
|
||||
}
|
||||
String api = "array_" + op.toString().toLowerCase() + "_" + type;
|
||||
FunctionName name = getNonGC( api, lineNumber );
|
||||
|
Loading…
x
Reference in New Issue
Block a user