Assign first expr only (if it exists), performing coercions between some PrimReps (e.g. StablePtr# and Addr#).
Moduleghc-10.0.0.20260917GHC2024
GHC.StgToJS.Utils
Synopsis
- value assignCoerce1
- value assignToExprCtx
- value fixedLayout
- value assocIdExprs
- value isUnboxableCon
- value isUnboxable
- value isBoolDataCon
- value slotCount
- value varSize
- value typeSize
- value isVoid
- value isMultiVar
- value idJSRep
- value typeJSRep
- value unaryTypeJSRep
- value primRepToJSRep
- value primOrVoidRepToJSRep
- value stackSlotType
- value primRepSize
- value mkArityTag
- value exprRefs
- value hasExport
- value collectTopIds
- value collectIds
- type LiveVars
- value liveStatic
- value liveVars
- value stgRhsLive
- value stgExprLive
- value isUpdatableRhs
- value stgLneLive'
- value stgLneLiveExpr
- value isInlineExpr
- Packageghc-10.0.0.20260917
- Exports33
- LanguageGHC2024
- LicenceBSD-3-Clause
- SourceUtils.hs
Associate the given JExpr to the Id's PrimReps, taking into account the number of slots per PrimRep
Unboxable datacon
can we unbox C x to x, only if x is represented as a Number
one-constructor types with one primitive field represented as a JS Number can be unboxed
JSRep
Return SlotCount as an Int
Number of slots occupied by a value with the given JSRep
References and Ids
Live variables
returns True if the expression is definitely inline