summaryrefslogtreecommitdiff
path: root/test/dump/result.txt
diff options
context:
space:
mode:
authorBen Smith <binji@chromium.org>2016-04-25 06:54:13 -0700
committerBen Smith <binji@chromium.org>2016-04-28 23:46:17 -0700
commit4b65b16cba2eb3aa173848377079c0523c9c896f (patch)
tree6f47b542fa9156a1b21d3dc5e688c7dd90aed98e /test/dump/result.txt
parentee599aecbbc6d1d61bfb7485ba40c404937c4727 (diff)
downloadwabt-4b65b16cba2eb3aa173848377079c0523c9c896f.tar.gz
wabt-4b65b16cba2eb3aa173848377079c0523c9c896f.tar.bz2
wabt-4b65b16cba2eb3aa173848377079c0523c9c896f.zip
update dump tests
Diffstat (limited to 'test/dump/result.txt')
-rw-r--r--test/dump/result.txt129
1 files changed, 67 insertions, 62 deletions
diff --git a/test/dump/result.txt b/test/dump/result.txt
index b6b63309..b6c7b2aa 100644
--- a/test/dump/result.txt
+++ b/test/dump/result.txt
@@ -6,72 +6,77 @@
(func (result f64) (f64.const 0)))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0a00 0000 ; WASM_BINARY_VERSION
-; section "signatures"
-0000008: 00 ; section size (guess)
-0000009: 0a ; string length
-000000a: 7369 676e 6174 7572 6573 ; section id: "signatures"
-0000014: 04 ; num signatures
-; signature 0
-0000015: 00 ; num params
-0000016: 01 ; result_type
-; signature 1
-0000017: 00 ; num params
-0000018: 02 ; result_type
-; signature 2
-0000019: 00 ; num params
+0000004: 0b00 0000 ; WASM_BINARY_VERSION
+; section "type"
+0000008: 04 ; string length
+0000009: 7479 7065 ; section id: "type"
+000000d: 00 ; section size (guess)
+000000e: 04 ; num types
+; type 0
+000000f: 40 ; function form
+0000010: 00 ; num params
+0000011: 01 ; num results
+0000012: 01 ; result_type
+; type 1
+0000013: 40 ; function form
+0000014: 00 ; num params
+0000015: 01 ; num results
+0000016: 02 ; result_type
+; type 2
+0000017: 40 ; function form
+0000018: 00 ; num params
+0000019: 01 ; num results
000001a: 03 ; result_type
-; signature 3
-000001b: 00 ; num params
-000001c: 04 ; result_type
-0000008: 14 ; FIXUP section size
-; section "function_signatures"
-000001d: 00 ; section size (guess)
-000001e: 13 ; string length
-000001f: 6675 6e63 7469 6f6e 5f73 6967 6e61 7475
-000002f: 7265 73 ; section id: "function_signatures"
-0000032: 04 ; num functions
-0000033: 00 ; function 0 signature index
-0000034: 01 ; function 1 signature index
-0000035: 02 ; function 2 signature index
-0000036: 03 ; function 3 signature index
-000001d: 19 ; FIXUP section size
-; section "function_bodies"
-0000037: 00 ; section size (guess)
-0000038: 0f ; string length
-0000039: 6675 6e63 7469 6f6e 5f62 6f64 6965 73 ; section id: "function_bodies"
-0000048: 04 ; num functions
+; type 3
+000001b: 40 ; function form
+000001c: 00 ; num params
+000001d: 01 ; num results
+000001e: 04 ; result_type
+000000d: 11 ; FIXUP section size
+; section "function"
+000001f: 08 ; string length
+0000020: 6675 6e63 7469 6f6e ; section id: "function"
+0000028: 00 ; section size (guess)
+0000029: 04 ; num functions
+000002a: 00 ; function 0 signature index
+000002b: 01 ; function 1 signature index
+000002c: 02 ; function 2 signature index
+000002d: 03 ; function 3 signature index
+0000028: 05 ; FIXUP section size
+; section "code"
+000002e: 04 ; string length
+000002f: 636f 6465 ; section id: "code"
+0000033: 00 ; section size (guess)
+0000034: 04 ; num functions
; function body 0
-0000049: 00 ; func body size (guess)
-000004a: 00 ; local decl count
-000004b: 0a ; OPCODE_I32_CONST
-000004c: 00 ; i32 literal
-0000049: 03 ; FIXUP func body size
+0000035: 00 ; func body size (guess)
+0000036: 00 ; local decl count
+0000037: 10 ; OPCODE_I32_CONST
+0000038: 00 ; i32 literal
+0000035: 03 ; FIXUP func body size
; function body 1
-000004d: 00 ; func body size (guess)
-000004e: 00 ; local decl count
-000004f: 0b ; OPCODE_I64_CONST
-0000050: 00 ; i64 literal
-000004d: 03 ; FIXUP func body size
+0000039: 00 ; func body size (guess)
+000003a: 00 ; local decl count
+000003b: 11 ; OPCODE_I64_CONST
+000003c: 00 ; i64 literal
+0000039: 03 ; FIXUP func body size
; function body 2
-0000051: 00 ; func body size (guess)
-0000052: 00 ; local decl count
-0000053: 0d ; OPCODE_F32_CONST
-0000054: 0000 0000 ; f32 literal
-0000051: 06 ; FIXUP func body size
+000003d: 00 ; func body size (guess)
+000003e: 00 ; local decl count
+000003f: 13 ; OPCODE_F32_CONST
+0000040: 0000 0000 ; f32 literal
+000003d: 06 ; FIXUP func body size
; function body 3
-0000058: 00 ; func body size (guess)
-0000059: 00 ; local decl count
-000005a: 0c ; OPCODE_F64_CONST
-000005b: 0000 0000 0000 0000 ; f64 literal
-0000058: 0a ; FIXUP func body size
-0000037: 2b ; FIXUP section size
+0000044: 00 ; func body size (guess)
+0000045: 00 ; local decl count
+0000046: 12 ; OPCODE_F64_CONST
+0000047: 0000 0000 0000 0000 ; f64 literal
+0000044: 0a ; FIXUP func body size
+0000033: 1b ; FIXUP section size
;; dump
-0000000: 0061 736d 0a00 0000 140a 7369 676e 6174
-0000010: 7572 6573 0400 0100 0200 0300 0419 1366
-0000020: 756e 6374 696f 6e5f 7369 676e 6174 7572
-0000030: 6573 0400 0102 032b 0f66 756e 6374 696f
-0000040: 6e5f 626f 6469 6573 0403 000a 0003 000b
-0000050: 0006 000d 0000 0000 0a00 0c00 0000 0000
-0000060: 0000 00
+0000000: 0061 736d 0b00 0000 0474 7970 6511 0440
+0000010: 0001 0140 0001 0240 0001 0340 0001 0408
+0000020: 6675 6e63 7469 6f6e 0504 0001 0203 0463
+0000030: 6f64 651b 0403 0010 0003 0011 0006 0013
+0000040: 0000 0000 0a00 1200 0000 0000 0000 00
;;; STDOUT ;;)