From 5fafb87a2819cebd94941c77c07ebe067471eb7d Mon Sep 17 00:00:00 2001 From: Thomas Lively Date: Wed, 16 Aug 2017 15:01:56 -0700 Subject: 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 --- src/wasm-s-parser.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/wasm-s-parser.h') 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); -- cgit v1.2.3