summaryrefslogtreecommitdiff
path: root/src/wasm.h
diff options
context:
space:
mode:
authorDerek Schuff <dschuff@chromium.org>2017-09-22 12:52:35 -0700
committerGitHub <noreply@github.com>2017-09-22 12:52:35 -0700
commitdb66e646df6512d4eb2be344778001c62402e4c5 (patch)
treebcc070601de788d6ffa407164f2ce00ac3bab128 /src/wasm.h
parentb29158db92c6fdab578b8b550cb965b020901768 (diff)
downloadbinaryen-db66e646df6512d4eb2be344778001c62402e4c5.tar.gz
binaryen-db66e646df6512d4eb2be344778001c62402e4c5.tar.bz2
binaryen-db66e646df6512d4eb2be344778001c62402e4c5.zip
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))
Diffstat (limited to 'src/wasm.h')
-rw-r--r--src/wasm.h2
1 files changed, 2 insertions, 0 deletions
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 {