From f0f98a3480394495a11d73c74ea81808bea44530 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Mon, 18 Apr 2016 16:00:12 -0700 Subject: update MemorySize => CurrentMemory --- src/wasm-binary.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/wasm-binary.h') 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; } -- cgit v1.2.3