add table instructions

This commit is contained in:
Volker Berlin 2019-11-03 13:38:53 +01:00
parent 672574abd0
commit 4f79782bfe

View File

@ -104,6 +104,10 @@ interface InstructionOpcodes {
static final int GLOBAL_SET = 0x24;
static final int TABLE_GET = 0x25;
static final int TABLE_SET = 0x26;
// === memory operations ===========
static final int I32_LOAD = 0x28;
@ -457,6 +461,14 @@ interface InstructionOpcodes {
static final int I64_TRUNC_SAT_F64_U = 0xFC07;
// === table opcodes ===== https://webassembly.github.io/reference-types/core/binary/instructions.html#table-instructions
static final int TABLE_GROW = 0xFC0F;
static final int TABLE_SIZE = 0xFC10;
static final int TABLE_FILL = 0xFC11;
// === GC opcodes (unofficial, experimental) ===== https://github.com/lars-t-hansen/moz-gc-experiments/blob/master/version2.md
static final int STRUCT_NEW = 0xFC50;