From a4c2588fd5144b0b8759865d42138e1f6bb228a9 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Tue, 3 Nov 2015 11:00:55 -0800 Subject: add memorySize to Module --- src/asm2wasm-main.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/asm2wasm-main.cpp') diff --git a/src/asm2wasm-main.cpp b/src/asm2wasm-main.cpp index c09a2345b..1a338831c 100644 --- a/src/asm2wasm-main.cpp +++ b/src/asm2wasm-main.cpp @@ -52,6 +52,7 @@ int main(int argc, char **argv) { if (debug) std::cerr << "wasming...\n"; Module wasm; + wasm.memorySize = 16*1024*1024; // we would normally receive this from the compiler Asm2WasmBuilder asm2wasm(wasm); asm2wasm.processAsm(asmjs); -- cgit v1.2.3