summaryrefslogtreecommitdiff
path: root/scripts/test/support.py
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2020-04-08 13:59:21 -0700
committerGitHub <noreply@github.com>2020-04-08 13:59:21 -0700
commit2f9d019267bd792e1df09a00648eb4d8edb39ac1 (patch)
tree5542994773bf4d34a53bd938fa8c628cf3c8dd5f /scripts/test/support.py
parent95a66b5b3ad34b47703131207bbab739366408c4 (diff)
downloadbinaryen-2f9d019267bd792e1df09a00648eb4d8edb39ac1.tar.gz
binaryen-2f9d019267bd792e1df09a00648eb4d8edb39ac1.tar.bz2
binaryen-2f9d019267bd792e1df09a00648eb4d8edb39ac1.zip
Avoid g$ in main modules where possible (#2721)
We realized it is not valid to do these f$, g$ optimizations in main and side modules, as a symbol might appear in both (like RTTI or a weak symbol). We do need one of the appearances to "win". This does the g$ optimization in main modules only, that is, if a global appears in a main module then we can avoid a g$ import and instead compute its location directly in the module, since we will "win" over other modules with the same symbol anyhow.
Diffstat (limited to 'scripts/test/support.py')
0 files changed, 0 insertions, 0 deletions