diff options
author | Alex Crichton <alex@alexcrichton.com> | 2018-10-12 13:57:23 -0700 |
---|---|---|
committer | Ben Smith <binjimin@gmail.com> | 2018-10-12 13:57:23 -0700 |
commit | 27d833c6c8bbb041c43e5f67e1049d6c0095bd56 (patch) | |
tree | 417f5c3be444e1031b4e43e63962e1b160155cfd /src/binary-reader-logging.h | |
parent | 2cf0904a8b0c8fac067a10838121f8e0e35359de (diff) | |
download | wabt-27d833c6c8bbb041c43e5f67e1049d6c0095bd56.tar.gz wabt-27d833c6c8bbb041c43e5f67e1049d6c0095bd56.tar.bz2 wabt-27d833c6c8bbb041c43e5f67e1049d6c0095bd56.zip |
Add bulk memory opcode definitions (#927)
This commit starts to add support in wabt's various tools for the
upcoming [bulk memory proposal][1]. This is based off the current
proposal's overview, although these may get tweaked over time!
This is also the first time I've significantly contributed to wabt, and
what I thought would be a relatively simple addition ended up being much
larger than I imagined! I didn't add many negative tests yet but if more
tests are desired please let me know!
[1]: https://github.com/webassembly/bulk-memory-operations
Diffstat (limited to 'src/binary-reader-logging.h')
-rw-r--r-- | src/binary-reader-logging.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/binary-reader-logging.h b/src/binary-reader-logging.h index 6791c622..f9cb47c9 100644 --- a/src/binary-reader-logging.h +++ b/src/binary-reader-logging.h @@ -175,8 +175,15 @@ class BinaryReaderLogging : public BinaryReaderDelegate { uint32_t alignment_log2, Address offset) override; Result OnLoopExpr(Type sig_type) override; + Result OnMemoryCopyExpr() override; + Result OnMemoryDropExpr(Index segment_index) override; + Result OnMemoryFillExpr() override; Result OnMemoryGrowExpr() override; + Result OnMemoryInitExpr(Index segment_index) override; Result OnMemorySizeExpr() override; + Result OnTableCopyExpr() override; + Result OnTableDropExpr(Index segment_index) override; + Result OnTableInitExpr(Index segment_index) override; Result OnNopExpr() override; Result OnRethrowExpr() override; Result OnReturnExpr() override; @@ -205,7 +212,7 @@ class BinaryReaderLogging : public BinaryReaderDelegate { Result BeginElemSection(Offset size) override; Result OnElemSegmentCount(Index count) override; - Result BeginElemSegment(Index index, Index table_index) override; + Result BeginElemSegment(Index index, Index table_index, bool passive) override; Result BeginElemSegmentInitExpr(Index index) override; Result EndElemSegmentInitExpr(Index index) override; Result OnElemSegmentFunctionIndexCount(Index index, Index count) override; @@ -215,7 +222,7 @@ class BinaryReaderLogging : public BinaryReaderDelegate { Result BeginDataSection(Offset size) override; Result OnDataSegmentCount(Index count) override; - Result BeginDataSegment(Index index, Index memory_index) override; + Result BeginDataSegment(Index index, Index memory_index, bool passive) override; Result BeginDataSegmentInitExpr(Index index) override; Result EndDataSegmentInitExpr(Index index) override; Result OnDataSegmentData(Index index, |