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/wasm2js/int_exprs.2asm.js | |
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/wasm2js/int_exprs.2asm.js')
-rw-r--r-- | test/wasm2js/int_exprs.2asm.js | 38 |
1 files changed, 0 insertions, 38 deletions
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; |