summaryrefslogtreecommitdiff
path: root/src/wasm-s-parser.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm-s-parser.h')
-rw-r--r--src/wasm-s-parser.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/wasm-s-parser.h b/src/wasm-s-parser.h
index b81800ad2..58f316075 100644
--- a/src/wasm-s-parser.h
+++ b/src/wasm-s-parser.h
@@ -500,6 +500,7 @@ public:
}
case 'g': {
if (str[1] == 'e') return makeGetLocal(s);
+ if (str[1] == 'r') return makeHost(s, HostOp::GrowMemory);
abort_on(str);
}
case 'h': {
@@ -515,10 +516,18 @@ public:
if (str[1] == 'o') return makeLoop(s);
abort_on(str);
}
+ case 'm': {
+ if (str[1] == 'e') return makeHost(s, HostOp::MemorySize);
+ abort_on(str);
+ }
case 'n': {
if (str[1] == 'o') return allocator.alloc<Nop>();
abort_on(str);
}
+ case 'p': {
+ if (str[1] == 'a') return makeHost(s, HostOp::PageSize);
+ abort_on(str);
+ }
case 's': {
if (str[1] == 'e') return makeSetLocal(s);
abort_on(str);