diff options
author | Alon Zakai <azakai@google.com> | 2021-08-31 16:49:34 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-31 16:49:34 -0700 |
commit | 82cdabf20e496508cd241ef31a5f630c2de844ad (patch) | |
tree | d125e86b1bd50e85c20b540be1074ed655591b8f /src/js/binaryen.js-post.js | |
parent | 7d966528f603e65dacbf25f585a5accc46470bbd (diff) | |
download | binaryen-82cdabf20e496508cd241ef31a5f630c2de844ad.tar.gz binaryen-82cdabf20e496508cd241ef31a5f630c2de844ad.tar.bz2 binaryen-82cdabf20e496508cd241ef31a5f630c2de844ad.zip |
Use the new module version of EffectAnalyzer (#4116)
This finishes the refactoring started in #4115 by doing the
same change to pass a Module into EffectAnalyzer instead of
features. To do so this refactors the fallthrough API and a few
other small things. After those changes, this PR removes the
old feature constructor of EffectAnalyzer entirely.
This requires a small breaking change in the C API, changing
BinaryenExpressionGetSideEffects's feature param to a
module. That makes this change not NFC, but otherwise it is.
Diffstat (limited to 'src/js/binaryen.js-post.js')
-rw-r--r-- | src/js/binaryen.js-post.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/js/binaryen.js-post.js b/src/js/binaryen.js-post.js index 645290478..a91d5af31 100644 --- a/src/js/binaryen.js-post.js +++ b/src/js/binaryen.js-post.js @@ -3128,8 +3128,8 @@ Module['getExpressionInfo'] = function(expr) { }; // Gets the side effects of the specified expression -Module['getSideEffects'] = function(expr, features) { - return Module['_BinaryenExpressionGetSideEffects'](expr, features); +Module['getSideEffects'] = function(expr, module) { + return Module['_BinaryenExpressionGetSideEffects'](expr, module); }; Module['createType'] = function(types) { |