;;; TOOL: run-objdump ;;; ARGS0: -v --enable-function-references (module (type $t0 (func)) (type $t1 (func)) (type $t2 (func (param (ref $t0) (ref $t1) (ref 1)))) (func $f1 (param (ref $t0) (ref 0)) (local (ref $t0) (ref 0) (ref $t1) (ref 1)) ) ) (;; STDERR ;;; 0000000: 0061 736d ; WASM_BINARY_MAGIC 0000004: 0100 0000 ; WASM_BINARY_VERSION ; section "Type" (1) 0000008: 01 ; section code 0000009: 00 ; section size (guess) 000000a: 04 ; num types ; func type 0 000000b: 60 ; func 000000c: 00 ; num params 000000d: 00 ; num results ; func type 1 000000e: 60 ; func 000000f: 00 ; num params 0000010: 00 ; num results ; func type 2 0000011: 60 ; func 0000012: 03 ; num params 0000013: 64 ; (ref 0) 0000014: 00 ; (ref 0) 0000015: 64 ; (ref 1) 0000016: 01 ; (ref 1) 0000017: 64 ; (ref 1) 0000018: 01 ; (ref 1) 0000019: 00 ; num results ; func type 3 000001a: 60 ; func 000001b: 02 ; num params 000001c: 64 ; (ref 0) 000001d: 00 ; (ref 0) 000001e: 64 ; (ref 0) 000001f: 00 ; (ref 0) 0000020: 00 ; num results 0000009: 17 ; FIXUP section size ; section "Function" (3) 0000021: 03 ; section code 0000022: 00 ; section size (guess) 0000023: 01 ; num functions 0000024: 03 ; function 0 signature index 0000022: 02 ; FIXUP section size ; section "Code" (10) 0000025: 0a ; section code 0000026: 00 ; section size (guess) 0000027: 01 ; num functions ; function body 0 0000028: 00 ; func body size (guess) 0000029: 02 ; local decl count 000002a: 02 ; local type count 000002b: 64 ; (ref 0) 000002c: 00 ; (ref 0) 000002d: 02 ; local type count 000002e: 64 ; (ref 1) 000002f: 01 ; (ref 1) 0000030: 0b ; end 0000028: 08 ; FIXUP func body size 0000026: 0a ; FIXUP section size ;;; STDERR ;;) (;; STDOUT ;;; typed-func-refs-locals.wasm: file format wasm 0x1 Code Disassembly: 000029 func[0]: 00002a: 02 64 00 | local[2..3] type=(ref 0) 00002d: 02 64 01 | local[4..5] type=(ref 1) 000030: 0b | end ;;; STDOUT ;;)