summaryrefslogtreecommitdiff
path: root/src/wasm.cpp
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-06-18 18:27:03 +0100
committerGitHub <noreply@github.com>2016-06-18 18:27:03 +0100
commitb06555e330e48a42918492086cbf4b24353ed62d (patch)
treecbf6b14611a501d0775c62aa5791ccf071a7fc2c /src/wasm.cpp
parentec931e717a07dc21f22ac543ab0fe5af78879cc8 (diff)
parentd6bda73f13fe17434f3bd78b58da6961d297361a (diff)
downloadbinaryen-b06555e330e48a42918492086cbf4b24353ed62d.tar.gz
binaryen-b06555e330e48a42918492086cbf4b24353ed62d.tar.bz2
binaryen-b06555e330e48a42918492086cbf4b24353ed62d.zip
Merge pull request #590 from WebAssembly/precompute
Precompute expressions at compile time when possible
Diffstat (limited to 'src/wasm.cpp')
-rw-r--r--src/wasm.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wasm.cpp b/src/wasm.cpp
index 48a0f276a..dd06a8d14 100644
--- a/src/wasm.cpp
+++ b/src/wasm.cpp
@@ -20,6 +20,9 @@
namespace wasm {
+Name WASM("wasm"),
+ RETURN_FLOW("*return:)*");
+
struct TypeSeeker : public PostWalker<TypeSeeker, Visitor<TypeSeeker>> {
Expression* target; // look for this one
Name targetName;