summaryrefslogtreecommitdiff
path: root/test/binaryen.js/pass-arguments.js.txt
diff options
context:
space:
mode:
authorDaniel Wirtz <dcode@dcode.io>2020-04-20 23:01:26 +0200
committerGitHub <noreply@github.com>2020-04-20 14:01:26 -0700
commit483d759230f4693abfca3a74a97b1c1db6d2a0d6 (patch)
treec37b39802b9e5791abb3e329b88ba7185557de49 /test/binaryen.js/pass-arguments.js.txt
parent1dc820c913712a2c50d05caee77e90a7ec49d2e1 (diff)
downloadbinaryen-483d759230f4693abfca3a74a97b1c1db6d2a0d6.tar.gz
binaryen-483d759230f4693abfca3a74a97b1c1db6d2a0d6.tar.bz2
binaryen-483d759230f4693abfca3a74a97b1c1db6d2a0d6.zip
Refactor expression runner so it can be used via the C and JS APIs (#2702)
Refactors most of the precompute pass's expression runner into its base class so it can also be used via the C and JS APIs. Also adds the option to populate the runner with known constant local and global values upfront, and remembers assigned intermediate values as well as traversing into functions if requested.
Diffstat (limited to 'test/binaryen.js/pass-arguments.js.txt')
-rw-r--r--test/binaryen.js/pass-arguments.js.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/binaryen.js/pass-arguments.js.txt b/test/binaryen.js/pass-arguments.js.txt
index df98df08c..d13c4cad7 100644
--- a/test/binaryen.js/pass-arguments.js.txt
+++ b/test/binaryen.js/pass-arguments.js.txt
@@ -10,6 +10,7 @@ int main() {
std::map<size_t, BinaryenEventRef> events;
std::map<size_t, BinaryenExportRef> exports;
std::map<size_t, RelooperBlockRef> relooperBlocks;
+ std::map<size_t, ExpressionRunnerRef> expressionRunners;
BinaryenModuleRef the_module = NULL;
RelooperRef the_relooper = NULL;
BinaryenGetPassArgument("theKey");