diff options
author | Ben Smith <binjimin@gmail.com> | 2019-02-12 14:41:34 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-12 14:41:34 -0800 |
commit | e448ac7cbd74f7a048b1de15ce1a2716340a57c8 (patch) | |
tree | 2cdbf9372eabfb2584d26279beee84062036c348 /test/dump/rethrow.txt | |
parent | 35ee613d4f8e65e730aaa6d519ee39ce581d4f24 (diff) | |
download | wabt-e448ac7cbd74f7a048b1de15ce1a2716340a57c8.tar.gz wabt-e448ac7cbd74f7a048b1de15ce1a2716340a57c8.tar.bz2 wabt-e448ac7cbd74f7a048b1de15ce1a2716340a57c8.zip |
Parse updated event text and binary format (#1014)
An event has a type-section index, like a function definition. The
current proposal doesn't specify the text format, so I assumed that it
would match the format of the other sections that reference function
types. This means that the following declaration styles are allowed:
```
(type $t (func (param i32)))
(event $e1 (type $t))
(event $e2 (param f32))
```
Diffstat (limited to 'test/dump/rethrow.txt')
-rw-r--r-- | test/dump/rethrow.txt | 40 |
1 files changed, 21 insertions, 19 deletions
diff --git a/test/dump/rethrow.txt b/test/dump/rethrow.txt index f0dfc39b..2e039b43 100644 --- a/test/dump/rethrow.txt +++ b/test/dump/rethrow.txt @@ -29,32 +29,34 @@ 0000012: 0d ; section code 0000013: 00 ; section size (guess) 0000014: 01 ; event count -0000015: 00 ; event type count -0000013: 02 ; FIXUP section size +; event 0 +0000015: 00 ; event attribute +0000016: 00 ; event signature index +0000013: 03 ; FIXUP section size ; section "Code" (10) -0000016: 0a ; section code -0000017: 00 ; section size (guess) -0000018: 01 ; num functions +0000017: 0a ; section code +0000018: 00 ; section size (guess) +0000019: 01 ; num functions ; function body 0 -0000019: 00 ; func body size (guess) -000001a: 00 ; local decl count -000001b: 06 ; try -000001c: 40 ; void -000001d: 07 ; catch -000001e: 09 ; rethrow -000001f: 0b ; end +000001a: 00 ; func body size (guess) +000001b: 00 ; local decl count +000001c: 06 ; try +000001d: 40 ; void +000001e: 07 ; catch +000001f: 09 ; rethrow 0000020: 0b ; end -0000019: 07 ; FIXUP func body size -0000017: 09 ; FIXUP section size +0000021: 0b ; end +000001a: 07 ; FIXUP func body size +0000018: 09 ; FIXUP section size rethrow.wasm: file format wasm 0x1 Code Disassembly: -00001a func[0]: - 00001b: 06 40 | try - 00001d: 07 | catch - 00001e: 09 | rethrow - 00001f: 0b | end +00001b func[0]: + 00001c: 06 40 | try + 00001e: 07 | catch + 00001f: 09 | rethrow 000020: 0b | end + 000021: 0b | end ;;; STDOUT ;;) |