From 8d4bcd6e02bb0df3ac87e4850896ba733525b055 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Tue, 30 Apr 2019 20:30:03 -0700 Subject: wasm2js: run full optimizations during the pipeline (#2071) We flatten for the i64 lowering etc. passes, and it is worth optimizing afterwards, to clean up stuff they created. That is run if the user ran wasm2js with an optimization level (like wasm2js -O3). Split the test files to check both optimized and unoptimized code. --- test/wasm2js/func-ptr-offset.2asm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/wasm2js/func-ptr-offset.2asm.js') diff --git a/test/wasm2js/func-ptr-offset.2asm.js b/test/wasm2js/func-ptr-offset.2asm.js index 5789e47d4..05250ed74 100644 --- a/test/wasm2js/func-ptr-offset.2asm.js +++ b/test/wasm2js/func-ptr-offset.2asm.js @@ -35,7 +35,7 @@ function asmFunc(global, env, buffer) { function $3($0) { $0 = $0 | 0; - return FUNCTION_TABLE[$0]() | 0; + return FUNCTION_TABLE[$0]() | 0 | 0; } var FUNCTION_TABLE = [null, t1, t2, t3]; -- cgit v1.2.3