From db66e646df6512d4eb2be344778001c62402e4c5 Mon Sep 17 00:00:00 2001 From: Derek Schuff Date: Fri, 22 Sep 2017 12:52:35 -0700 Subject: Update text syntax for shared memory limits (#1197) Following WebAssembly/threads#58 e.g. (memory $0 23 256 shared) is now (memory $0 (shared 23 256)) --- src/wasm.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/wasm.h') diff --git a/src/wasm.h b/src/wasm.h index d2bea45a1..fc167342a 100644 --- a/src/wasm.h +++ b/src/wasm.h @@ -672,6 +672,7 @@ public: Table() : exists(false), imported(false), initial(0), max(kMaxSize) { name = Name::fromInt(0); } + bool hasMax() { return max != kMaxSize; } }; class Memory { @@ -705,6 +706,7 @@ public: Memory() : initial(0), max(kMaxSize), exists(false), imported(false), shared(false) { name = Name::fromInt(0); } + bool hasMax() { return max != kMaxSize; } }; class Global { -- cgit v1.2.3