mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-15 10:44:47 +01:00
Rename anyfunc -> funcref
This commit is contained in:
parent
5e880bab5b
commit
2efe7768e2
@ -178,7 +178,7 @@ public class BinaryModuleWriter extends ModuleWriter implements InstructionOpcod
|
||||
int count = 1;
|
||||
stream.writeVaruint32( count ); // count of tables
|
||||
for( int i = 0; i < count; i++ ) {
|
||||
stream.writeValueType( ValueType.anyfunc ); // the type of elements
|
||||
stream.writeValueType( ValueType.funcref ); // the type of elements
|
||||
stream.writeVaruint32( 1 ); // flags; 1-maximum is available, 0-no maximum value available
|
||||
stream.writeVaruint32( elemCount ); // initial length
|
||||
stream.writeVaruint32( elemCount ); // maximum length
|
||||
|
@ -25,7 +25,7 @@ public enum ValueType implements AnyType {
|
||||
f64(-0x04),
|
||||
i8(-0x05), //TODO dummy value for https://github.com/WebAssembly/gc
|
||||
i16(-0x06), //TODO dummy value for https://github.com/WebAssembly/gc
|
||||
anyfunc(-0x10),
|
||||
funcref(-0x10),
|
||||
anyref(-0x11),
|
||||
ref_type(-0x12 ), // 0x6E https://github.com/lars-t-hansen/moz-gc-experiments/blob/master/version2.md
|
||||
exnref(-0x18), // https://github.com/WebAssembly/exception-handling/blob/master/proposals/Exceptions.md
|
||||
|
Loading…
x
Reference in New Issue
Block a user