summaryrefslogtreecommitdiff
path: root/test/dump/dedupe-sig.txt
diff options
context:
space:
mode:
Diffstat (limited to 'test/dump/dedupe-sig.txt')
-rw-r--r--test/dump/dedupe-sig.txt77
1 files changed, 51 insertions, 26 deletions
diff --git a/test/dump/dedupe-sig.txt b/test/dump/dedupe-sig.txt
index e86cd132..988221d8 100644
--- a/test/dump/dedupe-sig.txt
+++ b/test/dump/dedupe-sig.txt
@@ -6,34 +6,59 @@
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
0000004: 0a00 0000 ; WASM_BINARY_VERSION
-0000008: 01 ; WASM_BINARY_SECTION_SIGNATURES
-0000009: 01 ; num signatures
+; section "signatures"
+0000008: 00 ; section size (guess)
+0000009: 0a ; string length
+000000a: 7369 676e 6174 7572 6573 ; section id: "signatures"
+0000014: 01 ; num signatures
; signature 0
-000000a: 01 ; num params
-000000b: 02 ; result_type
-000000c: 01 ; param type
-000000d: 08 ; WASM_BINARY_SECTION_IMPORTS
-000000e: 01 ; num imports
+0000015: 01 ; num params
+0000016: 02 ; result_type
+0000017: 01 ; param type
+0000008: 0f ; FIXUP section size
+; section "import_table"
+0000018: 00 ; section size (guess)
+0000019: 0c ; string length
+000001a: 696d 706f 7274 5f74 6162 6c65 ; section id: "import_table"
+0000026: 01 ; num imports
; import header 0
-000000f: 00 ; import signature index
-0000010: 03 ; string length
-0000011: 666f 6f ; import module name
-0000014: 03 ; string length
-0000015: 6261 72 ; import function name
-0000018: 0a ; WASM_BINARY_SECTION_FUNCTION_SIGNATURES
-0000019: 01 ; num functions
-000001a: 00 ; function 0 signature index
-000001b: 0b ; WASM_BINARY_SECTION_FUNCTION_BODIES
-000001c: 01 ; num functions
+0000027: 00 ; import signature index
+0000028: 03 ; string length
+0000029: 666f 6f ; import module name
+000002c: 03 ; string length
+000002d: 6261 72 ; import function name
+0000018: 17 ; FIXUP section size
+; section "function_signatures"
+0000030: 00 ; section size (guess)
+0000031: 13 ; string length
+0000032: 6675 6e63 7469 6f6e 5f73 6967 6e61 7475
+0000042: 7265 73 ; section id: "function_signatures"
+0000045: 01 ; num functions
+0000046: 00 ; function 0 signature index
+0000030: 16 ; FIXUP section size
+; section "function_bodies"
+0000047: 00 ; section size (guess)
+0000048: 0f ; string length
+0000049: 6675 6e63 7469 6f6e 5f62 6f64 6965 73 ; section id: "function_bodies"
+0000058: 01 ; num functions
; function body 0
-000001d: 00 ; func body size (guess)
-000001e: 00 ; local decl count
-000001f: 0b ; OPCODE_I64_CONST
-0000020: 00 ; i64 literal
-000001d: 03 ; FIXUP func body size
-0000021: 06 ; WASM_BINARY_SECTION_END
+0000059: 00 ; func body size (guess)
+000005a: 00 ; local decl count
+000005b: 0b ; OPCODE_I64_CONST
+000005c: 00 ; i64 literal
+0000059: 03 ; FIXUP func body size
+0000047: 15 ; FIXUP section size
+; section "end"
+000005d: 00 ; section size (guess)
+000005e: 03 ; string length
+000005f: 656e 64 ; section id: "end"
+000005d: 04 ; FIXUP section size
;; dump
-0000000: 0061 736d 0a00 0000 0101 0102 0108 0100
-0000010: 0366 6f6f 0362 6172 0a01 000b 0103 000b
-0000020: 0006
+0000000: 0061 736d 0a00 0000 0f0a 7369 676e 6174
+0000010: 7572 6573 0101 0201 170c 696d 706f 7274
+0000020: 5f74 6162 6c65 0100 0366 6f6f 0362 6172
+0000030: 1613 6675 6e63 7469 6f6e 5f73 6967 6e61
+0000040: 7475 7265 7301 0015 0f66 756e 6374 696f
+0000050: 6e5f 626f 6469 6573 0103 000b 0004 0365
+0000060: 6e64
;;; STDOUT ;;)