rename GET/SET_GLOBAL --> GOLBAL_GET/SET

This commit is contained in:
Volker Berlin 2019-05-16 21:38:51 +02:00
parent 8bbaae43e8
commit 5691446195
2 changed files with 3 additions and 3 deletions

View File

@ -621,7 +621,7 @@ public class BinaryModuleWriter extends ModuleWriter implements InstructionOpcod
var.mutability = true;
globals.put( name.fullName, var );
}
int op = load ? GET_GLOBAL : SET_GLOBAL;
int op = load ? GLOBAL_GET : GLOBAL_SET;
codeStream.writeOpCode( op );
codeStream.writeVaruint32( var.id );
}

View File

@ -100,9 +100,9 @@ interface InstructionOpcodes {
static final int LOCAL_TEE = 0x22;
static final int GET_GLOBAL = 0x23;
static final int GLOBAL_GET = 0x23;
static final int SET_GLOBAL = 0x24;
static final int GLOBAL_SET = 0x24;
// === memory operations ===========