diff options
author | Max Graey <maxgraey@gmail.com> | 2021-09-01 18:56:12 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-01 08:56:12 -0700 |
commit | b50064bde4f584813398b7696ce7a4a3bf1cbbaa (patch) | |
tree | ff307f7239dedc752c73ab2d61a6e6729bff1ab3 /src/asmjs/asm_v_wasm.cpp | |
parent | d66d2d9bb0ea1e067c6b3e2d322a1d2357336893 (diff) | |
download | binaryen-b50064bde4f584813398b7696ce7a4a3bf1cbbaa.tar.gz binaryen-b50064bde4f584813398b7696ce7a4a3bf1cbbaa.tar.bz2 binaryen-b50064bde4f584813398b7696ce7a4a3bf1cbbaa.zip |
[Refactoring] Cleanup asm2wasm. Use JS instead ASM prefix where possible. NFC (#4090)
Diffstat (limited to 'src/asmjs/asm_v_wasm.cpp')
-rw-r--r-- | src/asmjs/asm_v_wasm.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/asmjs/asm_v_wasm.cpp b/src/asmjs/asm_v_wasm.cpp index e87e13062..9e05d8722 100644 --- a/src/asmjs/asm_v_wasm.cpp +++ b/src/asmjs/asm_v_wasm.cpp @@ -20,17 +20,17 @@ namespace wasm { -AsmType wasmToAsmType(Type type) { +JsType wasmToJsType(Type type) { TODO_SINGLE_COMPOUND(type); switch (type.getBasic()) { case Type::i32: - return ASM_INT; + return JS_INT; case Type::f32: - return ASM_FLOAT; + return JS_FLOAT; case Type::f64: - return ASM_DOUBLE; + return JS_DOUBLE; case Type::i64: - return ASM_INT64; + return JS_INT64; case Type::v128: WASM_UNREACHABLE("v128 not implemented yet"); case Type::funcref: @@ -39,9 +39,9 @@ AsmType wasmToAsmType(Type type) { case Type::eqref: case Type::i31ref: case Type::dataref: - WASM_UNREACHABLE("reference types are not supported by asm2wasm"); + WASM_UNREACHABLE("reference types are not supported by wasm2js"); case Type::none: - return ASM_NONE; + return JS_NONE; case Type::unreachable: WASM_UNREACHABLE("invalid type"); } |