diff options
author | Ben Smith <binjimin@gmail.com> | 2018-03-28 13:43:12 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-28 13:43:12 -0700 |
commit | 8b192e6a441ad22207d95486ba5b34030188c455 (patch) | |
tree | 83715fcd3a82bde964814ff5fe930fb79a2795c6 /src/binary-reader-logging.h | |
parent | 90fb9eefa9c2f36481e575da591e9ca521bf724f (diff) | |
download | wabt-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