mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-25 07:27:52 +01:00
rename GET/SET_GLOBAL --> GOLBAL_GET/SET
This commit is contained in:
parent
8bbaae43e8
commit
5691446195
@ -621,7 +621,7 @@ public class BinaryModuleWriter extends ModuleWriter implements InstructionOpcod
|
|||||||
var.mutability = true;
|
var.mutability = true;
|
||||||
globals.put( name.fullName, var );
|
globals.put( name.fullName, var );
|
||||||
}
|
}
|
||||||
int op = load ? GET_GLOBAL : SET_GLOBAL;
|
int op = load ? GLOBAL_GET : GLOBAL_SET;
|
||||||
codeStream.writeOpCode( op );
|
codeStream.writeOpCode( op );
|
||||||
codeStream.writeVaruint32( var.id );
|
codeStream.writeVaruint32( var.id );
|
||||||
}
|
}
|
||||||
|
@ -100,9 +100,9 @@ interface InstructionOpcodes {
|
|||||||
|
|
||||||
static final int LOCAL_TEE = 0x22;
|
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 ===========
|
// === memory operations ===========
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user