summaryrefslogtreecommitdiff
path: root/src/asmjs
diff options
context:
space:
mode:
authorThomas Lively <tlively@users.noreply.github.com>2017-08-16 15:01:56 -0700
committerAlon Zakai <alonzakai@gmail.com>2017-08-16 15:01:56 -0700
commit5fafb87a2819cebd94941c77c07ebe067471eb7d (patch)
tree232edd6e144a43094bf2127a6a6e4913a5674884 /src/asmjs
parent21d06aea04244fa71b5053bd87f2ec6a2ac9d5c2 (diff)
downloadbinaryen-5fafb87a2819cebd94941c77c07ebe067471eb7d.tar.gz
binaryen-5fafb87a2819cebd94941c77c07ebe067471eb7d.tar.bz2
binaryen-5fafb87a2819cebd94941c77c07ebe067471eb7d.zip
wasm2asm test generation (#1124)
* Translate assert_return invokes to asm * Translate assert_trap tests to JS * Enable wasm2asm tests * Fix wasm2asm translation of store * Update ubuntu nodejs in Travis * Free JSPrinter buffer * Use unique_ptr for Functions to prevent leaks * Add tests for assert translation
Diffstat (limited to 'src/asmjs')
-rw-r--r--src/asmjs/shared-constants.cpp2
-rw-r--r--src/asmjs/shared-constants.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/asmjs/shared-constants.cpp b/src/asmjs/shared-constants.cpp
index b355fecb7..6e92f1b3e 100644
--- a/src/asmjs/shared-constants.cpp
+++ b/src/asmjs/shared-constants.cpp
@@ -32,6 +32,8 @@ cashew::IString GLOBAL("global"),
UINT32ARRAY("Uint32Array"),
FLOAT32ARRAY("Float32Array"),
FLOAT64ARRAY("Float64Array"),
+ ARRAY_BUFFER("ArrayBuffer"),
+ ASM_MODULE("asmModule"),
IMPOSSIBLE_CONTINUE("impossible-continue"),
MATH("Math"),
IMUL("imul"),
diff --git a/src/asmjs/shared-constants.h b/src/asmjs/shared-constants.h
index 92dab0b69..555efce6a 100644
--- a/src/asmjs/shared-constants.h
+++ b/src/asmjs/shared-constants.h
@@ -35,6 +35,8 @@ extern cashew::IString GLOBAL,
UINT32ARRAY,
FLOAT32ARRAY,
FLOAT64ARRAY,
+ ARRAY_BUFFER,
+ ASM_MODULE,
IMPOSSIBLE_CONTINUE,
MATH,
IMUL,