diff options
author | Ben Smith <binji@chromium.org> | 2015-12-03 14:20:45 -0800 |
---|---|---|
committer | Ben Smith <binji@chromium.org> | 2015-12-03 17:25:27 -0800 |
commit | 3334ddf0b47c607fe7b1e7cd0371edf781fc1491 (patch) | |
tree | aa46a304879e959dfcaa251368fee85051113e14 /test/dump/unary.txt | |
parent | e9a5e9aaa92048366cbdca9b82cc5fa07d46c755 (diff) | |
download | wabt-3334ddf0b47c607fe7b1e7cd0371edf781fc1491.tar.gz wabt-3334ddf0b47c607fe7b1e7cd0371edf781fc1491.tar.bz2 wabt-3334ddf0b47c607fe7b1e7cd0371edf781fc1491.zip |
don't write memory section if not specified
I originally did this to match the old binary generator, but it's not
necessary.
Diffstat (limited to 'test/dump/unary.txt')
-rw-r--r-- | test/dump/unary.txt | 86 |
1 files changed, 41 insertions, 45 deletions
diff --git a/test/dump/unary.txt b/test/dump/unary.txt index 43475cbf..46efdd3e 100644 --- a/test/dump/unary.txt +++ b/test/dump/unary.txt @@ -26,51 +26,47 @@ (f64.trunc (f64.nearest (f64.const 0)))))))))) (;; STDOUT ;;; -0000000: 00 ; WASM_SECTION_MEMORY -0000001: 00 ; min mem size log 2 -0000002: 00 ; max mem size log 2 -0000003: 01 ; export mem -0000004: 01 ; WASM_SECTION_SIGNATURES -0000005: 01 ; num signatures +0000000: 01 ; WASM_SECTION_SIGNATURES +0000001: 01 ; num signatures ; signature 0 -0000006: 00 ; num params -0000007: 00 ; result_type -0000008: 02 ; WASM_SECTION_FUNCTIONS -0000009: 01 ; num functions +0000002: 00 ; num params +0000003: 00 ; result_type +0000004: 02 ; WASM_SECTION_FUNCTIONS +0000005: 01 ; num functions ; function 0 -000000a: 01 ; func flags -000000b: 0000 ; func signature index -000000d: 0000 0000 ; func name offset -0000011: 0000 ; func body size -0000013: 5a ; OPCODE_BOOL_NOT -0000014: 57 ; OPCODE_I32_CLZ -0000015: 58 ; OPCODE_I32_CTZ -0000016: 59 ; OPCODE_I32_POPCNT -0000017: 09 ; OPCODE_I8_CONST -0000018: 00 ; u8 literal -0000019: 72 ; OPCODE_I64_CLZ -000001a: 73 ; OPCODE_I64_CTZ -000001b: 74 ; OPCODE_I64_POPCNT -000001c: 0b ; OPCODE_I64_CONST -000001d: 0000 0000 0000 0000 ; u64 literal -0000025: 7c ; OPCODE_F32_NEG -0000026: 7b ; OPCODE_F32_ABS -0000027: 82 ; OPCODE_F32_SQRT -0000028: 7e ; OPCODE_F32_CEIL -0000029: 7f ; OPCODE_F32_FLOOR -000002a: 80 ; OPCODE_F32_TRUNC -000002b: 81 ; OPCODE_F32_NEAREST_INT -000002c: 0d ; OPCODE_F32_CONST -000002d: 0000 0000 ; f32 literal -0000031: 90 ; OPCODE_F64_NEG -0000032: 8f ; OPCODE_F64_ABS -0000033: 96 ; OPCODE_F64_SQRT -0000034: 92 ; OPCODE_F64_CEIL -0000035: 93 ; OPCODE_F64_FLOOR -0000036: 94 ; OPCODE_F64_TRUNC -0000037: 95 ; OPCODE_F64_NEAREST_INT -0000038: 0c ; OPCODE_F64_CONST -0000039: 0000 0000 0000 0000 ; f64 literal -0000011: 2e00 ; FIXUP func body size -0000041: 06 ; WASM_SECTION_END +0000006: 01 ; func flags +0000007: 0000 ; func signature index +0000009: 0000 0000 ; func name offset +000000d: 0000 ; func body size +000000f: 5a ; OPCODE_BOOL_NOT +0000010: 57 ; OPCODE_I32_CLZ +0000011: 58 ; OPCODE_I32_CTZ +0000012: 59 ; OPCODE_I32_POPCNT +0000013: 09 ; OPCODE_I8_CONST +0000014: 00 ; u8 literal +0000015: 72 ; OPCODE_I64_CLZ +0000016: 73 ; OPCODE_I64_CTZ +0000017: 74 ; OPCODE_I64_POPCNT +0000018: 0b ; OPCODE_I64_CONST +0000019: 0000 0000 0000 0000 ; u64 literal +0000021: 7c ; OPCODE_F32_NEG +0000022: 7b ; OPCODE_F32_ABS +0000023: 82 ; OPCODE_F32_SQRT +0000024: 7e ; OPCODE_F32_CEIL +0000025: 7f ; OPCODE_F32_FLOOR +0000026: 80 ; OPCODE_F32_TRUNC +0000027: 81 ; OPCODE_F32_NEAREST_INT +0000028: 0d ; OPCODE_F32_CONST +0000029: 0000 0000 ; f32 literal +000002d: 90 ; OPCODE_F64_NEG +000002e: 8f ; OPCODE_F64_ABS +000002f: 96 ; OPCODE_F64_SQRT +0000030: 92 ; OPCODE_F64_CEIL +0000031: 93 ; OPCODE_F64_FLOOR +0000032: 94 ; OPCODE_F64_TRUNC +0000033: 95 ; OPCODE_F64_NEAREST_INT +0000034: 0c ; OPCODE_F64_CONST +0000035: 0000 0000 0000 0000 ; f64 literal +000000d: 2e00 ; FIXUP func body size +000003d: 06 ; WASM_SECTION_END ;;; STDOUT ;;) |