diff options
author | Thomas Lively <tlively@google.com> | 2023-01-05 09:48:51 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-05 07:48:51 -0800 |
commit | 5bf548b32e30fbae16dde5df703541ca7ac72f15 (patch) | |
tree | 5b56b8402d1a6fe37103bc6c12afb417f885721c /src/wasm2js.h | |
parent | f92350d2949934c0e0ce4a27ec8b799ac2a85e45 (diff) | |
download | binaryen-5bf548b32e30fbae16dde5df703541ca7ac72f15.tar.gz binaryen-5bf548b32e30fbae16dde5df703541ca7ac72f15.tar.bz2 binaryen-5bf548b32e30fbae16dde5df703541ca7ac72f15.zip |
[Parser] Parse blocks (#5393)
Parse both the folded and unfolded forms of blocks and structure the code to
make supporting additional block instructions like if-else and try-catch
relatively simple.
Parsing block types is extra fun because they may implicitly define new
signature heap types via a typeuse, but only if their types are not given by a
single result type. To figuring out whether a new type may be introduced in all
the relevant parsing stages, always track at least the arity of parsed results.
The parser parses block labels, but more work will be required to support branch
instructions that use them.
Diffstat (limited to 'src/wasm2js.h')
0 files changed, 0 insertions, 0 deletions