[Git][ghc/ghc][wip/kill-pre-c11] 5 commits: JS: establish single source of truth for symbols

Cheng Shao (@TerrorJack) gitlab at gitlab.haskell.org
Mon Jun 10 09:25:34 UTC 2024



Cheng Shao pushed to branch wip/kill-pre-c11 at Glasgow Haskell Compiler / GHC


Commits:
6bd850e8 by doyougnu at 2024-06-09T21:02:14-04:00
JS: establish single source of truth for symbols

In pursuit of: #22736.

This MR moves ad-hoc symbols used throughout the js backend into a
single symbols file. Why? First, this cleans up the code by removing
ad-hoc strings created on the fly and therefore makes the code more
maintainable. Second, it makes it much easier to eventually type these
identifiers.

- - - - -
f3017dd3 by Cheng Shao at 2024-06-09T21:02:49-04:00
rts: replace ad-hoc MYTASK_USE_TLV with proper CC_SUPPORTS_TLS

This patch replaces the ad-hoc `MYTASK_USE_TLV` with the
`CC_SUPPORTS_TLS` macro. If TLS support is detected by autoconf, then
we should use that for managing `myTask` in the threaded RTS.

- - - - -
9a9506fb by Cheng Shao at 2024-06-10T08:42:13+00:00
WIP: always assume __GNUC__ >= 4

- - - - -
403542c6 by Cheng Shao at 2024-06-10T08:42:13+00:00
WIP

- - - - -
aed79a24 by Cheng Shao at 2024-06-10T09:25:19+00:00
WIP

- - - - -


19 changed files:

- compiler/GHC/JS/Ident.hs
- compiler/GHC/JS/JStg/Monad.hs
- compiler/GHC/JS/JStg/Syntax.hs
- compiler/GHC/JS/Make.hs
- compiler/GHC/JS/Syntax.hs
- compiler/GHC/StgToJS.hs
- compiler/GHC/StgToJS/Apply.hs
- compiler/GHC/StgToJS/Arg.hs
- compiler/GHC/StgToJS/Closure.hs
- compiler/GHC/StgToJS/Expr.hs
- compiler/GHC/StgToJS/FFI.hs
- compiler/GHC/StgToJS/Heap.hs
- compiler/GHC/StgToJS/Ids.hs
- compiler/GHC/StgToJS/Linker/Linker.hs
- compiler/GHC/StgToJS/Literal.hs
- compiler/GHC/StgToJS/Object.hs
- compiler/GHC/StgToJS/Prim.hs
- compiler/GHC/StgToJS/Profiling.hs
- compiler/GHC/StgToJS/Regs.hs


The diff was not included because it is too large.


View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/68514576e148d644dddddae3432b99f1ce4bea0d...aed79a2465dd6f6ba8dd32f981e9c129013009d1

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/68514576e148d644dddddae3432b99f1ce4bea0d...aed79a2465dd6f6ba8dd32f981e9c129013009d1
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/20240610/ff0562e1/attachment-0001.html>


More information about the ghc-commits mailing list