summaryrefslogtreecommitdiff
path: root/src/wasm-common.h
diff options
context:
space:
mode:
authorBen Smith <binji@chromium.org>2016-04-25 14:02:22 -0700
committerBen Smith <binji@chromium.org>2016-04-28 23:47:03 -0700
commitbcc7c471e160a6648abf61b1860072b25a9bfbc6 (patch)
treeb929dfeb08a682b08945c6447b3f825295e824bf /src/wasm-common.h
parent4b65b16cba2eb3aa173848377079c0523c9c896f (diff)
downloadwabt-bcc7c471e160a6648abf61b1860072b25a9bfbc6.tar.gz
wabt-bcc7c471e160a6648abf61b1860072b25a9bfbc6.tar.bz2
wabt-bcc7c471e160a6648abf61b1860072b25a9bfbc6.zip
rename memory_size -> current_memory
* current_memory and grow_memory return page size, not byte size * also update testsuite, which fixes a couple of spec tests * disable d8/spec tests (in a hacky way), because the binary_0xb v8 support isn't landed yet, so we can't easily test it
Diffstat (limited to 'src/wasm-common.h')
-rw-r--r--src/wasm-common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm-common.h b/src/wasm-common.h
index 3bc5f227..cf5ce29c 100644
--- a/src/wasm-common.h
+++ b/src/wasm-common.h
@@ -189,7 +189,7 @@ enum { WASM_USE_NATURAL_ALIGNMENT = 0xFFFFFFFF };
V(I64, I32, I64, 8, 0x34, I64_STORE, "i64.store") \
V(F32, I32, F32, 4, 0x35, F32_STORE, "f32.store") \
V(F64, I32, F64, 8, 0x36, F64_STORE, "f64.store") \
- V(I32, ___, ___, 0, 0x3b, MEMORY_SIZE, "memory_size") \
+ V(I32, ___, ___, 0, 0x3b, CURRENT_MEMORY, "current_memory") \
V(I32, I32, ___, 0, 0x39, GROW_MEMORY, "grow_memory") \
V(I32, I32, I32, 0, 0x40, I32_ADD, "i32.add") \
V(I32, I32, I32, 0, 0x41, I32_SUB, "i32.sub") \