diff options
author | Keith Winstein <208955+keithw@users.noreply.github.com> | 2024-11-08 07:45:07 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-08 07:45:07 -0800 |
commit | 765b47d02aac894da80b74284263d1b487415aa0 (patch) | |
tree | 9e7275ddf2f8f3326c3a779e30a3aa963159ffa7 /include/wabt/binary-reader-nop.h | |
parent | c1d97e9c75c687faa81fe0ab4f1ac77c30487f47 (diff) | |
download | wabt-765b47d02aac894da80b74284263d1b487415aa0.tar.gz wabt-765b47d02aac894da80b74284263d1b487415aa0.tar.bz2 wabt-765b47d02aac894da80b74284263d1b487415aa0.zip |
Add support for the custom-page-sizes proposal (#2502)
This adds support in the binary/text parsers and writers,
the validator and interpreter, and objdump (but not wasm2c).
Diffstat (limited to 'include/wabt/binary-reader-nop.h')
-rw-r--r-- | include/wabt/binary-reader-nop.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/wabt/binary-reader-nop.h b/include/wabt/binary-reader-nop.h index c7ec78b1..85906062 100644 --- a/include/wabt/binary-reader-nop.h +++ b/include/wabt/binary-reader-nop.h @@ -89,7 +89,8 @@ class BinaryReaderNop : public BinaryReaderDelegate { std::string_view module_name, std::string_view field_name, Index memory_index, - const Limits* page_limits) override { + const Limits* page_limits, + uint32_t page_size) override { return Result::Ok; } Result OnImportGlobal(Index import_index, @@ -130,7 +131,9 @@ class BinaryReaderNop : public BinaryReaderDelegate { /* Memory section */ Result BeginMemorySection(Offset size) override { return Result::Ok; } Result OnMemoryCount(Index count) override { return Result::Ok; } - Result OnMemory(Index index, const Limits* limits) override { + Result OnMemory(Index index, + const Limits* limits, + uint32_t page_size) override { return Result::Ok; } Result EndMemorySection() override { return Result::Ok; } |