diff options
author | Alon Zakai <azakai@google.com> | 2020-11-02 15:03:58 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-02 15:03:58 -0800 |
commit | cdc2d2c006bc0406c93509ed0d7a2dfbb6f51ea5 (patch) | |
tree | 3d2e775e6fc3d37de8461a7a21649c234093980d /test/wasm2js/emscripten.2asm.js.opt | |
parent | ab68c1b2ffd034f8c30d2a4820c5c708491679cb (diff) | |
download | binaryen-cdc2d2c006bc0406c93509ed0d7a2dfbb6f51ea5.tar.gz binaryen-cdc2d2c006bc0406c93509ed0d7a2dfbb6f51ea5.tar.bz2 binaryen-cdc2d2c006bc0406c93509ed0d7a2dfbb6f51ea5.zip |
MemoryPacking: Properly notice zeroFilledMemory (#3306)
We can only pack memory if we know it is zero-filled before us.
Diffstat (limited to 'test/wasm2js/emscripten.2asm.js.opt')
-rw-r--r-- | test/wasm2js/emscripten.2asm.js.opt | 4 |
1 files changed, 1 insertions, 3 deletions
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); |