diff options
author | Ali Mohammad Pur <ali.mpfard@gmail.com> | 2021-05-03 22:45:47 +0430 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-05-17 23:25:30 +0200 |
commit | 95b9821f26978d674d39a179b638207138823c16 (patch) | |
tree | 7bd663b7940367eb8e6e0eca15c0e12bf7bc9466 /Userland/Libraries/LibWasm/Constants.h | |
parent | 3402381d7abe3c1d6b8c4ed6b29a35e3c50fb6f6 (diff) | |
download | serenity-95b9821f26978d674d39a179b638207138823c16.zip |
LibWasm: Implement memory.grow, memory.size and drop
These allow a very basic memory-using program to work.
Diffstat (limited to 'Userland/Libraries/LibWasm/Constants.h')
-rw-r--r-- | Userland/Libraries/LibWasm/Constants.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWasm/Constants.h b/Userland/Libraries/LibWasm/Constants.h index 9d5f346fc6..7ae73b782a 100644 --- a/Userland/Libraries/LibWasm/Constants.h +++ b/Userland/Libraries/LibWasm/Constants.h @@ -34,4 +34,6 @@ static constexpr auto extern_table_tag = 0x01; static constexpr auto extern_memory_tag = 0x02; static constexpr auto extern_global_tag = 0x03; +static constexpr auto page_size = 64 * KiB; + } |