summaryrefslogtreecommitdiff
path: root/src/wasm-ast-parser.y
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm-ast-parser.y')
-rw-r--r--src/wasm-ast-parser.y7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/wasm-ast-parser.y b/src/wasm-ast-parser.y
index 979e4dd3..4f74128f 100644
--- a/src/wasm-ast-parser.y
+++ b/src/wasm-ast-parser.y
@@ -114,7 +114,7 @@ WasmResult copy_signature_from_func_type(WasmAllocator* allocator,
%token CONST UNARY BINARY COMPARE CONVERT SELECT
%token FUNC START TYPE PARAM RESULT LOCAL
%token MODULE MEMORY SEGMENT IMPORT EXPORT TABLE
-%token UNREACHABLE MEMORY_SIZE GROW_MEMORY
+%token UNREACHABLE CURRENT_MEMORY GROW_MEMORY
%token ASSERT_INVALID ASSERT_RETURN ASSERT_RETURN_NAN ASSERT_TRAP INVOKE
%token EOF 0 "EOF"
@@ -497,8 +497,9 @@ expr1 :
$$ = wasm_new_empty_expr(parser->allocator, WASM_EXPR_TYPE_UNREACHABLE);
CHECK_ALLOC_NULL($$);
}
- | MEMORY_SIZE {
- $$ = wasm_new_empty_expr(parser->allocator, WASM_EXPR_TYPE_MEMORY_SIZE);
+ | CURRENT_MEMORY {
+ $$ = wasm_new_empty_expr(parser->allocator,
+ WASM_EXPR_TYPE_CURRENT_MEMORY);
CHECK_ALLOC_NULL($$);
}
| GROW_MEMORY expr {