From 95b9821f26978d674d39a179b638207138823c16 Mon Sep 17 00:00:00 2001 From: Ali Mohammad Pur Date: Mon, 3 May 2021 22:45:47 +0430 Subject: LibWasm: Implement memory.grow, memory.size and drop These allow a very basic memory-using program to work. --- Userland/Libraries/LibWasm/Constants.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Userland/Libraries/LibWasm/Constants.h') 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; + } -- cgit v1.2.3