summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWasm/Constants.h
diff options
context:
space:
mode:
authorAli Mohammad Pur <ali.mpfard@gmail.com>2021-05-03 22:45:47 +0430
committerAndreas Kling <kling@serenityos.org>2021-05-17 23:25:30 +0200
commit95b9821f26978d674d39a179b638207138823c16 (patch)
tree7bd663b7940367eb8e6e0eca15c0e12bf7bc9466 /Userland/Libraries/LibWasm/Constants.h
parent3402381d7abe3c1d6b8c4ed6b29a35e3c50fb6f6 (diff)
downloadserenity-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.h2
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;
+
}