diff options
author | Alon Zakai <alonzakai@gmail.com> | 2019-04-03 17:49:47 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-03 17:49:47 -0700 |
commit | 773759f7842611bbe3e30f7b9d4cd24350291976 (patch) | |
tree | a2ac1d3b7e1850b3827b087f671c6182b39429b2 /src/tools/fuzzing.h | |
parent | 02198da745469104cb6ced60b37efa8d8a7f4464 (diff) | |
download | binaryen-773759f7842611bbe3e30f7b9d4cd24350291976.tar.gz binaryen-773759f7842611bbe3e30f7b9d4cd24350291976.tar.bz2 binaryen-773759f7842611bbe3e30f7b9d4cd24350291976.zip |
Update test/spec/memory.wast to latest upstream (#1801)
Minus multi-memory which we don't support yet.
Improve validator.
Fix some minor validation issues in our tests.
Diffstat (limited to 'src/tools/fuzzing.h')
-rw-r--r-- | src/tools/fuzzing.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/tools/fuzzing.h b/src/tools/fuzzing.h index 6aa0764f1..b17be8afe 100644 --- a/src/tools/fuzzing.h +++ b/src/tools/fuzzing.h @@ -29,6 +29,7 @@ high chance for set at start of loop #include <ir/find_all.h> #include <ir/literal-utils.h> #include <ir/manipulation.h> +#include "ir/memory-utils.h" #include <ir/utils.h> namespace wasm { @@ -254,9 +255,7 @@ private: } void setupMemory() { - wasm.memory.exists = true; - // use one page - wasm.memory.initial = wasm.memory.max = 1; + MemoryUtils::ensureExists(wasm.memory); // init some data wasm.memory.segments.emplace_back(builder.makeConst(Literal(int32_t(0)))); auto num = upTo(USABLE_MEMORY * 2); |