diff options
author | Ben Smith <binji@chromium.org> | 2016-04-25 14:02:22 -0700 |
---|---|---|
committer | Ben Smith <binji@chromium.org> | 2016-04-28 23:47:03 -0700 |
commit | bcc7c471e160a6648abf61b1860072b25a9bfbc6 (patch) | |
tree | b929dfeb08a682b08945c6447b3f825295e824bf /src/wasm-ast.c | |
parent | 4b65b16cba2eb3aa173848377079c0523c9c896f (diff) | |
download | wabt-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-ast.c')
-rw-r--r-- | src/wasm-ast.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wasm-ast.c b/src/wasm-ast.c index a0965a0d..af741867 100644 --- a/src/wasm-ast.c +++ b/src/wasm-ast.c @@ -456,7 +456,7 @@ static void wasm_destroy_expr(WasmAllocator* allocator, WasmExpr* expr) { case WASM_EXPR_TYPE_UNREACHABLE: case WASM_EXPR_TYPE_CONST: - case WASM_EXPR_TYPE_MEMORY_SIZE: + case WASM_EXPR_TYPE_CURRENT_MEMORY: case WASM_EXPR_TYPE_NOP: break; } @@ -772,8 +772,8 @@ static WasmResult visit_expr(WasmExpr* expr, WasmExprVisitor* visitor) { CALLBACK(end_loop_expr); break; - case WASM_EXPR_TYPE_MEMORY_SIZE: - CALLBACK(on_memory_size_expr); + case WASM_EXPR_TYPE_CURRENT_MEMORY: + CALLBACK(on_current_memory_expr); break; case WASM_EXPR_TYPE_NOP: |