summaryrefslogtreecommitdiff
path: root/src/wasm2js.h
diff options
context:
space:
mode:
authorThomas Lively <7121787+tlively@users.noreply.github.com>2020-12-01 18:41:33 -0800
committerGitHub <noreply@github.com>2020-12-01 18:41:33 -0800
commit3b1d58aadd37ce8758447c9685d5c3a7bec9c418 (patch)
tree66a09c9f3d94384bbd983d70c410791d6609c7f6 /src/wasm2js.h
parenta5403d47483836d5e2d53c3f3721bd376551624a (diff)
downloadbinaryen-3b1d58aadd37ce8758447c9685d5c3a7bec9c418.tar.gz
binaryen-3b1d58aadd37ce8758447c9685d5c3a7bec9c418.tar.bz2
binaryen-3b1d58aadd37ce8758447c9685d5c3a7bec9c418.zip
[module-splitting] Allow splitting with non-const table offsets (#3408)
Extend the splitting logic to handle splitting modules with a single table segment with a non-const offset. In this situation the placeholder function names are interpreted as offsets from the table base global rather than absolute indices into the table. Since addition is not allowed in segment offset expressions, the secondary module's segment must start at the same place as the first table's segment. That means that some primary functions must be duplicated in the secondary segment to fill any gaps. They are exported and imported as necessary.
Diffstat (limited to 'src/wasm2js.h')
0 files changed, 0 insertions, 0 deletions