diff options
author | Alon Zakai <azakai@google.com> | 2024-06-10 16:02:00 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-10 16:02:00 -0700 |
commit | 0a1a59af573414a20fe457fd77b732729aa92fb2 (patch) | |
tree | 9639e7d7946f6d63737703d5c032ff85d4d2be79 /src/asmjs/asm_v_wasm.cpp | |
parent | 76d1ac3e9c5abfe589bcdfc84b89f263bac7c574 (diff) | |
download | binaryen-0a1a59af573414a20fe457fd77b732729aa92fb2.tar.gz binaryen-0a1a59af573414a20fe457fd77b732729aa92fb2.tar.bz2 binaryen-0a1a59af573414a20fe457fd77b732729aa92fb2.zip |
wasm2js: Add basic reference operations (#6648)
This adds ref.eq, ref.null, ref.is_null, ref.func.
Diffstat (limited to 'src/asmjs/asm_v_wasm.cpp')
-rw-r--r-- | src/asmjs/asm_v_wasm.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/asmjs/asm_v_wasm.cpp b/src/asmjs/asm_v_wasm.cpp index 314c2494f..bbbaad5bc 100644 --- a/src/asmjs/asm_v_wasm.cpp +++ b/src/asmjs/asm_v_wasm.cpp @@ -21,6 +21,10 @@ namespace wasm { JsType wasmToJsType(Type type) { + if (type.isRef()) { + return JS_REF; + } + TODO_SINGLE_COMPOUND(type); switch (type.getBasic()) { case Type::i32: |