Generated RTS code
Moduleghc-10.0.0.20260917GHC2024
GHC.StgToJS.Rts.Rts
Top level driver of the JavaScript Backend RTS. This file is an
implementation of the JS RTS for the JS backend written as an EDSL in
Haskell. It assumes the existence of pre-generated JS functions, included as
js-sources in base. These functions are similarly assumed for non-inline
Primops, See GHC.StgToJS.Prim. Most of the elements in this module are
constants in Haskell Land which define pieces of the JS RTS.
- 2 values
- Packageghc-10.0.0.20260917
- Exports2
- LanguageGHC2024
- LicenceBSD-3-Clause
- SourceRts.hs
Assign registers R1 ... Rn in descending order, that is assign Rn first. This function uses the hdLoads array to construct functions which set the registers.
JS payload which defines an array of function symbols that set N registers
from M parameters. For example, h$l4 compiles to:
function h$l4(x1, x2, x3, x4) {
h$r4 = x1;
h$r3 = x2;
h$r2 = x3;
h$r1 = x4;
};