diff options
author | Ben Smith <binji@chromium.org> | 2016-02-27 15:44:14 -0800 |
---|---|---|
committer | Ben Smith <binji@chromium.org> | 2016-02-28 17:03:15 -0800 |
commit | 20135f5f783b8f5cfa5f94683bc8c667e60d4a68 (patch) | |
tree | 0031a2b357728bfdc22196055ae58b541c82ea26 /test/dump/cast.txt | |
parent | 6da3f5272ccc3be7384f0a5e5886ee85f755fec8 (diff) | |
download | wabt-20135f5f783b8f5cfa5f94683bc8c667e60d4a68.tar.gz wabt-20135f5f783b8f5cfa5f94683bc8c667e60d4a68.tar.bz2 wabt-20135f5f783b8f5cfa5f94683bc8c667e60d4a68.zip |
binary format has magic and version number
Diffstat (limited to 'test/dump/cast.txt')
-rw-r--r-- | test/dump/cast.txt | 55 |
1 files changed, 29 insertions, 26 deletions
diff --git a/test/dump/cast.txt b/test/dump/cast.txt index 661e832c..400d3fc7 100644 --- a/test/dump/cast.txt +++ b/test/dump/cast.txt @@ -7,33 +7,36 @@ (f64.reinterpret/i64 (i64.const 0)) (i64.reinterpret/f64 (f64.const 0)))) (;; STDOUT ;;; -0000000: 01 ; WASM_BINARY_SECTION_SIGNATURES -0000001: 01 ; num signatures +0000000: 0061 736d ; WASM_BINARY_MAGIC +0000004: 0a00 0000 ; WASM_BINARY_VERSION +0000008: 01 ; WASM_BINARY_SECTION_SIGNATURES +0000009: 01 ; num signatures ; signature 0 -0000002: 00 ; num params -0000003: 00 ; result_type -0000004: 02 ; WASM_BINARY_SECTION_FUNCTIONS -0000005: 01 ; num functions +000000a: 00 ; num params +000000b: 00 ; result_type +000000c: 02 ; WASM_BINARY_SECTION_FUNCTIONS +000000d: 01 ; num functions ; function 0 -0000006: 00 ; func flags -0000007: 0000 ; func signature index -0000009: 0000 ; func body size -000000b: ad ; OPCODE_F32_REINTERPRET_I32 -000000c: 09 ; OPCODE_I8_CONST -000000d: 00 ; u8 literal -000000e: b4 ; OPCODE_I32_REINTERPRET_F32 -000000f: 0d ; OPCODE_F32_CONST -0000010: 0000 0000 ; f32 literal -0000014: b3 ; OPCODE_F64_REINTERPRET_I64 -0000015: 0b ; OPCODE_I64_CONST -0000016: 0000 0000 0000 0000 ; u64 literal -000001e: b5 ; OPCODE_I64_REINTERPRET_F64 -000001f: 0c ; OPCODE_F64_CONST -0000020: 0000 0000 0000 0000 ; f64 literal -0000009: 1d00 ; FIXUP func body size -0000028: 06 ; WASM_BINARY_SECTION_END +000000e: 00 ; func flags +000000f: 0000 ; func signature index +0000011: 0000 ; func body size +0000013: ad ; OPCODE_F32_REINTERPRET_I32 +0000014: 09 ; OPCODE_I8_CONST +0000015: 00 ; u8 literal +0000016: b4 ; OPCODE_I32_REINTERPRET_F32 +0000017: 0d ; OPCODE_F32_CONST +0000018: 0000 0000 ; f32 literal +000001c: b3 ; OPCODE_F64_REINTERPRET_I64 +000001d: 0b ; OPCODE_I64_CONST +000001e: 0000 0000 0000 0000 ; u64 literal +0000026: b5 ; OPCODE_I64_REINTERPRET_F64 +0000027: 0c ; OPCODE_F64_CONST +0000028: 0000 0000 0000 0000 ; f64 literal +0000011: 1d00 ; FIXUP func body size +0000030: 06 ; WASM_BINARY_SECTION_END ;; dump -0000000: 0101 0000 0201 0000 001d 00ad 0900 b40d -0000010: 0000 0000 b30b 0000 0000 0000 0000 b50c -0000020: 0000 0000 0000 0000 06 +0000000: 0061 736d 0a00 0000 0101 0000 0201 0000 +0000010: 001d 00ad 0900 b40d 0000 0000 b30b 0000 +0000020: 0000 0000 0000 b50c 0000 0000 0000 0000 +0000030: 06 ;;; STDOUT ;;) |