[Git][ghc/ghc][wip/nr/typed-wasm-control-flow] comment

Norman Ramsey (@nrnrnr) gitlab at gitlab.haskell.org
Tue Aug 9 18:43:28 UTC 2022



Norman Ramsey pushed to branch wip/nr/typed-wasm-control-flow at Glasgow Haskell Compiler / GHC


Commits:
ccd67689 by Norman Ramsey at 2022-08-09T14:43:16-04:00
comment

- - - - -


1 changed file:

- compiler/GHC/Wasm/ControlFlow/ToAsm.hs


Changes:

=====================================
compiler/GHC/Wasm/ControlFlow/ToAsm.hs
=====================================
@@ -35,6 +35,8 @@ wasmFunctionType :: WasmFunctionType pre post -> Builder
 wasmFunctionType (WasmFunctionType TypeListNil TypeListNil) = "void"
 wasmFunctionType (WasmFunctionType TypeListNil (TypeListCons t TypeListNil)) = tagBuilder t
 wasmFunctionType _ = panic "function type needs to be externalized"
+  -- Anything other then [] -> [], [] -> [t] needs to be put into a
+  -- type table and referred to by number.
 
 tagBuilder :: WasmTypeTag a -> Builder
 tagBuilder TagI32 = "i32"



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/ccd67689f965693ab1022c79c1f9de39bc02b793

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/ccd67689f965693ab1022c79c1f9de39bc02b793
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20220809/22141fdd/attachment-0001.html>


More information about the ghc-commits mailing list