mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-25 23:47:51 +01:00
replace anyref temporary with i64
This commit is contained in:
parent
02b94bb768
commit
d7b283e73a
@ -255,7 +255,7 @@ class JavaMethodWasmCodeBuilder extends WasmCodeBuilder {
|
|||||||
case f64:
|
case f64:
|
||||||
addCallInstruction( new SyntheticMember( "de/inetsoftware/jwebassembly/module/NativeHelperCode", "dup_f64", "(D)DD" ), codePos );
|
addCallInstruction( new SyntheticMember( "de/inetsoftware/jwebassembly/module/NativeHelperCode", "dup_f64", "(D)DD" ), codePos );
|
||||||
break OP;
|
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 );
|
addCallInstruction( new SyntheticMember( "de/inetsoftware/jwebassembly/module/NativeHelperCode", "dup_anyref", "(Ljava.lang.Object;)Ljava.lang.Object;Ljava.lang.Object;" ), codePos );
|
||||||
break OP;
|
break OP;
|
||||||
}
|
}
|
||||||
|
@ -24,13 +24,15 @@ public enum ValueType implements StorageType {
|
|||||||
f32(-0x03),
|
f32(-0x03),
|
||||||
f64(-0x04),
|
f64(-0x04),
|
||||||
anyfunc(-0x10),
|
anyfunc(-0x10),
|
||||||
anyref(-0x11),
|
anyref_(-0x11),
|
||||||
except_ref(-0x12),
|
except_ref(-0x12),
|
||||||
func(-0x20),
|
func(-0x20),
|
||||||
struct(-0x30),
|
struct(-0x30),
|
||||||
empty(-0x40), // empty block_type
|
empty(-0x40), // empty block_type
|
||||||
;
|
;
|
||||||
|
|
||||||
|
public static final ValueType anyref = i64; //TODO remove if anyref is supported
|
||||||
|
|
||||||
private final int code;
|
private final int code;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user