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-nop.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-nop.h')
-rw-r--r-- | src/binary-reader-nop.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/binary-reader-nop.h b/src/binary-reader-nop.h index f2370a78..42eee390 100644 --- a/src/binary-reader-nop.h +++ b/src/binary-reader-nop.h @@ -235,8 +235,15 @@ class BinaryReaderNop : public BinaryReaderDelegate { return Result::Ok; } Result OnLoopExpr(Type sig_type) override { return Result::Ok; } + Result OnMemoryCopyExpr() override { return Result::Ok; } + Result OnMemoryDropExpr(Index segment_index) override { return Result::Ok; } + Result OnMemoryFillExpr() override { return Result::Ok; } Result OnMemoryGrowExpr() override { return Result::Ok; } + Result OnMemoryInitExpr(Index segment_index) override { return Result::Ok; } Result OnMemorySizeExpr() override { return Result::Ok; } + Result OnTableCopyExpr() override { return Result::Ok; } + Result OnTableDropExpr(Index segment_index) override { return Result::Ok; } + Result OnTableInitExpr(Index segment_index) override { return Result::Ok; } Result OnNopExpr() override { return Result::Ok; } Result OnRethrowExpr() override { return Result::Ok; } Result OnReturnExpr() override { return Result::Ok; } @@ -266,7 +273,7 @@ class BinaryReaderNop : public BinaryReaderDelegate { /* Elem section */ Result BeginElemSection(Offset size) override { return Result::Ok; } Result OnElemSegmentCount(Index count) override { return Result::Ok; } - Result BeginElemSegment(Index index, Index table_index) override { + Result BeginElemSegment(Index index, Index table_index, bool passive) override { return Result::Ok; } Result BeginElemSegmentInitExpr(Index index) override { return Result::Ok; } @@ -283,7 +290,7 @@ class BinaryReaderNop : public BinaryReaderDelegate { /* Data section */ Result BeginDataSection(Offset size) override { return Result::Ok; } Result OnDataSegmentCount(Index count) override { return Result::Ok; } - Result BeginDataSegment(Index index, Index memory_index) override { + Result BeginDataSegment(Index index, Index memory_index, bool passive) override { return Result::Ok; } Result BeginDataSegmentInitExpr(Index index) override { return Result::Ok; } |