diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-08-12 14:40:26 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-08-12 20:16:32 -0700 |
commit | 35bd9109ab07aa21f9e55214a61390fa61c93638 (patch) | |
tree | 533fe16da8fcb13492abb6c826dee1827fdc1f78 /src/wasm.h | |
parent | 7e3917884152eda021cff9107b5f789aee92fb1b (diff) | |
download | binaryen-35bd9109ab07aa21f9e55214a61390fa61c93638.tar.gz binaryen-35bd9109ab07aa21f9e55214a61390fa61c93638.tar.bz2 binaryen-35bd9109ab07aa21f9e55214a61390fa61c93638.zip |
support function table initial and max sizes, and new printing format
Diffstat (limited to 'src/wasm.h')
-rw-r--r-- | src/wasm.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/wasm.h b/src/wasm.h index c0129cf23..82933bda0 100644 --- a/src/wasm.h +++ b/src/wasm.h @@ -1432,7 +1432,12 @@ public: class Table { public: + static const Index kMaxSize = Index(-1); + + Address initial, max; std::vector<Name> names; + + Table() : initial(0), max(kMaxSize) {} }; class Memory { |