replace anyref temporary with i64

This commit is contained in:
Volker Berlin 2018-12-12 22:44:05 +01:00
parent 02b94bb768
commit d7b283e73a
2 changed files with 4 additions and 2 deletions

View File

@ -255,7 +255,7 @@ class JavaMethodWasmCodeBuilder extends WasmCodeBuilder {
case f64:
addCallInstruction( new SyntheticMember( "de/inetsoftware/jwebassembly/module/NativeHelperCode", "dup_f64", "(D)DD" ), codePos );
break OP;
case anyref:
case anyref_:
addCallInstruction( new SyntheticMember( "de/inetsoftware/jwebassembly/module/NativeHelperCode", "dup_anyref", "(Ljava.lang.Object;)Ljava.lang.Object;Ljava.lang.Object;" ), codePos );
break OP;
}

View File

@ -24,13 +24,15 @@ public enum ValueType implements StorageType {
f32(-0x03),
f64(-0x04),
anyfunc(-0x10),
anyref(-0x11),
anyref_(-0x11),
except_ref(-0x12),
func(-0x20),
struct(-0x30),
empty(-0x40), // empty block_type
;
public static final ValueType anyref = i64; //TODO remove if anyref is supported
private final int code;
/**