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/dedupe-sig.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/dedupe-sig.txt')
-rw-r--r-- | test/dump/dedupe-sig.txt | 46 |
1 files changed, 21 insertions, 25 deletions
diff --git a/test/dump/dedupe-sig.txt b/test/dump/dedupe-sig.txt index d76209a8..22fcd41e 100644 --- a/test/dump/dedupe-sig.txt +++ b/test/dump/dedupe-sig.txt @@ -4,33 +4,29 @@ (func (param i32) (result i64) (i64.const 0)) (import "foo" "bar" (param i32) (result i64))) (;; 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: 01 ; num params -0000007: 02 ; result_type -0000008: 01 ; param type -0000009: 02 ; WASM_SECTION_FUNCTIONS -000000a: 02 ; num functions +0000002: 01 ; num params +0000003: 02 ; result_type +0000004: 01 ; param type +0000005: 02 ; WASM_SECTION_FUNCTIONS +0000006: 02 ; num functions ; import header 0 -000000b: 03 ; import flags -000000c: 0000 ; import signature index -000000e: 0000 0000 ; import name offset +0000007: 03 ; import flags +0000008: 0000 ; import signature index +000000a: 0000 0000 ; import name offset ; function 0 -0000012: 01 ; func flags -0000013: 0000 ; func signature index -0000015: 0000 0000 ; func name offset -0000019: 0000 ; func body size -000001b: 0b ; OPCODE_I64_CONST -000001c: 0000 0000 0000 0000 ; u64 literal -0000019: 0900 ; FIXUP func body size -0000024: 06 ; WASM_SECTION_END +000000e: 01 ; func flags +000000f: 0000 ; func signature index +0000011: 0000 0000 ; func name offset +0000015: 0000 ; func body size +0000017: 0b ; OPCODE_I64_CONST +0000018: 0000 0000 0000 0000 ; u64 literal +0000015: 0900 ; FIXUP func body size +0000020: 06 ; WASM_SECTION_END ; import 0 -000000e: 2500 0000 ; FIXUP import name offset -0000025: 6261 72 ; import name -0000028: 00 ; \0 +000000a: 2100 0000 ; FIXUP import name offset +0000021: 6261 72 ; import name +0000024: 00 ; \0 ;;; STDOUT ;;) |