diff options
author | Thomas Lively <tlively@users.noreply.github.com> | 2017-08-16 15:01:56 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2017-08-16 15:01:56 -0700 |
commit | 5fafb87a2819cebd94941c77c07ebe067471eb7d (patch) | |
tree | 232edd6e144a43094bf2127a6a6e4913a5674884 /src/wasm-s-parser.h | |
parent | 21d06aea04244fa71b5053bd87f2ec6a2ac9d5c2 (diff) | |
download | binaryen-5fafb87a2819cebd94941c77c07ebe067471eb7d.tar.gz binaryen-5fafb87a2819cebd94941c77c07ebe067471eb7d.tar.bz2 binaryen-5fafb87a2819cebd94941c77c07ebe067471eb7d.zip |
wasm2asm test generation (#1124)
* Translate assert_return invokes to asm
* Translate assert_trap tests to JS
* Enable wasm2asm tests
* Fix wasm2asm translation of store
* Update ubuntu nodejs in Travis
* Free JSPrinter buffer
* Use unique_ptr for Functions to prevent leaks
* Add tests for assert translation
Diffstat (limited to 'src/wasm-s-parser.h')
-rw-r--r-- | src/wasm-s-parser.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wasm-s-parser.h b/src/wasm-s-parser.h index d621128de..6be17f561 100644 --- a/src/wasm-s-parser.h +++ b/src/wasm-s-parser.h @@ -159,6 +159,10 @@ public: } Expression* parseExpression(Element& s); + MixedArena& getAllocator() { + return allocator; + } + private: Expression* makeExpression(Element& s); Expression* makeBinary(Element& s, BinaryOp op, WasmType type); |