summaryrefslogtreecommitdiff
path: root/src/asmjs/shared-constants.cpp
diff options
context:
space:
mode:
authorDerek Schuff <dschuff@chromium.org>2020-06-02 14:39:27 -0700
committerGitHub <noreply@github.com>2020-06-02 14:39:27 -0700
commitf6b7f0018ca5ce604e94cc6cf50ee712bb7e9b27 (patch)
tree7ad488259b4a15dcf7f595ed906f5aeae196f5d8 /src/asmjs/shared-constants.cpp
parent88fcf614c69c64691df9101192e277629e9ca124 (diff)
downloadbinaryen-f6b7f0018ca5ce604e94cc6cf50ee712bb7e9b27.tar.gz
binaryen-f6b7f0018ca5ce604e94cc6cf50ee712bb7e9b27.tar.bz2
binaryen-f6b7f0018ca5ce604e94cc6cf50ee712bb7e9b27.zip
Link binaryen tools against the dylib (#2864)
When building the libbinaryen dynamic library, also link the binaryen tools against it. This reduces combined tool size on mac from 76M to 2.8M
Diffstat (limited to 'src/asmjs/shared-constants.cpp')
-rw-r--r--src/asmjs/shared-constants.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/asmjs/shared-constants.cpp b/src/asmjs/shared-constants.cpp
index bc5b9d08f..58742fb1d 100644
--- a/src/asmjs/shared-constants.cpp
+++ b/src/asmjs/shared-constants.cpp
@@ -101,6 +101,13 @@ cashew::IString WASM_I64_UDIV("__wasm_i64_udiv");
cashew::IString WASM_I64_SREM("__wasm_i64_srem");
cashew::IString WASM_I64_UREM("__wasm_i64_urem");
+cashew::IString ASM_FUNC("asmFunc");
+cashew::IString ABORT_FUNC("abort");
+cashew::IString FUNCTION_TABLE("FUNCTION_TABLE");
+cashew::IString NO_RESULT("wasm2js$noresult"); // no result at all
+// result in an expression, no temp var
+cashew::IString EXPRESSION_RESULT("wasm2js$expresult");
+
namespace ABI {
namespace wasm2js {