From 6e83fe2f9e9fdfb88fc9a62bb31c1f79768aa31a Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Sun, 22 Nov 2015 21:50:42 -0800 Subject: refactor memory growth code to a central location --- src/asm2wasm-main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/asm2wasm-main.cpp') diff --git a/src/asm2wasm-main.cpp b/src/asm2wasm-main.cpp index 1e9dc6680..aca9434bb 100644 --- a/src/asm2wasm-main.cpp +++ b/src/asm2wasm-main.cpp @@ -37,7 +37,7 @@ int main(int argc, char **argv) { if (debug) std::cerr << "wasming...\n"; Module wasm; wasm.memory.initial = wasm.memory.max = 16*1024*1024; // we would normally receive this from the compiler - Asm2WasmBuilder asm2wasm(wasm); + Asm2WasmBuilder asm2wasm(wasm, pre.memoryGrowth); asm2wasm.processAsm(asmjs); if (debug) std::cerr << "optimizing...\n"; -- cgit v1.2.3