diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-09-30 17:04:25 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-30 17:04:25 -0700 |
commit | 58832ad0b8a197ece6165bfe163f634a21f8bd6d (patch) | |
tree | b6f56bb970a53996d5bd6fabf1187a7139997f9f /src/asmjs/asm_v_wasm.cpp | |
parent | cbe71a99f3b53db81cfd23f7a12f2010daeff65d (diff) | |
download | binaryen-58832ad0b8a197ece6165bfe163f634a21f8bd6d.tar.gz binaryen-58832ad0b8a197ece6165bfe163f634a21f8bd6d.tar.bz2 binaryen-58832ad0b8a197ece6165bfe163f634a21f8bd6d.zip |
asm2wasm i64 support (#723)
* support i64 intrinsics from fastcomp, adding --wasm-only flag
* refactor callImport logic in asm2wasm to avoid recomputing wasm types again
* legalize illegal i64 params in exports and imports
* do safe i64 binary ops depending on precision
* fix addVar, only assert on names if we are using a name
Diffstat (limited to 'src/asmjs/asm_v_wasm.cpp')
-rw-r--r-- | src/asmjs/asm_v_wasm.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/asmjs/asm_v_wasm.cpp b/src/asmjs/asm_v_wasm.cpp index 648871100..2bf2b2bd3 100644 --- a/src/asmjs/asm_v_wasm.cpp +++ b/src/asmjs/asm_v_wasm.cpp @@ -25,6 +25,7 @@ WasmType asmToWasmType(AsmType asmType) { case ASM_INT: return WasmType::i32; case ASM_DOUBLE: return WasmType::f64; case ASM_FLOAT: return WasmType::f32; + case ASM_INT64: return WasmType::i64; case ASM_NONE: return WasmType::none; default: {} } @@ -36,6 +37,7 @@ AsmType wasmToAsmType(WasmType type) { case WasmType::i32: return ASM_INT; case WasmType::f32: return ASM_FLOAT; case WasmType::f64: return ASM_DOUBLE; + case WasmType::i64: return ASM_INT64; case WasmType::none: return ASM_NONE; default: {} } |