summaryrefslogtreecommitdiff
path: root/src/binary-reader-logging.h
diff options
context:
space:
mode:
authorBen Smith <binjimin@gmail.com>2018-03-28 13:43:12 -0700
committerGitHub <noreply@github.com>2018-03-28 13:43:12 -0700
commit8b192e6a441ad22207d95486ba5b34030188c455 (patch)
tree83715fcd3a82bde964814ff5fe930fb79a2795c6 /src/binary-reader-logging.h
parent90fb9eefa9c2f36481e575da591e9ca521bf724f (diff)
downloadwabt-8b192e6a441ad22207d95486ba5b34030188c455.tar.gz
wabt-8b192e6a441ad22207d95486ba5b34030188c455.tar.bz2
wabt-8b192e6a441ad22207d95486ba5b34030188c455.zip
Store local types as Type+Count pairs (#820)
Since the binary format stores locals as Type+Count pairs, it is easy to generate a function with a huge number of locals. The text format has no way to compress this, so the resulting file will be huge. However, if the binary file has an error, it would be useful to be able to catch it without allocating a huge number of locals. To do so, we store all locals as Type+Count pairs in the IR as well, and provide accessor functions for getting the number of local types, the type of a particular local index, etc. This fixes issue #819.
Diffstat (limited to 'src/binary-reader-logging.h')
0 files changed, 0 insertions, 0 deletions