summaryrefslogtreecommitdiff
path: root/test/update-spec-tests.py
diff options
context:
space:
mode:
authorBen Smith <binji@chromium.org>2020-01-21 09:33:35 -0800
committerGitHub <noreply@github.com>2020-01-21 09:33:35 -0800
commit7eb3f7771e5374c36af58485d67c3dc19290024a (patch)
treee4572f313edf9b55cdb01349d99fa331ae630ecc /test/update-spec-tests.py
parent8bd065771ad7f87c839c2ac76ad924b33d961db5 (diff)
downloadwabt-7eb3f7771e5374c36af58485d67c3dc19290024a.tar.gz
wabt-7eb3f7771e5374c36af58485d67c3dc19290024a.tar.bz2
wabt-7eb3f7771e5374c36af58485d67c3dc19290024a.zip
Omit the DataCount section unless it is required (#1312)
See #1189 and #1311. Even if bulk memory is enabled, it can be convenient to omit the DataCount section for MVP compatibility. This change only includes the DataCount section when an instruction requires it; either `data.drop` or `memory.init`. It is also omitted if there are no data segments. Rather than doing a second pass on the instructions, this implementation unconditionally writes the DataCount section, but removes it when it is not needed. This required adding a function to truncate a stream (Stream::Truncate).
Diffstat (limited to 'test/update-spec-tests.py')
0 files changed, 0 insertions, 0 deletions