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-lexer.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-lexer.c')
-rw-r--r-- | src/wasm-ast-lexer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm-ast-lexer.c b/src/wasm-ast-lexer.c index 3b11a305..362600b3 100644 --- a/src/wasm-ast-lexer.c +++ b/src/wasm-ast-lexer.c @@ -407,7 +407,7 @@ int wasm_ast_lexer_lex(WASM_AST_PARSER_STYPE* lval, <i> "i64.reinterpret/f64" { OPCODE(I64_REINTERPRET_F64); RETURN(CONVERT); } <i> "select" { RETURN(SELECT); } <i> "unreachable" { RETURN(UNREACHABLE); } - <i> "memory_size" { RETURN(MEMORY_SIZE); } + <i> "current_memory" { RETURN(CURRENT_MEMORY); } <i> "grow_memory" { RETURN(GROW_MEMORY); } <i> "type" { RETURN(TYPE); } <i> "func" { RETURN(FUNC); } |