summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-01-29 14:28:54 -0800
committerDerek Schuff <dschuff@chromium.org>2016-02-01 12:32:11 -0800
commitf275618272a6a5802458beea2e66491d207e14f5 (patch)
treee670d0905bce166150eecd18cec1edea396e169d /src
parentcc92414e1145557c17d90cae8b8acb028c377196 (diff)
downloadbinaryen-f275618272a6a5802458beea2e66491d207e14f5.tar.gz
binaryen-f275618272a6a5802458beea2e66491d207e14f5.tar.bz2
binaryen-f275618272a6a5802458beea2e66491d207e14f5.zip
relax wasm.js assertions on alignment, and update wasm.js build
Diffstat (limited to 'src')
-rw-r--r--src/wasm-js.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wasm-js.cpp b/src/wasm-js.cpp
index b767b8a25..067e3fdea 100644
--- a/src/wasm-js.cpp
+++ b/src/wasm-js.cpp
@@ -200,7 +200,7 @@ extern "C" void EMSCRIPTEN_KEEPALIVE instantiate() {
}
Literal load(Load* load, size_t addr) override {
- assert(load->align == load->bytes);
+ assert(load->align >= load->bytes);
if (!isWasmTypeFloat(load->type)) {
if (load->bytes == 1) {
if (load->signed_) {
@@ -233,7 +233,7 @@ extern "C" void EMSCRIPTEN_KEEPALIVE instantiate() {
}
void store(Store* store, size_t addr, Literal value) override {
- assert(store->align == store->bytes);
+ assert(store->align >= store->bytes);
if (!isWasmTypeFloat(store->type)) {
if (store->bytes == 1) {
EM_ASM_INT({ Module['info'].parent['HEAP8'][$0] = $1 }, addr, value.geti32());