diff options
author | Thomas Lively <7121787+tlively@users.noreply.github.com> | 2020-04-09 11:41:40 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-09 11:41:40 -0700 |
commit | 9c75b8f8ef58347f2fab44463f9a65eb37212742 (patch) | |
tree | 8660dbae4ade8d07c7dc62bc76da0da13e35dd73 /test/passes/trap-mode-js.txt | |
parent | b3d79f406ab80d5f36995e03385df3903e52f46e (diff) | |
download | binaryen-9c75b8f8ef58347f2fab44463f9a65eb37212742.tar.gz binaryen-9c75b8f8ef58347f2fab44463f9a65eb37212742.tar.bz2 binaryen-9c75b8f8ef58347f2fab44463f9a65eb37212742.zip |
Remove function index printing (#2742)
`BinaryIndexes` was only used in two places (Print.cpp and
wasm-binary.h), so it didn't seem to be a great fit for
module-utils.h. This change moves it to wasm-binary.h and removes its
usage in Print.cpp. This means that function indexes are no longer
printed, but those were of limited utility and were the source of
annoying noise when updating tests, anyway.
Diffstat (limited to 'test/passes/trap-mode-js.txt')
-rw-r--r-- | test/passes/trap-mode-js.txt | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/test/passes/trap-mode-js.txt b/test/passes/trap-mode-js.txt index 9042f29b0..9efa803fd 100644 --- a/test/passes/trap-mode-js.txt +++ b/test/passes/trap-mode-js.txt @@ -8,7 +8,7 @@ (type $f64_=>_none (func (param f64))) (type $f64_=>_i32 (func (param f64) (result i32))) (import "asm2wasm" "f64-to-int" (func $f64-to-int (param f64) (result i32))) - (func $test_div (; 1 ;) (param $0 i32) (param $1 i64) + (func $test_div (param $0 i32) (param $1 i64) (drop (call $i32s-div (local.get $0) @@ -34,7 +34,7 @@ ) ) ) - (func $test_rem (; 2 ;) (param $0 i32) (param $1 i64) + (func $test_rem (param $0 i32) (param $1 i64) (drop (call $i32s-rem (local.get $0) @@ -60,7 +60,7 @@ ) ) ) - (func $test_f32_to_int (; 3 ;) (param $0 f32) + (func $test_f32_to_int (param $0 f32) (drop (call $f64-to-int (f64.promote_f32 @@ -86,7 +86,7 @@ ) ) ) - (func $test_f64_to_int (; 4 ;) (param $0 f64) + (func $test_f64_to_int (param $0 f64) (drop (call $f64-to-int (local.get $0) @@ -108,7 +108,7 @@ ) ) ) - (func $f32-to-int64 (; 5 ;) (param $0 f32) (result i64) + (func $f32-to-int64 (param $0 f32) (result i64) (if (result i64) (f32.ne (local.get $0) @@ -134,7 +134,7 @@ ) ) ) - (func $f32-to-uint64 (; 6 ;) (param $0 f32) (result i64) + (func $f32-to-uint64 (param $0 f32) (result i64) (if (result i64) (f32.ne (local.get $0) @@ -160,7 +160,7 @@ ) ) ) - (func $f64-to-int64 (; 7 ;) (param $0 f64) (result i64) + (func $f64-to-int64 (param $0 f64) (result i64) (if (result i64) (f64.ne (local.get $0) @@ -186,7 +186,7 @@ ) ) ) - (func $f64-to-uint64 (; 8 ;) (param $0 f64) (result i64) + (func $f64-to-uint64 (param $0 f64) (result i64) (if (result i64) (f64.ne (local.get $0) @@ -212,7 +212,7 @@ ) ) ) - (func $i32s-div (; 9 ;) (param $0 i32) (param $1 i32) (result i32) + (func $i32s-div (param $0 i32) (param $1 i32) (result i32) (if (result i32) (i32.eqz (local.get $1) @@ -237,7 +237,7 @@ ) ) ) - (func $i32s-rem (; 10 ;) (param $0 i32) (param $1 i32) (result i32) + (func $i32s-rem (param $0 i32) (param $1 i32) (result i32) (if (result i32) (i32.eqz (local.get $1) @@ -249,7 +249,7 @@ ) ) ) - (func $i32u-div (; 11 ;) (param $0 i32) (param $1 i32) (result i32) + (func $i32u-div (param $0 i32) (param $1 i32) (result i32) (if (result i32) (i32.eqz (local.get $1) @@ -261,7 +261,7 @@ ) ) ) - (func $i32u-rem (; 12 ;) (param $0 i32) (param $1 i32) (result i32) + (func $i32u-rem (param $0 i32) (param $1 i32) (result i32) (if (result i32) (i32.eqz (local.get $1) @@ -273,7 +273,7 @@ ) ) ) - (func $i64s-div (; 13 ;) (param $0 i64) (param $1 i64) (result i64) + (func $i64s-div (param $0 i64) (param $1 i64) (result i64) (if (result i64) (i64.eqz (local.get $1) @@ -298,7 +298,7 @@ ) ) ) - (func $i64s-rem (; 14 ;) (param $0 i64) (param $1 i64) (result i64) + (func $i64s-rem (param $0 i64) (param $1 i64) (result i64) (if (result i64) (i64.eqz (local.get $1) @@ -310,7 +310,7 @@ ) ) ) - (func $i64u-div (; 15 ;) (param $0 i64) (param $1 i64) (result i64) + (func $i64u-div (param $0 i64) (param $1 i64) (result i64) (if (result i64) (i64.eqz (local.get $1) @@ -322,7 +322,7 @@ ) ) ) - (func $i64u-rem (; 16 ;) (param $0 i64) (param $1 i64) (result i64) + (func $i64u-rem (param $0 i64) (param $1 i64) (result i64) (if (result i64) (i64.eqz (local.get $1) |