diff options
author | Ben Smith <binji@chromium.org> | 2016-03-09 15:35:50 -0800 |
---|---|---|
committer | Ben Smith <binji@chromium.org> | 2016-03-09 17:38:02 -0800 |
commit | 8b95260131a607bee33d8d70bfd64bb9319da62b (patch) | |
tree | d57ba2f1f04426a3e35edc0f00b91025061708cd /test/dump/unary.txt | |
parent | 902593052e7b54b2c75d0861941687373e070fab (diff) | |
download | wabt-8b95260131a607bee33d8d70bfd64bb9319da62b.tar.gz wabt-8b95260131a607bee33d8d70bfd64bb9319da62b.tar.bz2 wabt-8b95260131a607bee33d8d70bfd64bb9319da62b.zip |
sections have size and name as string
Diffstat (limited to 'test/dump/unary.txt')
-rw-r--r-- | test/dump/unary.txt | 112 |
1 files changed, 66 insertions, 46 deletions
diff --git a/test/dump/unary.txt b/test/dump/unary.txt index 05bb7632..9a63be2d 100644 --- a/test/dump/unary.txt +++ b/test/dump/unary.txt @@ -28,53 +28,73 @@ (;; 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: 00 ; num params -000000b: 00 ; result_type -000000c: 0a ; WASM_BINARY_SECTION_FUNCTION_SIGNATURES -000000d: 01 ; num functions -000000e: 00 ; function 0 signature index -000000f: 0b ; WASM_BINARY_SECTION_FUNCTION_BODIES -0000010: 01 ; num functions +0000015: 00 ; num params +0000016: 00 ; result_type +0000008: 0e ; FIXUP section size +; section "function_signatures" +0000017: 00 ; section size (guess) +0000018: 13 ; string length +0000019: 6675 6e63 7469 6f6e 5f73 6967 6e61 7475 +0000029: 7265 73 ; section id: "function_signatures" +000002c: 01 ; num functions +000002d: 00 ; function 0 signature index +0000017: 16 ; FIXUP section size +; section "function_bodies" +000002e: 00 ; section size (guess) +000002f: 0f ; string length +0000030: 6675 6e63 7469 6f6e 5f62 6f64 6965 73 ; section id: "function_bodies" +000003f: 01 ; num functions ; function body 0 -0000011: 00 ; func body size (guess) -0000012: 00 ; local decl count -0000013: 5a ; OPCODE_BOOL_NOT -0000014: 57 ; OPCODE_I32_CLZ -0000015: 58 ; OPCODE_I32_CTZ -0000016: 59 ; OPCODE_I32_POPCNT -0000017: 0a ; OPCODE_I32_CONST -0000018: 00 ; i32 literal -0000019: 72 ; OPCODE_I64_CLZ -000001a: 73 ; OPCODE_I64_CTZ -000001b: 74 ; OPCODE_I64_POPCNT -000001c: 0b ; OPCODE_I64_CONST -000001d: 00 ; i64 literal -000001e: 7c ; OPCODE_F32_NEG -000001f: 7b ; OPCODE_F32_ABS -0000020: 82 ; OPCODE_F32_SQRT -0000021: 7e ; OPCODE_F32_CEIL -0000022: 7f ; OPCODE_F32_FLOOR -0000023: 80 ; OPCODE_F32_TRUNC -0000024: 81 ; OPCODE_F32_NEAREST_INT -0000025: 0d ; OPCODE_F32_CONST -0000026: 0000 0000 ; f32 literal -000002a: 90 ; OPCODE_F64_NEG -000002b: 8f ; OPCODE_F64_ABS -000002c: 96 ; OPCODE_F64_SQRT -000002d: 92 ; OPCODE_F64_CEIL -000002e: 93 ; OPCODE_F64_FLOOR -000002f: 94 ; OPCODE_F64_TRUNC -0000030: 95 ; OPCODE_F64_NEAREST_INT -0000031: 0c ; OPCODE_F64_CONST -0000032: 0000 0000 0000 0000 ; f64 literal -0000011: 28 ; FIXUP func body size -000003a: 06 ; WASM_BINARY_SECTION_END +0000040: 00 ; func body size (guess) +0000041: 00 ; local decl count +0000042: 5a ; OPCODE_BOOL_NOT +0000043: 57 ; OPCODE_I32_CLZ +0000044: 58 ; OPCODE_I32_CTZ +0000045: 59 ; OPCODE_I32_POPCNT +0000046: 0a ; OPCODE_I32_CONST +0000047: 00 ; i32 literal +0000048: 72 ; OPCODE_I64_CLZ +0000049: 73 ; OPCODE_I64_CTZ +000004a: 74 ; OPCODE_I64_POPCNT +000004b: 0b ; OPCODE_I64_CONST +000004c: 00 ; i64 literal +000004d: 7c ; OPCODE_F32_NEG +000004e: 7b ; OPCODE_F32_ABS +000004f: 82 ; OPCODE_F32_SQRT +0000050: 7e ; OPCODE_F32_CEIL +0000051: 7f ; OPCODE_F32_FLOOR +0000052: 80 ; OPCODE_F32_TRUNC +0000053: 81 ; OPCODE_F32_NEAREST_INT +0000054: 0d ; OPCODE_F32_CONST +0000055: 0000 0000 ; f32 literal +0000059: 90 ; OPCODE_F64_NEG +000005a: 8f ; OPCODE_F64_ABS +000005b: 96 ; OPCODE_F64_SQRT +000005c: 92 ; OPCODE_F64_CEIL +000005d: 93 ; OPCODE_F64_FLOOR +000005e: 94 ; OPCODE_F64_TRUNC +000005f: 95 ; OPCODE_F64_NEAREST_INT +0000060: 0c ; OPCODE_F64_CONST +0000061: 0000 0000 0000 0000 ; f64 literal +0000040: 28 ; FIXUP func body size +000002e: 3a ; FIXUP section size +; section "end" +0000069: 00 ; section size (guess) +000006a: 03 ; string length +000006b: 656e 64 ; section id: "end" +0000069: 04 ; FIXUP section size ;; dump -0000000: 0061 736d 0a00 0000 0101 0000 0a01 000b -0000010: 0128 005a 5758 590a 0072 7374 0b00 7c7b -0000020: 827e 7f80 810d 0000 0000 908f 9692 9394 -0000030: 950c 0000 0000 0000 0000 06 +0000000: 0061 736d 0a00 0000 0e0a 7369 676e 6174 +0000010: 7572 6573 0100 0016 1366 756e 6374 696f +0000020: 6e5f 7369 676e 6174 7572 6573 0100 3a0f +0000030: 6675 6e63 7469 6f6e 5f62 6f64 6965 7301 +0000040: 2800 5a57 5859 0a00 7273 740b 007c 7b82 +0000050: 7e7f 8081 0d00 0000 0090 8f96 9293 9495 +0000060: 0c00 0000 0000 0000 0004 0365 6e64 ;;; STDOUT ;;) |