summaryrefslogtreecommitdiff
path: root/src/asmjs/shared-constants.cpp
diff options
context:
space:
mode:
authorKris Selden <kris.selden@gmail.com>2018-02-06 07:17:17 -0800
committerAlon Zakai <alonzakai@gmail.com>2018-02-06 07:17:17 -0800
commita85be9781620696b79d0efd694605f608417098d (patch)
treece93b6554c6b932a19b2c7cda425da5ac4513bb6 /src/asmjs/shared-constants.cpp
parentfd03054a5dac582ea1cbe8745c9b4852a7c9c686 (diff)
downloadbinaryen-a85be9781620696b79d0efd694605f608417098d.tar.gz
binaryen-a85be9781620696b79d0efd694605f608417098d.tar.bz2
binaryen-a85be9781620696b79d0efd694605f608417098d.zip
Update wasm2asm to generate "almost asm" if grow_memory is used (#1340)
* Allow wasm2asm to generate "almost asm" If grow_memory, current_memory or export memory is used then generate "almost asm" with memory growth support. * Log reason for "almost asm" to stderr
Diffstat (limited to 'src/asmjs/shared-constants.cpp')
-rw-r--r--src/asmjs/shared-constants.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/asmjs/shared-constants.cpp b/src/asmjs/shared-constants.cpp
index f62be6168..09452805c 100644
--- a/src/asmjs/shared-constants.cpp
+++ b/src/asmjs/shared-constants.cpp
@@ -62,6 +62,7 @@ cashew::IString GLOBAL("global"),
I32_TEMP("asm2wasm_i32_temp"),
DEBUGGER("debugger"),
USE_ASM("use asm"),
+ ALMOST_ASM("almost asm"),
BUFFER("buffer"),
ENV("env"),
INSTRUMENT("instrument"),
@@ -84,5 +85,7 @@ cashew::IString GLOBAL("global"),
WASM_ROTL32("__wasm_rotl_i32"),
WASM_ROTL64("__wasm_rotl_i64"),
WASM_ROTR32("__wasm_rotr_i32"),
- WASM_ROTR64("__wasm_rotr_i64");
+ WASM_ROTR64("__wasm_rotr_i64"),
+ WASM_GROW_MEMORY("__wasm_grow_memory"),
+ WASM_CURRENT_MEMORY("__wasm_current_memory");
}