From cdc2d2c006bc0406c93509ed0d7a2dfbb6f51ea5 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Mon, 2 Nov 2020 15:03:58 -0800 Subject: MemoryPacking: Properly notice zeroFilledMemory (#3306) We can only pack memory if we know it is zero-filled before us. --- test/wasm2js/emscripten.2asm.js.opt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'test/wasm2js/emscripten.2asm.js.opt') diff --git a/test/wasm2js/emscripten.2asm.js.opt b/test/wasm2js/emscripten.2asm.js.opt index 8de23758f..bd813d0f6 100644 --- a/test/wasm2js/emscripten.2asm.js.opt +++ b/test/wasm2js/emscripten.2asm.js.opt @@ -1,7 +1,5 @@ function instantiate(asmLibraryArg, wasmMemory) { -function asmFunc(global, env) { - var memory = env.memory; - var buffer = memory.buffer; +function asmFunc(global, env, buffer) { var FUNCTION_TABLE = env.table; var HEAP8 = new global.Int8Array(buffer); var HEAP16 = new global.Int16Array(buffer); -- cgit v1.2.3