Rename anyfunc -> funcref

This commit is contained in:
Volker Berlin 2019-11-02 12:11:10 +01:00
parent 5e880bab5b
commit 2efe7768e2
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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