From 66931d810d18437435342784451e592a20c4a71d Mon Sep 17 00:00:00 2001 From: Volker Berlin Date: Fri, 11 May 2018 17:00:34 +0200 Subject: [PATCH] add TEE_LOCAL, GET_GLOBAL, SET_GLOBAL --- .../binary/InstructionOpcodes.java | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src/de/inetsoftware/jwebassembly/binary/InstructionOpcodes.java b/src/de/inetsoftware/jwebassembly/binary/InstructionOpcodes.java index 99acef0..a877988 100644 --- a/src/de/inetsoftware/jwebassembly/binary/InstructionOpcodes.java +++ b/src/de/inetsoftware/jwebassembly/binary/InstructionOpcodes.java @@ -78,17 +78,23 @@ interface InstructionOpcodes { // === Variable access =========== - static final int GET_LOCAL = 0x20; + static final int GET_LOCAL = 0x20; - static final int SET_LOCAL = 0x21; + static final int SET_LOCAL = 0x21; - static final int I32_CONST = 0x41; + static final int TEE_LOCAL = 0x22; - static final int I64_CONST = 0x42; + static final int GET_GLOBAL = 0x23; - static final int F32_CONST = 0x43; + static final int SET_GLOBAL = 0x24; - static final int F64_CONST = 0x44; + static final int I32_CONST = 0x41; + + static final int I64_CONST = 0x42; + + static final int F32_CONST = 0x43; + + static final int F64_CONST = 0x44; // === numerical operations ======