diff options
author | Will Cohen <willcohen@users.noreply.github.com> | 2023-01-04 18:02:14 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-04 15:02:14 -0800 |
commit | f92350d2949934c0e0ce4a27ec8b799ac2a85e45 (patch) | |
tree | 5cedc4d7a7ede518efb572b4278ffb8ef8102cb6 /test | |
parent | fb434f95de125bbd1c3f145880d32395d86cfef2 (diff) | |
download | binaryen-f92350d2949934c0e0ce4a27ec8b799ac2a85e45.tar.gz binaryen-f92350d2949934c0e0ce4a27ec8b799ac2a85e45.tar.bz2 binaryen-f92350d2949934c0e0ce4a27ec8b799ac2a85e45.zip |
wasm2js: Stop emitting nan and infinity (#5391)
As noted in #4739, legacy language emitting nan and infinity
exists, with the observation that it can be removed once asm.js
is no longer used and global NaN is available.
This commit removes that asm.js-specific code accordingly.
Diffstat (limited to 'test')
123 files changed, 33 insertions, 353 deletions
diff --git a/test/binaryen.js/emit_asmjs.js.txt b/test/binaryen.js/emit_asmjs.js.txt index b4511455c..3ee0705da 100644 --- a/test/binaryen.js/emit_asmjs.js.txt +++ b/test/binaryen.js/emit_asmjs.js.txt @@ -10,8 +10,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function main($0) { $0 = $0 | 0; return $0 | 0; diff --git a/test/wasm2asm.asserts.js b/test/wasm2asm.asserts.js index e920a2b20..71515c4c3 100644 --- a/test/wasm2asm.asserts.js +++ b/test/wasm2asm.asserts.js @@ -18,8 +18,6 @@ function asmFunc(global, env, buffer) { var Math_ceil = global.Math.ceil; var Math_sqrt = global.Math.sqrt; var abort = env.abort; - var nan = global.NaN; - var infinity = global.Infinity; var i64toi32_i32$HIGH_BITS = 0; function $0() { @@ -54,8 +52,6 @@ function asmFunc(global, env, buffer) { var HEAP32 = new Int32Array(__array_buffer); var HEAPF32 = new Float32Array(__array_buffer); var HEAPF64 = new Float64Array(__array_buffer); - var nan = NaN; - var infinity = Infinity; ; function f32Equal(a, b) { diff --git a/test/wasm2asm.traps.js b/test/wasm2asm.traps.js index 7d3d5c3f9..c2a7219bc 100644 --- a/test/wasm2asm.traps.js +++ b/test/wasm2asm.traps.js @@ -18,8 +18,6 @@ function asmFunc(global, env, buffer) { var Math_ceil = global.Math.ceil; var Math_sqrt = global.Math.sqrt; var abort = env.abort; - var nan = global.NaN; - var infinity = global.Infinity; var i64toi32_i32$HIGH_BITS = 0; function $0() { @@ -54,8 +52,6 @@ function asmFunc(global, env, buffer) { var HEAP32 = new Int32Array(__array_buffer); var HEAPF32 = new Float32Array(__array_buffer); var HEAPF64 = new Float64Array(__array_buffer); - var nan = NaN; - var infinity = Infinity; ; function f32Equal(a, b) { diff --git a/test/wasm2js.asserts.js b/test/wasm2js.asserts.js index 2fff25126..fb6516106 100644 --- a/test/wasm2js.asserts.js +++ b/test/wasm2js.asserts.js @@ -1,7 +1,4 @@ - var nan = NaN; - var infinity = Infinity; - function f32Equal(a, b) { var i = new Int32Array(1); var f = new Float32Array(i.buffer); @@ -41,8 +38,6 @@ function asmFunc0(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function $0() { } diff --git a/test/wasm2js.traps.js b/test/wasm2js.traps.js index 0b1d24b95..8f87e2423 100644 --- a/test/wasm2js.traps.js +++ b/test/wasm2js.traps.js @@ -1,7 +1,4 @@ - var nan = NaN; - var infinity = Infinity; - function f32Equal(a, b) { var i = new Int32Array(1); var f = new Float32Array(i.buffer); @@ -41,8 +38,6 @@ function asmFunc0(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function $0() { } diff --git a/test/wasm2js/add_div.2asm.js b/test/wasm2js/add_div.2asm.js index 07e1a9ce4..003352b3c 100644 --- a/test/wasm2js/add_div.2asm.js +++ b/test/wasm2js/add_div.2asm.js @@ -10,8 +10,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function foo($0) { $0 = $0 | 0; return (($0 >>> 0) / (100 >>> 0) | 0) + (($0 | 0) / (-100 | 0) | 0) | 0 | 0; diff --git a/test/wasm2js/add_div.2asm.js.opt b/test/wasm2js/add_div.2asm.js.opt index 6a6b29c92..54c90d0fc 100644 --- a/test/wasm2js/add_div.2asm.js.opt +++ b/test/wasm2js/add_div.2asm.js.opt @@ -10,8 +10,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function foo($0) { $0 = $0 | 0; return (($0 | 0) / -100 | 0) + (($0 >>> 0) / 100 | 0) | 0; diff --git a/test/wasm2js/atomic_fence.2asm.js b/test/wasm2js/atomic_fence.2asm.js index 825918383..b73378815 100644 --- a/test/wasm2js/atomic_fence.2asm.js +++ b/test/wasm2js/atomic_fence.2asm.js @@ -19,8 +19,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function $0() { } diff --git a/test/wasm2js/atomic_fence.2asm.js.opt b/test/wasm2js/atomic_fence.2asm.js.opt index f201b8e44..cbad74a73 100644 --- a/test/wasm2js/atomic_fence.2asm.js.opt +++ b/test/wasm2js/atomic_fence.2asm.js.opt @@ -10,8 +10,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function $0() { } diff --git a/test/wasm2js/atomics_32.2asm.js b/test/wasm2js/atomics_32.2asm.js index bd9f10fb2..66a9c1769 100644 --- a/test/wasm2js/atomics_32.2asm.js +++ b/test/wasm2js/atomics_32.2asm.js @@ -109,8 +109,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function $0() { var i64toi32_i32$0 = 0, i64toi32_i32$2 = 0, i64toi32_i32$1 = 0; Atomics.compareExchange(HEAP8, 1024, 1, 2) | 0; diff --git a/test/wasm2js/atomics_32.2asm.js.opt b/test/wasm2js/atomics_32.2asm.js.opt index eecd0eb56..6f42d5df5 100644 --- a/test/wasm2js/atomics_32.2asm.js.opt +++ b/test/wasm2js/atomics_32.2asm.js.opt @@ -109,8 +109,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function $0() { Atomics.compareExchange(HEAP8, 1024, 1, 2) | 0; Atomics.compareExchange(HEAP16, 512, 1, 2) | 0; diff --git a/test/wasm2js/base64.2asm.js b/test/wasm2js/base64.2asm.js index 91dfa174c..f5656223c 100644 --- a/test/wasm2js/base64.2asm.js +++ b/test/wasm2js/base64.2asm.js @@ -10,8 +10,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; return { }; diff --git a/test/wasm2js/base64.2asm.js.opt b/test/wasm2js/base64.2asm.js.opt index 91dfa174c..f5656223c 100644 --- a/test/wasm2js/base64.2asm.js.opt +++ b/test/wasm2js/base64.2asm.js.opt @@ -10,8 +10,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; return { }; diff --git a/test/wasm2js/br.2asm.js b/test/wasm2js/br.2asm.js index 91d02229a..d9648261b 100644 --- a/test/wasm2js/br.2asm.js +++ b/test/wasm2js/br.2asm.js @@ -11,8 +11,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; var env = imports.env; var setTempRet0 = env.setTempRet0; var i64toi32_i32$HIGH_BITS = 0; diff --git a/test/wasm2js/br_table.2asm.js b/test/wasm2js/br_table.2asm.js index 84f6e4db0..668391c02 100644 --- a/test/wasm2js/br_table.2asm.js +++ b/test/wasm2js/br_table.2asm.js @@ -11,8 +11,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; var env = imports.env; var setTempRet0 = env.setTempRet0; var i64toi32_i32$HIGH_BITS = 0; diff --git a/test/wasm2js/br_table_hoisting.2asm.js b/test/wasm2js/br_table_hoisting.2asm.js index 70d3e64ab..c814955aa 100644 --- a/test/wasm2js/br_table_hoisting.2asm.js +++ b/test/wasm2js/br_table_hoisting.2asm.js @@ -10,8 +10,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function zed($0) { $0 = $0 | 0; zed($0 | 0); diff --git a/test/wasm2js/br_table_hoisting.2asm.js.opt b/test/wasm2js/br_table_hoisting.2asm.js.opt index cd77a53a8..767b126ab 100644 --- a/test/wasm2js/br_table_hoisting.2asm.js.opt +++ b/test/wasm2js/br_table_hoisting.2asm.js.opt @@ -10,8 +10,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function zed($0) { zed($0); } diff --git a/test/wasm2js/br_table_temp.2asm.js b/test/wasm2js/br_table_temp.2asm.js index fc039ab53..70a097570 100644 --- a/test/wasm2js/br_table_temp.2asm.js +++ b/test/wasm2js/br_table_temp.2asm.js @@ -10,8 +10,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function dummy() { } diff --git a/test/wasm2js/br_table_temp.2asm.js.opt b/test/wasm2js/br_table_temp.2asm.js.opt index eee9e5604..8252eba66 100644 --- a/test/wasm2js/br_table_temp.2asm.js.opt +++ b/test/wasm2js/br_table_temp.2asm.js.opt @@ -10,8 +10,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function dummy() { } diff --git a/test/wasm2js/br_table_to_loop.2asm.js b/test/wasm2js/br_table_to_loop.2asm.js index 67ac434f1..a0844d936 100644 --- a/test/wasm2js/br_table_to_loop.2asm.js +++ b/test/wasm2js/br_table_to_loop.2asm.js @@ -10,8 +10,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function $0() { block : { loop : while (1) switch (1 | 0) { diff --git a/test/wasm2js/br_table_to_loop.2asm.js.opt b/test/wasm2js/br_table_to_loop.2asm.js.opt index 94280b2e7..5c6fa5e7f 100644 --- a/test/wasm2js/br_table_to_loop.2asm.js.opt +++ b/test/wasm2js/br_table_to_loop.2asm.js.opt @@ -12,8 +12,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function $0() { wasm2js_trap(); } diff --git a/test/wasm2js/break-drop.2asm.js b/test/wasm2js/break-drop.2asm.js index 8cde78806..c288eb776 100644 --- a/test/wasm2js/break-drop.2asm.js +++ b/test/wasm2js/break-drop.2asm.js @@ -10,8 +10,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function $0() { } diff --git a/test/wasm2js/bulk-memory.2asm.js b/test/wasm2js/bulk-memory.2asm.js index 49017368c..4f25b9bd8 100644 --- a/test/wasm2js/bulk-memory.2asm.js +++ b/test/wasm2js/bulk-memory.2asm.js @@ -10,8 +10,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; return { }; @@ -49,8 +47,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function $0($0_1, $1_1, $2) { $0_1 = $0_1 | 0; $1_1 = $1_1 | 0; @@ -151,8 +147,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function $0($0_1, $1_1, $2) { $0_1 = $0_1 | 0; $1_1 = $1_1 | 0; @@ -231,8 +225,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function $0($0_1, $1_1, $2) { $0_1 = $0_1 | 0; $1_1 = $1_1 | 0; @@ -340,8 +332,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function $0() { wasm2js_data_drop(0); } diff --git a/test/wasm2js/bulk-memory.2asm.js.opt b/test/wasm2js/bulk-memory.2asm.js.opt index 50c1eb136..620f181fc 100644 --- a/test/wasm2js/bulk-memory.2asm.js.opt +++ b/test/wasm2js/bulk-memory.2asm.js.opt @@ -10,8 +10,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; return { }; @@ -49,8 +47,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function $0($0_1, $1_1, $2) { $0_1 = $0_1 | 0; $1_1 = $1_1 | 0; @@ -151,8 +147,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function $0($0_1, $1_1, $2) { $0_1 = $0_1 | 0; $1_1 = $1_1 | 0; @@ -231,8 +225,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function $0($0_1, $1_1, $2) { $0_1 = $0_1 | 0; $1_1 = $1_1 | 0; @@ -306,8 +298,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function $0() { } diff --git a/test/wasm2js/comments.2asm.js b/test/wasm2js/comments.2asm.js index 9ee9d1ce7..3f084ab19 100644 --- a/test/wasm2js/comments.2asm.js +++ b/test/wasm2js/comments.2asm.js @@ -10,8 +10,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; return { }; @@ -31,8 +29,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; return { }; diff --git a/test/wasm2js/conversions-modified.2asm.js b/test/wasm2js/conversions-modified.2asm.js index 892bdf030..ec12c7e5f 100644 --- a/test/wasm2js/conversions-modified.2asm.js +++ b/test/wasm2js/conversions-modified.2asm.js @@ -41,8 +41,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; var env = imports.env; var setTempRet0 = env.setTempRet0; var i64toi32_i32$HIGH_BITS = 0; diff --git a/test/wasm2js/conversions-modified.2asm.js.opt b/test/wasm2js/conversions-modified.2asm.js.opt index 4c2b6d1ae..811845f9d 100644 --- a/test/wasm2js/conversions-modified.2asm.js.opt +++ b/test/wasm2js/conversions-modified.2asm.js.opt @@ -41,8 +41,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; var env = imports.env; var setTempRet0 = env.setTempRet0; var i64toi32_i32$HIGH_BITS = 0; diff --git a/test/wasm2js/deterministic.2asm.js b/test/wasm2js/deterministic.2asm.js index 09731cfb5..fff96b5a4 100644 --- a/test/wasm2js/deterministic.2asm.js +++ b/test/wasm2js/deterministic.2asm.js @@ -24,8 +24,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; var global$0 = -44; function $0() { if ((global$0 >>> 0) / ((HEAP32[0 >> 2] | 0) >>> 0) | 0) { diff --git a/test/wasm2js/deterministic.2asm.js.opt b/test/wasm2js/deterministic.2asm.js.opt index a5bc1b337..a05554b1a 100644 --- a/test/wasm2js/deterministic.2asm.js.opt +++ b/test/wasm2js/deterministic.2asm.js.opt @@ -24,8 +24,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function $0() { if (4294967252 / HEAPU32[0] | 0) { wasm2js_trap() diff --git a/test/wasm2js/dot_import.2asm.js b/test/wasm2js/dot_import.2asm.js index f2b5fa1c8..a35eabe95 100644 --- a/test/wasm2js/dot_import.2asm.js +++ b/test/wasm2js/dot_import.2asm.js @@ -11,8 +11,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; var mod_ule = imports["mod.ule"]; var base = mod_ule["ba.se"]; function $0() { diff --git a/test/wasm2js/dot_import.2asm.js.opt b/test/wasm2js/dot_import.2asm.js.opt index f2b5fa1c8..a35eabe95 100644 --- a/test/wasm2js/dot_import.2asm.js.opt +++ b/test/wasm2js/dot_import.2asm.js.opt @@ -11,8 +11,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; var mod_ule = imports["mod.ule"]; var base = mod_ule["ba.se"]; function $0() { diff --git a/test/wasm2js/dynamicLibrary.2asm.js b/test/wasm2js/dynamicLibrary.2asm.js index bae9aeb57..bb6f4dcaf 100644 --- a/test/wasm2js/dynamicLibrary.2asm.js +++ b/test/wasm2js/dynamicLibrary.2asm.js @@ -57,8 +57,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; var import$memoryBase = env.memoryBase | 0; var import$tableBase = env.tableBase | 0; function foo() { diff --git a/test/wasm2js/dynamicLibrary.2asm.js.opt b/test/wasm2js/dynamicLibrary.2asm.js.opt index 61bdab183..543f755f3 100644 --- a/test/wasm2js/dynamicLibrary.2asm.js.opt +++ b/test/wasm2js/dynamicLibrary.2asm.js.opt @@ -57,8 +57,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; var import$memoryBase = env.memoryBase | 0; var import$tableBase = env.tableBase | 0; function foo() { diff --git a/test/wasm2js/empty_export.2asm.js b/test/wasm2js/empty_export.2asm.js index 7a6a012e7..90655a778 100644 --- a/test/wasm2js/empty_export.2asm.js +++ b/test/wasm2js/empty_export.2asm.js @@ -10,8 +10,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function foo() { } diff --git a/test/wasm2js/empty_export.2asm.js.opt b/test/wasm2js/empty_export.2asm.js.opt index 7a6a012e7..90655a778 100644 --- a/test/wasm2js/empty_export.2asm.js.opt +++ b/test/wasm2js/empty_export.2asm.js.opt @@ -10,8 +10,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function foo() { } diff --git a/test/wasm2js/empty_imported_table.2asm.js b/test/wasm2js/empty_imported_table.2asm.js index 62f3c761e..28423a988 100644 --- a/test/wasm2js/empty_imported_table.2asm.js +++ b/test/wasm2js/empty_imported_table.2asm.js @@ -18,8 +18,6 @@ function asmFunc(global, env, buffer) { var Math_ceil = global.Math.ceil; var Math_sqrt = global.Math.sqrt; var abort = env.abort; - var nan = global.NaN; - var infinity = global.Infinity; var import$table$0 = env.table; var i64toi32_i32$HIGH_BITS = 0; return { diff --git a/test/wasm2js/empty_table.2asm.js b/test/wasm2js/empty_table.2asm.js index 91dfa174c..f5656223c 100644 --- a/test/wasm2js/empty_table.2asm.js +++ b/test/wasm2js/empty_table.2asm.js @@ -10,8 +10,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; return { }; diff --git a/test/wasm2js/emscripten-grow-no.2asm.js b/test/wasm2js/emscripten-grow-no.2asm.js index 66e3305ab..79963d662 100644 --- a/test/wasm2js/emscripten-grow-no.2asm.js +++ b/test/wasm2js/emscripten-grow-no.2asm.js @@ -45,8 +45,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; // EMSCRIPTEN_START_FUNCS ; // EMSCRIPTEN_END_FUNCS diff --git a/test/wasm2js/emscripten-grow-no.2asm.js.opt b/test/wasm2js/emscripten-grow-no.2asm.js.opt index 66e3305ab..79963d662 100644 --- a/test/wasm2js/emscripten-grow-no.2asm.js.opt +++ b/test/wasm2js/emscripten-grow-no.2asm.js.opt @@ -45,8 +45,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; // EMSCRIPTEN_START_FUNCS ; // EMSCRIPTEN_END_FUNCS diff --git a/test/wasm2js/emscripten-grow-yes.2asm.js b/test/wasm2js/emscripten-grow-yes.2asm.js index 8fe28321c..789db164b 100644 --- a/test/wasm2js/emscripten-grow-yes.2asm.js +++ b/test/wasm2js/emscripten-grow-yes.2asm.js @@ -46,8 +46,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; // EMSCRIPTEN_START_FUNCS ; function $0() { diff --git a/test/wasm2js/emscripten-grow-yes.2asm.js.opt b/test/wasm2js/emscripten-grow-yes.2asm.js.opt index 8fe28321c..789db164b 100644 --- a/test/wasm2js/emscripten-grow-yes.2asm.js.opt +++ b/test/wasm2js/emscripten-grow-yes.2asm.js.opt @@ -46,8 +46,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; // EMSCRIPTEN_START_FUNCS ; function $0() { diff --git a/test/wasm2js/emscripten.2asm.js b/test/wasm2js/emscripten.2asm.js index 81d272c6f..8ba8564ce 100644 --- a/test/wasm2js/emscripten.2asm.js +++ b/test/wasm2js/emscripten.2asm.js @@ -48,8 +48,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; var syscall$6 = env.__syscall6; var syscall$54 = env.__syscall54; // EMSCRIPTEN_START_FUNCS diff --git a/test/wasm2js/emscripten.2asm.js.opt b/test/wasm2js/emscripten.2asm.js.opt index dd28fd880..caef23896 100644 --- a/test/wasm2js/emscripten.2asm.js.opt +++ b/test/wasm2js/emscripten.2asm.js.opt @@ -60,8 +60,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; var syscall$6 = env.__syscall6; var syscall$54 = env.__syscall54; // EMSCRIPTEN_START_FUNCS diff --git a/test/wasm2js/endianness.2asm.js b/test/wasm2js/endianness.2asm.js index 12b4c8d14..493f4100e 100644 --- a/test/wasm2js/endianness.2asm.js +++ b/test/wasm2js/endianness.2asm.js @@ -51,8 +51,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; var env = imports.env; var setTempRet0 = env.setTempRet0; var i64toi32_i32$HIGH_BITS = 0; diff --git a/test/wasm2js/excess_fallthrough.2asm.js b/test/wasm2js/excess_fallthrough.2asm.js index 9bad3f3a7..2319af1f0 100644 --- a/test/wasm2js/excess_fallthrough.2asm.js +++ b/test/wasm2js/excess_fallthrough.2asm.js @@ -12,8 +12,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function bar() { } diff --git a/test/wasm2js/excess_fallthrough.2asm.js.opt b/test/wasm2js/excess_fallthrough.2asm.js.opt index 0a71bff5e..172a5fbee 100644 --- a/test/wasm2js/excess_fallthrough.2asm.js.opt +++ b/test/wasm2js/excess_fallthrough.2asm.js.opt @@ -12,8 +12,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function foo($0) { $0 = $0 | 0; wasm2js_trap(); diff --git a/test/wasm2js/export_global.2asm.js b/test/wasm2js/export_global.2asm.js index b2efa0b56..61c28d765 100644 --- a/test/wasm2js/export_global.2asm.js +++ b/test/wasm2js/export_global.2asm.js @@ -10,8 +10,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; var global0 = 655360; function $0() { return 42 | 0; diff --git a/test/wasm2js/export_global.2asm.js.opt b/test/wasm2js/export_global.2asm.js.opt index 2b60adaf6..6706698f9 100644 --- a/test/wasm2js/export_global.2asm.js.opt +++ b/test/wasm2js/export_global.2asm.js.opt @@ -10,8 +10,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; var global0 = 655360; function $0() { return 42; diff --git a/test/wasm2js/f32.2asm.js b/test/wasm2js/f32.2asm.js index 728d9eb84..4301a6bae 100644 --- a/test/wasm2js/f32.2asm.js +++ b/test/wasm2js/f32.2asm.js @@ -10,8 +10,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function $0(x, y) { x = Math_fround(x); y = Math_fround(y); diff --git a/test/wasm2js/f32_cmp.2asm.js b/test/wasm2js/f32_cmp.2asm.js index 85a02897b..0cb2c69e7 100644 --- a/test/wasm2js/f32_cmp.2asm.js +++ b/test/wasm2js/f32_cmp.2asm.js @@ -10,8 +10,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function $0(x, y) { x = Math_fround(x); y = Math_fround(y); diff --git a/test/wasm2js/f64_cmp.2asm.js b/test/wasm2js/f64_cmp.2asm.js index d39175278..947d32a74 100644 --- a/test/wasm2js/f64_cmp.2asm.js +++ b/test/wasm2js/f64_cmp.2asm.js @@ -10,8 +10,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function $0(x, y) { x = +x; y = +y; diff --git a/test/wasm2js/fac.2asm.js b/test/wasm2js/fac.2asm.js index ac0640d36..b1765575f 100644 --- a/test/wasm2js/fac.2asm.js +++ b/test/wasm2js/fac.2asm.js @@ -11,8 +11,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; var env = imports.env; var setTempRet0 = env.setTempRet0; var i64toi32_i32$HIGH_BITS = 0; diff --git a/test/wasm2js/float-ops.2asm.js b/test/wasm2js/float-ops.2asm.js index c9fe7cde6..3749da5b4 100644 --- a/test/wasm2js/float-ops.2asm.js +++ b/test/wasm2js/float-ops.2asm.js @@ -10,8 +10,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function $1($0, $1_1) { $0 = Math_fround($0); $1_1 = Math_fround($1_1); diff --git a/test/wasm2js/float-ops.2asm.js.opt b/test/wasm2js/float-ops.2asm.js.opt index 620948556..204774e5c 100644 --- a/test/wasm2js/float-ops.2asm.js.opt +++ b/test/wasm2js/float-ops.2asm.js.opt @@ -10,8 +10,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function $1($0, $1_1) { $0 = Math_fround($0); $1_1 = Math_fround($1_1); diff --git a/test/wasm2js/float_literals-modified.2asm.js b/test/wasm2js/float_literals-modified.2asm.js index 2792deed7..1a2b86331 100644 --- a/test/wasm2js/float_literals-modified.2asm.js +++ b/test/wasm2js/float_literals-modified.2asm.js @@ -29,57 +29,55 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; var env = imports.env; var setTempRet0 = env.setTempRet0; var i64toi32_i32$HIGH_BITS = 0; function $0() { - return (wasm2js_scratch_store_f32(Math_fround(nan)), wasm2js_scratch_load_i32(2)) | 0; + return (wasm2js_scratch_store_f32(Math_fround(NaN)), wasm2js_scratch_load_i32(2)) | 0; } function $1() { - return (wasm2js_scratch_store_f32(Math_fround(nan)), wasm2js_scratch_load_i32(2)) | 0; + return (wasm2js_scratch_store_f32(Math_fround(NaN)), wasm2js_scratch_load_i32(2)) | 0; } function $2() { - return (wasm2js_scratch_store_f32(Math_fround(-nan)), wasm2js_scratch_load_i32(2)) | 0; + return (wasm2js_scratch_store_f32(Math_fround(-NaN)), wasm2js_scratch_load_i32(2)) | 0; } function $3() { - return (wasm2js_scratch_store_f32(Math_fround(nan)), wasm2js_scratch_load_i32(2)) | 0; + return (wasm2js_scratch_store_f32(Math_fround(NaN)), wasm2js_scratch_load_i32(2)) | 0; } function $4() { - return (wasm2js_scratch_store_f32(Math_fround(nan)), wasm2js_scratch_load_i32(2)) | 0; + return (wasm2js_scratch_store_f32(Math_fround(NaN)), wasm2js_scratch_load_i32(2)) | 0; } function $5() { - return (wasm2js_scratch_store_f32(Math_fround(-nan)), wasm2js_scratch_load_i32(2)) | 0; + return (wasm2js_scratch_store_f32(Math_fround(-NaN)), wasm2js_scratch_load_i32(2)) | 0; } function $6() { - return (wasm2js_scratch_store_f32(Math_fround(nan)), wasm2js_scratch_load_i32(2)) | 0; + return (wasm2js_scratch_store_f32(Math_fround(NaN)), wasm2js_scratch_load_i32(2)) | 0; } function $7() { - return (wasm2js_scratch_store_f32(Math_fround(nan)), wasm2js_scratch_load_i32(2)) | 0; + return (wasm2js_scratch_store_f32(Math_fround(NaN)), wasm2js_scratch_load_i32(2)) | 0; } function $8() { - return (wasm2js_scratch_store_f32(Math_fround(-nan)), wasm2js_scratch_load_i32(2)) | 0; + return (wasm2js_scratch_store_f32(Math_fround(-NaN)), wasm2js_scratch_load_i32(2)) | 0; } function $9() { - return (wasm2js_scratch_store_f32(Math_fround(infinity)), wasm2js_scratch_load_i32(2)) | 0; + return (wasm2js_scratch_store_f32(Math_fround(Infinity)), wasm2js_scratch_load_i32(2)) | 0; } function $10() { - return (wasm2js_scratch_store_f32(Math_fround(infinity)), wasm2js_scratch_load_i32(2)) | 0; + return (wasm2js_scratch_store_f32(Math_fround(Infinity)), wasm2js_scratch_load_i32(2)) | 0; } function $11() { - return (wasm2js_scratch_store_f32(Math_fround(-infinity)), wasm2js_scratch_load_i32(2)) | 0; + return (wasm2js_scratch_store_f32(Math_fround(-Infinity)), wasm2js_scratch_load_i32(2)) | 0; } function $12() { @@ -156,7 +154,7 @@ function asmFunc(imports) { function $30() { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - wasm2js_scratch_store_f64(+(nan)); + wasm2js_scratch_store_f64(+(NaN)); i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; @@ -165,7 +163,7 @@ function asmFunc(imports) { function $31() { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - wasm2js_scratch_store_f64(+(nan)); + wasm2js_scratch_store_f64(+(NaN)); i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; @@ -174,7 +172,7 @@ function asmFunc(imports) { function $32() { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - wasm2js_scratch_store_f64(+(-nan)); + wasm2js_scratch_store_f64(+(-NaN)); i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; @@ -183,7 +181,7 @@ function asmFunc(imports) { function $33() { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - wasm2js_scratch_store_f64(+(nan)); + wasm2js_scratch_store_f64(+(NaN)); i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; @@ -192,7 +190,7 @@ function asmFunc(imports) { function $34() { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - wasm2js_scratch_store_f64(+(nan)); + wasm2js_scratch_store_f64(+(NaN)); i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; @@ -201,7 +199,7 @@ function asmFunc(imports) { function $35() { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - wasm2js_scratch_store_f64(+(-nan)); + wasm2js_scratch_store_f64(+(-NaN)); i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; @@ -210,7 +208,7 @@ function asmFunc(imports) { function $36() { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - wasm2js_scratch_store_f64(+(nan)); + wasm2js_scratch_store_f64(+(NaN)); i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; @@ -219,7 +217,7 @@ function asmFunc(imports) { function $37() { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - wasm2js_scratch_store_f64(+(nan)); + wasm2js_scratch_store_f64(+(NaN)); i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; @@ -228,7 +226,7 @@ function asmFunc(imports) { function $38() { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - wasm2js_scratch_store_f64(+(-nan)); + wasm2js_scratch_store_f64(+(-NaN)); i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; @@ -237,7 +235,7 @@ function asmFunc(imports) { function $39() { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - wasm2js_scratch_store_f64(+(infinity)); + wasm2js_scratch_store_f64(+(Infinity)); i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; @@ -246,7 +244,7 @@ function asmFunc(imports) { function $40() { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - wasm2js_scratch_store_f64(+(infinity)); + wasm2js_scratch_store_f64(+(Infinity)); i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; @@ -255,7 +253,7 @@ function asmFunc(imports) { function $41() { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - wasm2js_scratch_store_f64(+(-infinity)); + wasm2js_scratch_store_f64(+(-Infinity)); i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; diff --git a/test/wasm2js/float_literals-modified.2asm.js.opt b/test/wasm2js/float_literals-modified.2asm.js.opt index 613e52a40..f1290f96f 100644 --- a/test/wasm2js/float_literals-modified.2asm.js.opt +++ b/test/wasm2js/float_literals-modified.2asm.js.opt @@ -25,8 +25,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; var env = imports.env; var setTempRet0 = env.setTempRet0; var i64toi32_i32$HIGH_BITS = 0; @@ -104,7 +102,7 @@ function asmFunc(imports) { function legalstub$30() { var $0_1 = 0, $1 = 0; - wasm2js_scratch_store_f64(nan); + wasm2js_scratch_store_f64(NaN); $0_1 = wasm2js_scratch_load_i32(1) | 0; $1 = wasm2js_scratch_load_i32(0) | 0; i64toi32_i32$HIGH_BITS = $0_1; @@ -114,7 +112,7 @@ function asmFunc(imports) { function legalstub$32() { var $0_1 = 0, $1 = 0; - wasm2js_scratch_store_f64(-nan); + wasm2js_scratch_store_f64(-NaN); $0_1 = wasm2js_scratch_load_i32(1) | 0; $1 = wasm2js_scratch_load_i32(0) | 0; i64toi32_i32$HIGH_BITS = $0_1; @@ -124,7 +122,7 @@ function asmFunc(imports) { function legalstub$34() { var $0_1 = 0, $1 = 0; - wasm2js_scratch_store_f64(nan); + wasm2js_scratch_store_f64(NaN); $0_1 = wasm2js_scratch_load_i32(1) | 0; $1 = wasm2js_scratch_load_i32(0) | 0; i64toi32_i32$HIGH_BITS = $0_1; @@ -134,7 +132,7 @@ function asmFunc(imports) { function legalstub$35() { var $0_1 = 0, $1 = 0; - wasm2js_scratch_store_f64(-nan); + wasm2js_scratch_store_f64(-NaN); $0_1 = wasm2js_scratch_load_i32(1) | 0; $1 = wasm2js_scratch_load_i32(0) | 0; i64toi32_i32$HIGH_BITS = $0_1; @@ -144,7 +142,7 @@ function asmFunc(imports) { function legalstub$36() { var $0_1 = 0, $1 = 0; - wasm2js_scratch_store_f64(nan); + wasm2js_scratch_store_f64(NaN); $0_1 = wasm2js_scratch_load_i32(1) | 0; $1 = wasm2js_scratch_load_i32(0) | 0; i64toi32_i32$HIGH_BITS = $0_1; @@ -154,7 +152,7 @@ function asmFunc(imports) { function legalstub$37() { var $0_1 = 0, $1 = 0; - wasm2js_scratch_store_f64(nan); + wasm2js_scratch_store_f64(NaN); $0_1 = wasm2js_scratch_load_i32(1) | 0; $1 = wasm2js_scratch_load_i32(0) | 0; i64toi32_i32$HIGH_BITS = $0_1; @@ -164,7 +162,7 @@ function asmFunc(imports) { function legalstub$38() { var $0_1 = 0, $1 = 0; - wasm2js_scratch_store_f64(-nan); + wasm2js_scratch_store_f64(-NaN); $0_1 = wasm2js_scratch_load_i32(1) | 0; $1 = wasm2js_scratch_load_i32(0) | 0; i64toi32_i32$HIGH_BITS = $0_1; @@ -174,7 +172,7 @@ function asmFunc(imports) { function legalstub$39() { var $0_1 = 0, $1 = 0; - wasm2js_scratch_store_f64(infinity); + wasm2js_scratch_store_f64(Infinity); $0_1 = wasm2js_scratch_load_i32(1) | 0; $1 = wasm2js_scratch_load_i32(0) | 0; i64toi32_i32$HIGH_BITS = $0_1; @@ -184,7 +182,7 @@ function asmFunc(imports) { function legalstub$41() { var $0_1 = 0, $1 = 0; - wasm2js_scratch_store_f64(-infinity); + wasm2js_scratch_store_f64(-Infinity); $0_1 = wasm2js_scratch_load_i32(1) | 0; $1 = wasm2js_scratch_load_i32(0) | 0; i64toi32_i32$HIGH_BITS = $0_1; diff --git a/test/wasm2js/float_misc.2asm.js b/test/wasm2js/float_misc.2asm.js index e175aa6ac..7a7a3dce8 100644 --- a/test/wasm2js/float_misc.2asm.js +++ b/test/wasm2js/float_misc.2asm.js @@ -40,8 +40,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function $0(x, y) { x = Math_fround(x); y = Math_fround(y); diff --git a/test/wasm2js/forward.2asm.js b/test/wasm2js/forward.2asm.js index d20479bf5..dab073477 100644 --- a/test/wasm2js/forward.2asm.js +++ b/test/wasm2js/forward.2asm.js @@ -10,8 +10,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function even(n) { n = n | 0; var $10 = 0; diff --git a/test/wasm2js/func-ptr-offset.2asm.js b/test/wasm2js/func-ptr-offset.2asm.js index a6e8289c8..e9179426a 100644 --- a/test/wasm2js/func-ptr-offset.2asm.js +++ b/test/wasm2js/func-ptr-offset.2asm.js @@ -10,8 +10,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function t1() { return 1 | 0; } diff --git a/test/wasm2js/func-ptr-offset.2asm.js.opt b/test/wasm2js/func-ptr-offset.2asm.js.opt index 04b4c640d..328afa2d5 100644 --- a/test/wasm2js/func-ptr-offset.2asm.js.opt +++ b/test/wasm2js/func-ptr-offset.2asm.js.opt @@ -10,8 +10,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function t1() { return 1; } diff --git a/test/wasm2js/func_ptrs.2asm.js b/test/wasm2js/func_ptrs.2asm.js index 3da7a5064..4b7c4fd44 100644 --- a/test/wasm2js/func_ptrs.2asm.js +++ b/test/wasm2js/func_ptrs.2asm.js @@ -11,8 +11,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; var spectest = imports.spectest; var print = spectest.print_i32; function $3() { @@ -61,8 +59,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function t1() { return 1 | 0; } @@ -116,8 +112,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function t1() { return 1 | 0; } diff --git a/test/wasm2js/get-set-local.2asm.js b/test/wasm2js/get-set-local.2asm.js index 30557e584..903321282 100644 --- a/test/wasm2js/get-set-local.2asm.js +++ b/test/wasm2js/get-set-local.2asm.js @@ -10,8 +10,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function $1($0, r, r$hi) { $0 = $0 | 0; r = r | 0; diff --git a/test/wasm2js/get-set-local.2asm.js.opt b/test/wasm2js/get-set-local.2asm.js.opt index e9dd6604f..e6c9a2844 100644 --- a/test/wasm2js/get-set-local.2asm.js.opt +++ b/test/wasm2js/get-set-local.2asm.js.opt @@ -10,8 +10,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function legalstub$1($0, $1, $2) { return !$2 & ($0 | 0) == ($1 | 0); } diff --git a/test/wasm2js/get_local.2asm.js b/test/wasm2js/get_local.2asm.js index 8eed0e992..3727c8b48 100644 --- a/test/wasm2js/get_local.2asm.js +++ b/test/wasm2js/get_local.2asm.js @@ -11,8 +11,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; var env = imports.env; var setTempRet0 = env.setTempRet0; var i64toi32_i32$HIGH_BITS = 0; diff --git a/test/wasm2js/global_i64.2asm.js b/test/wasm2js/global_i64.2asm.js index 71073de91..37c8b15fa 100644 --- a/test/wasm2js/global_i64.2asm.js +++ b/test/wasm2js/global_i64.2asm.js @@ -10,8 +10,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; var f = -1412567121; var f$hi = 305419896; function call($0, $0$hi) { diff --git a/test/wasm2js/global_i64.2asm.js.opt b/test/wasm2js/global_i64.2asm.js.opt index 9399e09d5..e28ae7293 100644 --- a/test/wasm2js/global_i64.2asm.js.opt +++ b/test/wasm2js/global_i64.2asm.js.opt @@ -10,8 +10,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function $1() { } diff --git a/test/wasm2js/grow-memory-tricky.2asm.js b/test/wasm2js/grow-memory-tricky.2asm.js index 74305009f..0dc0e1ee1 100644 --- a/test/wasm2js/grow-memory-tricky.2asm.js +++ b/test/wasm2js/grow-memory-tricky.2asm.js @@ -19,8 +19,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function $0() { var wasm2js_i32$0 = 0, wasm2js_i32$1 = 0; (wasm2js_i32$0 = 0, wasm2js_i32$1 = __wasm_memory_grow(1 | 0)), HEAP32[wasm2js_i32$0 >> 2] = wasm2js_i32$1; diff --git a/test/wasm2js/grow-memory-tricky.2asm.js.opt b/test/wasm2js/grow-memory-tricky.2asm.js.opt index e1b090e3f..d02bfcaa6 100644 --- a/test/wasm2js/grow-memory-tricky.2asm.js.opt +++ b/test/wasm2js/grow-memory-tricky.2asm.js.opt @@ -19,8 +19,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function $0() { var wasm2js_i32$0 = 0, wasm2js_i32$1 = 0; (wasm2js_i32$0 = 0, wasm2js_i32$1 = __wasm_memory_grow(1)), HEAP32[wasm2js_i32$0 >> 2] = wasm2js_i32$1; diff --git a/test/wasm2js/grow_memory.2asm.js b/test/wasm2js/grow_memory.2asm.js index 598b027b3..83a9b998d 100644 --- a/test/wasm2js/grow_memory.2asm.js +++ b/test/wasm2js/grow_memory.2asm.js @@ -19,8 +19,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function $0(var$0) { var$0 = var$0 | 0; return __wasm_memory_grow(var$0 | 0) | 0; diff --git a/test/wasm2js/i32.2asm.js b/test/wasm2js/i32.2asm.js index 6aa4ef05e..691ff7bb2 100644 --- a/test/wasm2js/i32.2asm.js +++ b/test/wasm2js/i32.2asm.js @@ -10,8 +10,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function $0(x, y) { x = x | 0; y = y | 0; diff --git a/test/wasm2js/i64-add-sub.2asm.js b/test/wasm2js/i64-add-sub.2asm.js index 0351d89e0..a5654efcc 100644 --- a/test/wasm2js/i64-add-sub.2asm.js +++ b/test/wasm2js/i64-add-sub.2asm.js @@ -10,8 +10,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function $1($0, $0$hi, $1_1, $1$hi, r, r$hi) { $0 = $0 | 0; $0$hi = $0$hi | 0; diff --git a/test/wasm2js/i64-add-sub.2asm.js.opt b/test/wasm2js/i64-add-sub.2asm.js.opt index 4d7248586..4c3f55617 100644 --- a/test/wasm2js/i64-add-sub.2asm.js.opt +++ b/test/wasm2js/i64-add-sub.2asm.js.opt @@ -10,8 +10,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function legalstub$1($0, $1, $2, $3, $4, $5) { $1 = $1 + $3 | 0; $0 = $0 + $2 | 0; diff --git a/test/wasm2js/i64-ctz.2asm.js b/test/wasm2js/i64-ctz.2asm.js index 9fb18e5e7..e12cea00b 100644 --- a/test/wasm2js/i64-ctz.2asm.js +++ b/test/wasm2js/i64-ctz.2asm.js @@ -11,8 +11,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; var env = imports.env; var setTempRet0 = env.setTempRet0; var i64toi32_i32$HIGH_BITS = 0; diff --git a/test/wasm2js/i64-ctz.2asm.js.opt b/test/wasm2js/i64-ctz.2asm.js.opt index 0d6ffd697..0d6ea794d 100644 --- a/test/wasm2js/i64-ctz.2asm.js.opt +++ b/test/wasm2js/i64-ctz.2asm.js.opt @@ -11,8 +11,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; var env = imports.env; var setTempRet0 = env.setTempRet0; var i64toi32_i32$HIGH_BITS = 0; diff --git a/test/wasm2js/i64-lowering.2asm.js b/test/wasm2js/i64-lowering.2asm.js index 75d4db3c6..2679293f9 100644 --- a/test/wasm2js/i64-lowering.2asm.js +++ b/test/wasm2js/i64-lowering.2asm.js @@ -10,8 +10,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function $1($0, $0$hi, $1_1, $1$hi) { $0 = $0 | 0; $0$hi = $0$hi | 0; diff --git a/test/wasm2js/i64-lowering.2asm.js.opt b/test/wasm2js/i64-lowering.2asm.js.opt index 52d13859c..9c8b6e38c 100644 --- a/test/wasm2js/i64-lowering.2asm.js.opt +++ b/test/wasm2js/i64-lowering.2asm.js.opt @@ -10,8 +10,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function legalstub$1($0, $1, $2, $3) { return ($0 | 0) == ($2 | 0) & ($1 | 0) == ($3 | 0); } diff --git a/test/wasm2js/i64-rotate.2asm.js b/test/wasm2js/i64-rotate.2asm.js index cd1a40dba..ccdb6497e 100644 --- a/test/wasm2js/i64-rotate.2asm.js +++ b/test/wasm2js/i64-rotate.2asm.js @@ -10,8 +10,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; var i64toi32_i32$HIGH_BITS = 0; function $1($0, $0$hi, $1_1, $1$hi, $2_1, $2$hi) { $0 = $0 | 0; diff --git a/test/wasm2js/i64-rotate.2asm.js.opt b/test/wasm2js/i64-rotate.2asm.js.opt index 5cf2e36bb..69069f0e5 100644 --- a/test/wasm2js/i64-rotate.2asm.js.opt +++ b/test/wasm2js/i64-rotate.2asm.js.opt @@ -10,8 +10,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; var i64toi32_i32$HIGH_BITS = 0; function legalstub$1($0, $1, $2, $3, $4, $5) { var $6 = 0, $7 = 0, $8 = 0; diff --git a/test/wasm2js/i64-select.2asm.js b/test/wasm2js/i64-select.2asm.js index 91dfa174c..f5656223c 100644 --- a/test/wasm2js/i64-select.2asm.js +++ b/test/wasm2js/i64-select.2asm.js @@ -10,8 +10,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; return { }; diff --git a/test/wasm2js/i64-select.2asm.js.opt b/test/wasm2js/i64-select.2asm.js.opt index 91dfa174c..f5656223c 100644 --- a/test/wasm2js/i64-select.2asm.js.opt +++ b/test/wasm2js/i64-select.2asm.js.opt @@ -10,8 +10,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; return { }; diff --git a/test/wasm2js/i64-shifts.2asm.js b/test/wasm2js/i64-shifts.2asm.js index 5feee598f..1a3a272be 100644 --- a/test/wasm2js/i64-shifts.2asm.js +++ b/test/wasm2js/i64-shifts.2asm.js @@ -10,8 +10,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function $1($0, $0$hi, $1_1, $1$hi, $2_1, $2$hi) { $0 = $0 | 0; $0$hi = $0$hi | 0; diff --git a/test/wasm2js/i64-shifts.2asm.js.opt b/test/wasm2js/i64-shifts.2asm.js.opt index 797cbbcf5..d7224dd8c 100644 --- a/test/wasm2js/i64-shifts.2asm.js.opt +++ b/test/wasm2js/i64-shifts.2asm.js.opt @@ -10,8 +10,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function legalstub$1($0, $1, $2, $3, $4, $5) { $3 = $0; $0 = $2 & 31; diff --git a/test/wasm2js/if_unreachable.2asm.js b/test/wasm2js/if_unreachable.2asm.js index 91dfa174c..f5656223c 100644 --- a/test/wasm2js/if_unreachable.2asm.js +++ b/test/wasm2js/if_unreachable.2asm.js @@ -10,8 +10,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; return { }; diff --git a/test/wasm2js/if_unreachable.2asm.js.opt b/test/wasm2js/if_unreachable.2asm.js.opt index 91dfa174c..f5656223c 100644 --- a/test/wasm2js/if_unreachable.2asm.js.opt +++ b/test/wasm2js/if_unreachable.2asm.js.opt @@ -10,8 +10,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; return { }; diff --git a/test/wasm2js/indirect-select.2asm.js b/test/wasm2js/indirect-select.2asm.js index a5036ecf2..a515e1556 100644 --- a/test/wasm2js/indirect-select.2asm.js +++ b/test/wasm2js/indirect-select.2asm.js @@ -13,8 +13,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function $0(x) { x = x | 0; return FUNCTION_TABLE[(x ? 1 : 0) | 0]() | 0 | 0; diff --git a/test/wasm2js/indirect-select.2asm.js.opt b/test/wasm2js/indirect-select.2asm.js.opt index 6bb594e37..9b79e3a63 100644 --- a/test/wasm2js/indirect-select.2asm.js.opt +++ b/test/wasm2js/indirect-select.2asm.js.opt @@ -13,8 +13,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function $0($0_1) { $0_1 = $0_1 | 0; return FUNCTION_TABLE[!!$0_1 | 0]() | 0; diff --git a/test/wasm2js/int_exprs.2asm.js b/test/wasm2js/int_exprs.2asm.js index bd627c177..041e556b7 100644 --- a/test/wasm2js/int_exprs.2asm.js +++ b/test/wasm2js/int_exprs.2asm.js @@ -10,8 +10,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function $0(x, y) { x = x | 0; y = y | 0; @@ -248,8 +246,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; var env = imports.env; var setTempRet0 = env.setTempRet0; var i64toi32_i32$HIGH_BITS = 0; @@ -331,8 +327,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; var env = imports.env; var setTempRet0 = env.setTempRet0; var i64toi32_i32$HIGH_BITS = 0; @@ -413,8 +407,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; var env = imports.env; var setTempRet0 = env.setTempRet0; var i64toi32_i32$HIGH_BITS = 0; @@ -610,8 +602,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; var env = imports.env; var setTempRet0 = env.setTempRet0; var i64toi32_i32$HIGH_BITS = 0; @@ -807,8 +797,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; var env = imports.env; var setTempRet0 = env.setTempRet0; var __wasm_intrinsics_temp_i64 = 0; @@ -1619,8 +1607,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; var env = imports.env; var setTempRet0 = env.setTempRet0; var __wasm_intrinsics_temp_i64 = 0; @@ -2337,8 +2323,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; var env = imports.env; var setTempRet0 = env.setTempRet0; var __wasm_intrinsics_temp_i64 = 0; @@ -3037,8 +3021,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; var env = imports.env; var setTempRet0 = env.setTempRet0; var __wasm_intrinsics_temp_i64 = 0; @@ -3849,8 +3831,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; var env = imports.env; var setTempRet0 = env.setTempRet0; var __wasm_intrinsics_temp_i64 = 0; @@ -4501,8 +4481,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; var env = imports.env; var setTempRet0 = env.setTempRet0; var __wasm_intrinsics_temp_i64 = 0; @@ -5135,8 +5113,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; var env = imports.env; var setTempRet0 = env.setTempRet0; var __wasm_intrinsics_temp_i64 = 0; @@ -5853,8 +5829,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; var env = imports.env; var setTempRet0 = env.setTempRet0; var __wasm_intrinsics_temp_i64 = 0; @@ -6571,8 +6545,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; var env = imports.env; var setTempRet0 = env.setTempRet0; var __wasm_intrinsics_temp_i64 = 0; @@ -7289,8 +7261,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; var env = imports.env; var setTempRet0 = env.setTempRet0; var __wasm_intrinsics_temp_i64 = 0; @@ -8007,8 +7977,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; var env = imports.env; var setTempRet0 = env.setTempRet0; var __wasm_intrinsics_temp_i64 = 0; @@ -8707,8 +8675,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; var env = imports.env; var setTempRet0 = env.setTempRet0; var __wasm_intrinsics_temp_i64 = 0; @@ -9407,8 +9373,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; var env = imports.env; var setTempRet0 = env.setTempRet0; var __wasm_intrinsics_temp_i64 = 0; @@ -10107,8 +10071,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; var env = imports.env; var setTempRet0 = env.setTempRet0; var __wasm_intrinsics_temp_i64 = 0; diff --git a/test/wasm2js/labels.2asm.js b/test/wasm2js/labels.2asm.js index f63a2f251..3226a81a8 100644 --- a/test/wasm2js/labels.2asm.js +++ b/test/wasm2js/labels.2asm.js @@ -10,8 +10,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function $0() { var $0_1 = 0; exit : { diff --git a/test/wasm2js/left-to-right.2asm.js b/test/wasm2js/left-to-right.2asm.js index fc091fd81..a1c10e939 100644 --- a/test/wasm2js/left-to-right.2asm.js +++ b/test/wasm2js/left-to-right.2asm.js @@ -46,8 +46,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; var __wasm_intrinsics_temp_i64 = 0; var __wasm_intrinsics_temp_i64$hi = 0; var i64toi32_i32$HIGH_BITS = 0; diff --git a/test/wasm2js/minified-memory.2asm.js b/test/wasm2js/minified-memory.2asm.js index bdbeb5232..3e7b29b89 100644 --- a/test/wasm2js/minified-memory.2asm.js +++ b/test/wasm2js/minified-memory.2asm.js @@ -22,8 +22,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function $0() { return HEAP32[0 >> 2] | 0 | 0; } diff --git a/test/wasm2js/minified-memory.2asm.js.opt b/test/wasm2js/minified-memory.2asm.js.opt index 12d852176..9c5f51f88 100644 --- a/test/wasm2js/minified-memory.2asm.js.opt +++ b/test/wasm2js/minified-memory.2asm.js.opt @@ -22,8 +22,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function $0() { return HEAP32[0]; } diff --git a/test/wasm2js/minus_minus.2asm.js b/test/wasm2js/minus_minus.2asm.js index 5420df7a7..8ca1fda7f 100644 --- a/test/wasm2js/minus_minus.2asm.js +++ b/test/wasm2js/minus_minus.2asm.js @@ -10,8 +10,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function $0() { return ~~- -7094.0 | 0; } diff --git a/test/wasm2js/minus_minus.2asm.js.opt b/test/wasm2js/minus_minus.2asm.js.opt index 823345fa3..36655118a 100644 --- a/test/wasm2js/minus_minus.2asm.js.opt +++ b/test/wasm2js/minus_minus.2asm.js.opt @@ -10,8 +10,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function $1() { } diff --git a/test/wasm2js/nested-selects.2asm.js b/test/wasm2js/nested-selects.2asm.js index c6c48fa69..3cbb81b46 100644 --- a/test/wasm2js/nested-selects.2asm.js +++ b/test/wasm2js/nested-selects.2asm.js @@ -10,8 +10,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function $1($0) { $0 = $0 | 0; return (($0 | 0) < (0 | 0) ? -1 : ($0 | 0) > (0 | 0) ? 1 : 0) | 0; diff --git a/test/wasm2js/nested-selects.2asm.js.opt b/test/wasm2js/nested-selects.2asm.js.opt index 4fb7e5e14..f66fd391f 100644 --- a/test/wasm2js/nested-selects.2asm.js.opt +++ b/test/wasm2js/nested-selects.2asm.js.opt @@ -10,8 +10,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function $1($0) { $0 = $0 | 0; return (($0 | 0) < 0 ? -1 : ($0 | 0) > 0) | 0; diff --git a/test/wasm2js/ordering.2asm.js b/test/wasm2js/ordering.2asm.js index c2d4d8a0d..672e8d8aa 100644 --- a/test/wasm2js/ordering.2asm.js +++ b/test/wasm2js/ordering.2asm.js @@ -13,8 +13,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function main() { var wasm2js_i32$0 = 0, wasm2js_i32$1 = 0, wasm2js_i32$2 = 0; FUNCTION_TABLE[foo(2 | 0) | 0 | 0](1) | 0; diff --git a/test/wasm2js/ordering.2asm.js.opt b/test/wasm2js/ordering.2asm.js.opt index 3e45117e9..912fdbacd 100644 --- a/test/wasm2js/ordering.2asm.js.opt +++ b/test/wasm2js/ordering.2asm.js.opt @@ -13,8 +13,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function main() { FUNCTION_TABLE[1](1) | 0; FUNCTION_TABLE[4](1) | 0; diff --git a/test/wasm2js/reinterpret.2asm.js b/test/wasm2js/reinterpret.2asm.js index ada204192..3ed871fbb 100644 --- a/test/wasm2js/reinterpret.2asm.js +++ b/test/wasm2js/reinterpret.2asm.js @@ -40,8 +40,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function $1($0) { $0 = $0 | 0; return ((wasm2js_scratch_store_f32((wasm2js_scratch_store_i32(2, $0), wasm2js_scratch_load_f32())), wasm2js_scratch_load_i32(2)) | 0) == ($0 | 0) | 0; diff --git a/test/wasm2js/reinterpret.2asm.js.opt b/test/wasm2js/reinterpret.2asm.js.opt index b14ea3c8d..e42dcf321 100644 --- a/test/wasm2js/reinterpret.2asm.js.opt +++ b/test/wasm2js/reinterpret.2asm.js.opt @@ -32,8 +32,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function $1($0) { $0 = $0 | 0; return 1; diff --git a/test/wasm2js/reinterpret_scratch.2asm.js b/test/wasm2js/reinterpret_scratch.2asm.js index d5f098724..ef5307733 100644 --- a/test/wasm2js/reinterpret_scratch.2asm.js +++ b/test/wasm2js/reinterpret_scratch.2asm.js @@ -38,8 +38,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function $0() { var i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, $0_1 = Math_fround(0); wasm2js_scratch_store_f64(+(305419896.0)); diff --git a/test/wasm2js/reinterpret_scratch.2asm.js.opt b/test/wasm2js/reinterpret_scratch.2asm.js.opt index 8f48bc983..d1e018442 100644 --- a/test/wasm2js/reinterpret_scratch.2asm.js.opt +++ b/test/wasm2js/reinterpret_scratch.2asm.js.opt @@ -34,8 +34,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function $0() { var $0_1 = 0; wasm2js_scratch_store_f64(305419896.0); diff --git a/test/wasm2js/set_local.2asm.js b/test/wasm2js/set_local.2asm.js index 1ebf653ba..e74c6427f 100644 --- a/test/wasm2js/set_local.2asm.js +++ b/test/wasm2js/set_local.2asm.js @@ -11,8 +11,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; var env = imports.env; var setTempRet0 = env.setTempRet0; var i64toi32_i32$HIGH_BITS = 0; diff --git a/test/wasm2js/sign_ext.2asm.js b/test/wasm2js/sign_ext.2asm.js index ec3ae37a6..4ce98c880 100644 --- a/test/wasm2js/sign_ext.2asm.js +++ b/test/wasm2js/sign_ext.2asm.js @@ -11,8 +11,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; var env = imports.env; var setTempRet0 = env.setTempRet0; var i64toi32_i32$HIGH_BITS = 0; diff --git a/test/wasm2js/sign_ext.2asm.js.opt b/test/wasm2js/sign_ext.2asm.js.opt index 64f9f0744..41f79ecc5 100644 --- a/test/wasm2js/sign_ext.2asm.js.opt +++ b/test/wasm2js/sign_ext.2asm.js.opt @@ -11,8 +11,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; var env = imports.env; var setTempRet0 = env.setTempRet0; var i64toi32_i32$HIGH_BITS = 0; diff --git a/test/wasm2js/stack-modified.2asm.js b/test/wasm2js/stack-modified.2asm.js index 91bfded1e..a03c3e3e8 100644 --- a/test/wasm2js/stack-modified.2asm.js +++ b/test/wasm2js/stack-modified.2asm.js @@ -11,8 +11,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; var env = imports.env; var setTempRet0 = env.setTempRet0; var i64toi32_i32$HIGH_BITS = 0; diff --git a/test/wasm2js/stack-modified.2asm.js.opt b/test/wasm2js/stack-modified.2asm.js.opt index 45203a50e..81976b280 100644 --- a/test/wasm2js/stack-modified.2asm.js.opt +++ b/test/wasm2js/stack-modified.2asm.js.opt @@ -11,8 +11,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; var env = imports.env; var setTempRet0 = env.setTempRet0; var i64toi32_i32$HIGH_BITS = 0; diff --git a/test/wasm2js/start_func.2asm.js b/test/wasm2js/start_func.2asm.js index 629f58a86..0ca4c66df 100644 --- a/test/wasm2js/start_func.2asm.js +++ b/test/wasm2js/start_func.2asm.js @@ -19,8 +19,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function foo() { HEAP32[1 >> 2] = 2; } diff --git a/test/wasm2js/start_func.2asm.js.opt b/test/wasm2js/start_func.2asm.js.opt index 7b692ac63..6a0027272 100644 --- a/test/wasm2js/start_func.2asm.js.opt +++ b/test/wasm2js/start_func.2asm.js.opt @@ -19,8 +19,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function foo() { HEAP32[0] = 2; } diff --git a/test/wasm2js/switch.2asm.js b/test/wasm2js/switch.2asm.js index 219fb33d5..8c4a1f0dd 100644 --- a/test/wasm2js/switch.2asm.js +++ b/test/wasm2js/switch.2asm.js @@ -11,8 +11,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; var env = imports.env; var setTempRet0 = env.setTempRet0; var i64toi32_i32$HIGH_BITS = 0; diff --git a/test/wasm2js/target_js.2asm.js b/test/wasm2js/target_js.2asm.js index f9f4b4a67..c0b06ff00 100644 --- a/test/wasm2js/target_js.2asm.js +++ b/test/wasm2js/target_js.2asm.js @@ -10,8 +10,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function func(x) { x = x | 0; return (1 << x | 0) ^ -1 | 0 | 0; diff --git a/test/wasm2js/target_js.2asm.js.opt b/test/wasm2js/target_js.2asm.js.opt index 12e1a475b..974f032ec 100644 --- a/test/wasm2js/target_js.2asm.js.opt +++ b/test/wasm2js/target_js.2asm.js.opt @@ -10,8 +10,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function func($0) { $0 = $0 | 0; return 1 << $0 ^ -1; diff --git a/test/wasm2js/tee_local.2asm.js b/test/wasm2js/tee_local.2asm.js index 871131ae2..318e5f995 100644 --- a/test/wasm2js/tee_local.2asm.js +++ b/test/wasm2js/tee_local.2asm.js @@ -11,8 +11,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; var env = imports.env; var setTempRet0 = env.setTempRet0; var i64toi32_i32$HIGH_BITS = 0; diff --git a/test/wasm2js/traps.2asm.js b/test/wasm2js/traps.2asm.js index ea76eff71..ee38b6055 100644 --- a/test/wasm2js/traps.2asm.js +++ b/test/wasm2js/traps.2asm.js @@ -10,8 +10,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; var __wasm_intrinsics_temp_i64 = 0; var __wasm_intrinsics_temp_i64$hi = 0; var i64toi32_i32$HIGH_BITS = 0; @@ -742,8 +740,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; var __wasm_intrinsics_temp_i64 = 0; var __wasm_intrinsics_temp_i64$hi = 0; var i64toi32_i32$HIGH_BITS = 0; @@ -1456,8 +1452,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function $0(x) { x = Math_fround(x); ~~x; @@ -1589,8 +1583,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function $0(i) { i = i | 0; HEAP32[i >> 2] | 0; diff --git a/test/wasm2js/unaligned.2asm.js b/test/wasm2js/unaligned.2asm.js index bfcffadb9..bf33c2d78 100644 --- a/test/wasm2js/unaligned.2asm.js +++ b/test/wasm2js/unaligned.2asm.js @@ -51,8 +51,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; var env = imports.env; var setTempRet0 = env.setTempRet0; var i64toi32_i32$HIGH_BITS = 0; diff --git a/test/wasm2js/unaligned.2asm.js.opt b/test/wasm2js/unaligned.2asm.js.opt index 701a839ea..552868ded 100644 --- a/test/wasm2js/unaligned.2asm.js.opt +++ b/test/wasm2js/unaligned.2asm.js.opt @@ -47,8 +47,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; var env = imports.env; var setTempRet0 = env.setTempRet0; var i64toi32_i32$HIGH_BITS = 0; diff --git a/test/wasm2js/unary-ops.2asm.js b/test/wasm2js/unary-ops.2asm.js index f00d4a388..154118048 100644 --- a/test/wasm2js/unary-ops.2asm.js +++ b/test/wasm2js/unary-ops.2asm.js @@ -10,8 +10,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; var i64toi32_i32$HIGH_BITS = 0; function $1($0) { $0 = $0 | 0; diff --git a/test/wasm2js/unary-ops.2asm.js.opt b/test/wasm2js/unary-ops.2asm.js.opt index bca65089b..76f3e1222 100644 --- a/test/wasm2js/unary-ops.2asm.js.opt +++ b/test/wasm2js/unary-ops.2asm.js.opt @@ -10,8 +10,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; var i64toi32_i32$HIGH_BITS = 0; function $1($0) { $0 = $0 | 0; diff --git a/test/wasm2js/unreachable-get-cycle.2asm.js b/test/wasm2js/unreachable-get-cycle.2asm.js index 91dfa174c..f5656223c 100644 --- a/test/wasm2js/unreachable-get-cycle.2asm.js +++ b/test/wasm2js/unreachable-get-cycle.2asm.js @@ -10,8 +10,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; return { }; diff --git a/test/wasm2js/unreachable-get-cycle.2asm.js.opt b/test/wasm2js/unreachable-get-cycle.2asm.js.opt index 91dfa174c..f5656223c 100644 --- a/test/wasm2js/unreachable-get-cycle.2asm.js.opt +++ b/test/wasm2js/unreachable-get-cycle.2asm.js.opt @@ -10,8 +10,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; return { }; diff --git a/test/wasm2js/unreachable-insts.2asm.js b/test/wasm2js/unreachable-insts.2asm.js index 91dfa174c..f5656223c 100644 --- a/test/wasm2js/unreachable-insts.2asm.js +++ b/test/wasm2js/unreachable-insts.2asm.js @@ -10,8 +10,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; return { }; diff --git a/test/wasm2js/unreachable-insts.2asm.js.opt b/test/wasm2js/unreachable-insts.2asm.js.opt index 91dfa174c..f5656223c 100644 --- a/test/wasm2js/unreachable-insts.2asm.js.opt +++ b/test/wasm2js/unreachable-insts.2asm.js.opt @@ -10,8 +10,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; return { }; diff --git a/test/wasm2js/unreachable-later.2asm.js b/test/wasm2js/unreachable-later.2asm.js index e3fd358d0..e5bc7d516 100644 --- a/test/wasm2js/unreachable-later.2asm.js +++ b/test/wasm2js/unreachable-later.2asm.js @@ -12,8 +12,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; var global$0 = 10; function $0($0_1) { $0_1 = $0_1 | 0; diff --git a/test/wasm2js/unreachable-later.2asm.js.opt b/test/wasm2js/unreachable-later.2asm.js.opt index c6a2de682..8fbb616d0 100644 --- a/test/wasm2js/unreachable-later.2asm.js.opt +++ b/test/wasm2js/unreachable-later.2asm.js.opt @@ -12,8 +12,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; var global$0 = 10; function $0($0_1) { $0_1 = $0_1 | 0; |