summaryrefslogtreecommitdiff
path: root/test/dump/table.txt
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2016-12-07 14:50:58 -0800
committerGitHub <noreply@github.com>2016-12-07 14:50:58 -0800
commit7db16fc3bb0daf170e5afcb2a78267f1d14b23c6 (patch)
treeb35f3e763ea42febecd0d7274ea994e9f8d00931 /test/dump/table.txt
parentdfec7714c1ac9b0ac2b126162f5f6703ed0fd665 (diff)
downloadwabt-7db16fc3bb0daf170e5afcb2a78267f1d14b23c6.tar.gz
wabt-7db16fc3bb0daf170e5afcb2a78267f1d14b23c6.tar.bz2
wabt-7db16fc3bb0daf170e5afcb2a78267f1d14b23c6.zip
wasmdump: improve print of tables and elements (#236)
Diffstat (limited to 'test/dump/table.txt')
-rw-r--r--test/dump/table.txt25
1 files changed, 24 insertions, 1 deletions
diff --git a/test/dump/table.txt b/test/dump/table.txt
index 16cbc35b..c4459a20 100644
--- a/test/dump/table.txt
+++ b/test/dump/table.txt
@@ -1,5 +1,5 @@
;;; TOOL: run-wasmdump
-;;; FLAGS: -v
+;;; FLAGS: -v --dump-verbose
(module
(type $t (func (param i32)))
(func (type $t))
@@ -88,6 +88,29 @@
0000032: 13 ; FIXUP section size
table.wasm: file format wasm 0x00000d
+Section Details:
+TYPE:
+ - [0] (i32) -> nil
+ - [1] (i32, i64) -> nil
+ - [2] () -> f64
+FUNCTION:
+ - func[0] sig=0
+ - func[1] sig=1
+ - func[2] sig=2
+TABLE:
+ - [0] type=anyfunc init=4 max=4
+ELEM:
+ - segment[0] table=0
+ - init i32=0
+ - func[0]
+ - func[0]
+ - func[1]
+ - func[2]
+CODE:
+ - func 0
+ - func 1
+ - func 2
+
Code Disassembly:
func 0
func 1