summaryrefslogtreecommitdiff
path: root/src/wasm-binary.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm-binary.h')
-rw-r--r--src/wasm-binary.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/wasm-binary.h b/src/wasm-binary.h
index db2c0d71d..08dafc563 100644
--- a/src/wasm-binary.h
+++ b/src/wasm-binary.h
@@ -237,7 +237,7 @@ enum FunctionEntry {
};
enum ASTNodes {
- MemorySize = 0x3b,
+ CurrentMemory = 0x3b,
GrowMemory = 0x39,
I32Add = 0x40,
I32Sub = 0x41,
@@ -1097,8 +1097,8 @@ public:
void visitHost(Host *curr) {
if (debug) std::cerr << "zz node: Host" << std::endl;
switch (curr->op) {
- case MemorySize: {
- o << int8_t(BinaryConsts::MemorySize);
+ case CurrentMemory: {
+ o << int8_t(BinaryConsts::CurrentMemory);
break;
}
case GrowMemory: {
@@ -1943,8 +1943,8 @@ public:
}
bool maybeVisitImpl(Host *curr, uint8_t code) {
switch (code) {
- case BinaryConsts::MemorySize: {
- curr->op = MemorySize;
+ case BinaryConsts::CurrentMemory: {
+ curr->op = CurrentMemory;
curr->type = i32;
break;
}