summaryrefslogtreecommitdiff
path: root/src/wasm/wasm-validator.cpp
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2022-08-18 09:10:01 -0700
committerGitHub <noreply@github.com>2022-08-18 09:10:01 -0700
commit613fadc9b27be3f025ce6d280ce92c236f7b53e0 (patch)
tree9b9b1117c5b6c06bc8e645ffc392a00de38abd37 /src/wasm/wasm-validator.cpp
parent2d86d1f8fb217456d8bcc4b401ce7d143aa36ee9 (diff)
downloadbinaryen-613fadc9b27be3f025ce6d280ce92c236f7b53e0.tar.gz
binaryen-613fadc9b27be3f025ce6d280ce92c236f7b53e0.tar.bz2
binaryen-613fadc9b27be3f025ce6d280ce92c236f7b53e0.zip
Avoid emitting a block in the binary format when it has no name (#4912)
We already did this if the block was a child of a control flow structure, which is the common case (see the new added comment around that code, which clarifies why). This does the same for all other blocks. This is simple to do and a minor optimization, but the main benefit from this is just to make our handling of blocks uniform: after this, we never emit a block with no name. This will make 1a non- nullable locals easier to handle (since they will be able to assume that property; and not emitting such blocks avoids some work to handle non-nullable locals in them).
Diffstat (limited to 'src/wasm/wasm-validator.cpp')
0 files changed, 0 insertions, 0 deletions