summaryrefslogtreecommitdiff
path: root/test/reference-types.wast.from-wast
diff options
context:
space:
mode:
authorThomas Lively <7121787+tlively@users.noreply.github.com>2020-04-09 11:41:40 -0700
committerGitHub <noreply@github.com>2020-04-09 11:41:40 -0700
commit9c75b8f8ef58347f2fab44463f9a65eb37212742 (patch)
tree8660dbae4ade8d07c7dc62bc76da0da13e35dd73 /test/reference-types.wast.from-wast
parentb3d79f406ab80d5f36995e03385df3903e52f46e (diff)
downloadbinaryen-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/reference-types.wast.from-wast')
-rw-r--r--test/reference-types.wast.from-wast38
1 files changed, 19 insertions, 19 deletions
diff --git a/test/reference-types.wast.from-wast b/test/reference-types.wast.from-wast
index 598e38e70..4fc170fce 100644
--- a/test/reference-types.wast.from-wast
+++ b/test/reference-types.wast.from-wast
@@ -21,22 +21,22 @@
(global $global_funcref2 (mut funcref) (ref.func $foo))
(export "export_func" (func $import_func))
(export "export_global" (global $import_global))
- (func $take_anyref (; 1 ;) (param $0 anyref)
+ (func $take_anyref (param $0 anyref)
(nop)
)
- (func $take_funcref (; 2 ;) (param $0 funcref)
+ (func $take_funcref (param $0 funcref)
(nop)
)
- (func $take_exnref (; 3 ;) (param $0 exnref)
+ (func $take_exnref (param $0 exnref)
(nop)
)
- (func $take_nullref (; 4 ;) (param $0 nullref)
+ (func $take_nullref (param $0 nullref)
(nop)
)
- (func $foo (; 5 ;)
+ (func $foo
(nop)
)
- (func $test (; 6 ;)
+ (func $test
(local $local_anyref anyref)
(local $local_funcref funcref)
(local $local_exnref exnref)
@@ -433,38 +433,38 @@
)
)
)
- (func $return_anyref (; 7 ;) (result anyref)
+ (func $return_anyref (result anyref)
(local $local_anyref anyref)
(local.get $local_anyref)
)
- (func $return_anyref2 (; 8 ;) (result anyref)
+ (func $return_anyref2 (result anyref)
(ref.func $foo)
)
- (func $return_anyref3 (; 9 ;) (result anyref)
+ (func $return_anyref3 (result anyref)
(local $local_exnref exnref)
(local.get $local_exnref)
)
- (func $return_anyref4 (; 10 ;) (result anyref)
+ (func $return_anyref4 (result anyref)
(ref.null)
)
- (func $return_funcref (; 11 ;) (result funcref)
+ (func $return_funcref (result funcref)
(ref.func $foo)
)
- (func $return_funcref2 (; 12 ;) (result funcref)
+ (func $return_funcref2 (result funcref)
(ref.null)
)
- (func $return_exnref (; 13 ;) (result exnref)
+ (func $return_exnref (result exnref)
(local $local_exnref exnref)
(local.get $local_exnref)
)
- (func $return_exnref2 (; 14 ;) (result exnref)
+ (func $return_exnref2 (result exnref)
(ref.null)
)
- (func $return_nullref (; 15 ;) (result nullref)
+ (func $return_nullref (result nullref)
(local $local_nullref nullref)
(local.get $local_nullref)
)
- (func $return_anyref_returns (; 16 ;) (result anyref)
+ (func $return_anyref_returns (result anyref)
(local $local_anyref anyref)
(local $local_exnref exnref)
(return
@@ -480,7 +480,7 @@
(ref.null)
)
)
- (func $return_funcref_returns (; 17 ;) (result funcref)
+ (func $return_funcref_returns (result funcref)
(return
(ref.func $foo)
)
@@ -488,7 +488,7 @@
(ref.null)
)
)
- (func $return_exnref_returns (; 18 ;) (result exnref)
+ (func $return_exnref_returns (result exnref)
(local $local_exnref exnref)
(return
(local.get $local_exnref)
@@ -497,7 +497,7 @@
(ref.null)
)
)
- (func $return_nullref_returns (; 19 ;) (result nullref)
+ (func $return_nullref_returns (result nullref)
(local $local_nullref nullref)
(return
(local.get $local_nullref)