diff options
author | Sam Clegg <sbc@chromium.org> | 2019-04-25 07:50:15 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-25 07:50:15 -0700 |
commit | 09945884f7461135286357d14f993f9b5c5a329b (patch) | |
tree | 91e9940c495469d4029bacc3576a97bb8b215908 /test/wasm2js/f32.2asm.js | |
parent | c3ed0f176b36a502ef2e1fd915550a808b8d8f0b (diff) | |
download | binaryen-09945884f7461135286357d14f993f9b5c5a329b.tar.gz binaryen-09945884f7461135286357d14f993f9b5c5a329b.tar.bz2 binaryen-09945884f7461135286357d14f993f9b5c5a329b.zip |
Remove f32 legalization from LegalizeJSInterface (#2052)
As well as i64 splitting this pass was also converting f32 to f64
at the wasm boundry. However it appears this is not actually useful
and makes somethings (such as dynamic linking) harder.
Diffstat (limited to 'test/wasm2js/f32.2asm.js')
-rw-r--r-- | test/wasm2js/f32.2asm.js | 84 |
1 files changed, 14 insertions, 70 deletions
diff --git a/test/wasm2js/f32.2asm.js b/test/wasm2js/f32.2asm.js index a6c7d182b..8615d293c 100644 --- a/test/wasm2js/f32.2asm.js +++ b/test/wasm2js/f32.2asm.js @@ -120,62 +120,6 @@ function asmFunc(global, env, buffer) { return Math_fround((wasm2js_scratch_store_i32(0, (wasm2js_scratch_store_f32(x), wasm2js_scratch_load_i32(0)) & 2147483647 | (wasm2js_scratch_store_f32(y), wasm2js_scratch_load_i32(0)) & -2147483648), wasm2js_scratch_load_f32())); } - function legalstub$0($0_1, $1_1) { - return +$0(Math_fround($0_1), Math_fround($1_1)); - } - - function legalstub$1($0_1, $1_1) { - return +$1(Math_fround($0_1), Math_fround($1_1)); - } - - function legalstub$2($0_1, $1_1) { - return +$2(Math_fround($0_1), Math_fround($1_1)); - } - - function legalstub$3($0_1, $1_1) { - return +$3(Math_fround($0_1), Math_fround($1_1)); - } - - function legalstub$4($0_1) { - return +$4(Math_fround($0_1)); - } - - function legalstub$5($0_1, $1_1) { - return +$5(Math_fround($0_1), Math_fround($1_1)); - } - - function legalstub$6($0_1, $1_1) { - return +$6(Math_fround($0_1), Math_fround($1_1)); - } - - function legalstub$7($0_1) { - return +$7(Math_fround($0_1)); - } - - function legalstub$8($0_1) { - return +$8(Math_fround($0_1)); - } - - function legalstub$9($0_1) { - return +$9(Math_fround($0_1)); - } - - function legalstub$10($0_1) { - return +$10(Math_fround($0_1)); - } - - function legalstub$11($0_1) { - return +$11(Math_fround($0_1)); - } - - function legalstub$12($0_1) { - return +$12(Math_fround($0_1)); - } - - function legalstub$13($0_1, $1_1) { - return +$13(Math_fround($0_1), Math_fround($1_1)); - } - function __wasm_nearest_f32(var$0) { var var$1 = Math_fround(0), var$2 = Math_fround(0), wasm2js_f32$0 = Math_fround(0), wasm2js_f32$1 = Math_fround(0), wasm2js_i32$0 = 0; var$1 = Math_fround(Math_floor(var$0)); @@ -200,20 +144,20 @@ function asmFunc(global, env, buffer) { var FUNCTION_TABLE = []; return { - "add": legalstub$0, - "sub": legalstub$1, - "mul": legalstub$2, - "div": legalstub$3, - "sqrt": legalstub$4, - "min": legalstub$5, - "max": legalstub$6, - "ceil": legalstub$7, - "floor": legalstub$8, - "trunc": legalstub$9, - "nearest": legalstub$10, - "abs": legalstub$11, - "neg": legalstub$12, - "copysign": legalstub$13 + "add": $0, + "sub": $1, + "mul": $2, + "div": $3, + "sqrt": $4, + "min": $5, + "max": $6, + "ceil": $7, + "floor": $8, + "trunc": $9, + "nearest": $10, + "abs": $11, + "neg": $12, + "copysign": $13 }; } |