diff options
author | Alon Zakai <alonzakai@gmail.com> | 2015-11-03 21:18:56 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2015-11-03 21:18:56 -0800 |
commit | a0de6e95733602f7f246bb537af79e87c4a6070a (patch) | |
tree | 91c0882c1ff91dc8e028904197a4a36ec10274cd /src/wasm-js.cpp | |
parent | 48d593f3ba3505a60a6f37bc244998b8562e6137 (diff) | |
download | binaryen-a0de6e95733602f7f246bb537af79e87c4a6070a.tar.gz binaryen-a0de6e95733602f7f246bb537af79e87c4a6070a.tar.bz2 binaryen-a0de6e95733602f7f246bb537af79e87c4a6070a.zip |
factor out float_
Diffstat (limited to 'src/wasm-js.cpp')
-rw-r--r-- | src/wasm-js.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wasm-js.cpp b/src/wasm-js.cpp index 4d0914f32..7eda4d10a 100644 --- a/src/wasm-js.cpp +++ b/src/wasm-js.cpp @@ -120,7 +120,7 @@ extern "C" void EMSCRIPTEN_KEEPALIVE load_asm(char *input) { Literal load(Load* load, Literal ptr) override { size_t addr = ptr.geti32(); assert(load->align == load->bytes); - if (!load->float_) { + if (!isWasmTypeFloat(load->type)) { if (load->bytes == 1) { if (load->signed_) { return Literal(EM_ASM_INT({ return Module['info'].parent['HEAP8'][$0] }, addr)); @@ -154,7 +154,7 @@ extern "C" void EMSCRIPTEN_KEEPALIVE load_asm(char *input) { void store(Store* store, Literal ptr, Literal value) override { size_t addr = ptr.geti32(); assert(store->align == store->bytes); - if (!store->float_) { + if (!isWasmTypeFloat(store->type)) { if (store->bytes == 1) { EM_ASM_INT({ Module['info'].parent['HEAP8'][$0] = $1 }, addr, value.geti32()); } else if (store->bytes == 2) { |