summaryrefslogtreecommitdiff
path: root/src/binary-reader.h
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2019-11-18 15:18:50 -0800
committerGitHub <noreply@github.com>2019-11-18 15:18:50 -0800
commit43fef7d1c31f5b99ff9f1e79ce368fe139414882 (patch)
treec9aabd04277814816f6f9c9655cf74613bfa49ed /src/binary-reader.h
parentcc1edc0c12d2cf72aec34ae246ebd43bd681671c (diff)
downloadwabt-43fef7d1c31f5b99ff9f1e79ce368fe139414882.tar.gz
wabt-43fef7d1c31f5b99ff9f1e79ce368fe139414882.tar.bz2
wabt-43fef7d1c31f5b99ff9f1e79ce368fe139414882.zip
Switch to treating segment flags as a bitfield. NFC (#1232)
This is in preparation for updating to latest version reference-types proposal where there is an additional flag and they can be combined. See: https://github.com/WebAssembly/bulk-memory-operations/issues/98 Also, add ERROR_IF to binary-reader.cc as logical corollary to the existing ERROR_UNLESS.
Diffstat (limited to 'src/binary-reader.h')
-rw-r--r--src/binary-reader.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/binary-reader.h b/src/binary-reader.h
index 3effdb50..59d10655 100644
--- a/src/binary-reader.h
+++ b/src/binary-reader.h
@@ -286,7 +286,7 @@ class BinaryReaderDelegate {
virtual Result OnElemSegmentCount(Index count) = 0;
virtual Result BeginElemSegment(Index index,
Index table_index,
- bool passive,
+ uint8_t flags,
Type elem_type) = 0;
virtual Result BeginElemSegmentInitExpr(Index index) = 0;
virtual Result EndElemSegmentInitExpr(Index index) = 0;
@@ -302,7 +302,7 @@ class BinaryReaderDelegate {
virtual Result OnDataSegmentCount(Index count) = 0;
virtual Result BeginDataSegment(Index index,
Index memory_index,
- bool passive) = 0;
+ uint8_t flags) = 0;
virtual Result BeginDataSegmentInitExpr(Index index) = 0;
virtual Result EndDataSegmentInitExpr(Index index) = 0;
virtual Result OnDataSegmentData(Index index,