diff options
author | Alon Zakai <alonzakai@gmail.com> | 2015-11-06 09:08:21 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2015-11-06 09:08:21 -0800 |
commit | 38b6e18b5b563ee235f426d695a89c20cb08ada5 (patch) | |
tree | faf22c0d978f783e359244c2b961385551db4ec6 /src/wasm-s-parser.h | |
parent | 034596930c9d4ca3e771e78e03e06efc026fadff (diff) | |
download | binaryen-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.h | 9 |
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); |