summaryrefslogtreecommitdiff
path: root/src/wasm-debug.h
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2022-07-07 12:46:43 -0700
committerGitHub <noreply@github.com>2022-07-07 12:46:43 -0700
commit9831b36d339b1cea61d5313f7dfa256fc1ee9bcc (patch)
tree70178cf4d01b7d5b9319be6fdd59c4d05cc2a0a1 /src/wasm-debug.h
parenta82e2dbfc3a554377b93cc1f5fca731ff688f925 (diff)
downloadbinaryen-9831b36d339b1cea61d5313f7dfa256fc1ee9bcc.tar.gz
binaryen-9831b36d339b1cea61d5313f7dfa256fc1ee9bcc.tar.bz2
binaryen-9831b36d339b1cea61d5313f7dfa256fc1ee9bcc.zip
Group reference types in binary format. (#4774)
Grouping all references together makes it easier for baseline compilers to zero out memory (as the zeroing out may be different for MVP types vs. references). This puts all references together, either at the start or the end. As a heuristic for that we see if the first local is a reference. As the optimizer will sort locals by frequency, this ensures that the most-frequent local stays in index 0. Fixes #4773. See more details there
Diffstat (limited to 'src/wasm-debug.h')
0 files changed, 0 insertions, 0 deletions