summaryrefslogtreecommitdiff
path: root/test/lit/parse-bad-tuple-extract-index.wast
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2021-03-30 14:08:50 -0700
committerGitHub <noreply@github.com>2021-03-30 14:08:50 -0700
commit38d73857a6a1ed6a404f393e69f838977dc27e83 (patch)
treeaf9551fdf68a94ce6ba1f9822488e613702cc3fe /test/lit/parse-bad-tuple-extract-index.wast
parentdaa7e66be52285a0cbee04a7cf69886c63610097 (diff)
downloadbinaryen-38d73857a6a1ed6a404f393e69f838977dc27e83.tar.gz
binaryen-38d73857a6a1ed6a404f393e69f838977dc27e83.tar.bz2
binaryen-38d73857a6a1ed6a404f393e69f838977dc27e83.zip
Fix LegalizeJSInterface with RefFuncs (#3749)
This code used to remove functions it no longer thinks are needed. That is, if it adds a legalized version of an import, it would remove the illegal one which is no longer needed. To avoid removing an illegal import that is still used it checked for ref.func appearances. But this was bad in two ways: We need to legalize the ref.funcs too. We can't call an illegal import in any way, not using a direct call, indirect call, or call by reference of a ref.func. It's silly to remove unneeded functions here. We have a pass for that. This removes the removal of functions, and adds proper updating of ref.calls, which means to call the stub function that looks like the original import, but that calls the legalized one and connects things up properly, exactly the same way as other calls. Also remove code that checked if we were in the stub/thunk and to not replace the call there. That code is not needed: no one will ever call the illegal import, so we do not need to be careful about preserving such calls.
Diffstat (limited to 'test/lit/parse-bad-tuple-extract-index.wast')
0 files changed, 0 insertions, 0 deletions