From 483d759230f4693abfca3a74a97b1c1db6d2a0d6 Mon Sep 17 00:00:00 2001 From: Daniel Wirtz Date: Mon, 20 Apr 2020 23:01:26 +0200 Subject: 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. --- src/wasm/wasm.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/wasm/wasm.cpp') diff --git a/src/wasm/wasm.cpp b/src/wasm/wasm.cpp index 87981729e..bce1aa4de 100644 --- a/src/wasm/wasm.cpp +++ b/src/wasm/wasm.cpp @@ -24,6 +24,7 @@ namespace wasm { Name WASM("wasm"); Name RETURN_FLOW("*return:)*"); +Name NONCONSTANT_FLOW("*nonconstant:)*"); namespace BinaryConsts { namespace UserSections { -- cgit v1.2.3