summaryrefslogtreecommitdiff
path: root/src/wasm-s-parser.h
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2015-11-06 09:08:21 -0800
committerAlon Zakai <alonzakai@gmail.com>2015-11-06 09:08:21 -0800
commit38b6e18b5b563ee235f426d695a89c20cb08ada5 (patch)
treefaf22c0d978f783e359244c2b961385551db4ec6 /src/wasm-s-parser.h
parent034596930c9d4ca3e771e78e03e06efc026fadff (diff)
downloadbinaryen-38b6e18b5b563ee235f426d695a89c20cb08ada5.tar.gz
binaryen-38b6e18b5b563ee235f426d695a89c20cb08ada5.tar.bz2
binaryen-38b6e18b5b563ee235f426d695a89c20cb08ada5.zip
host ops
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);