This factors out from FunctionContext most of the rt-call-related routines and lifts them into ModuleContext. These have no FunctionContext dependencies and upcoming users need access without a FunctionContext.
Only emit_rtcall remains in FunctionContext since it relies on .locals. Clients in ModuleContext, cf course, won't need to use this version of emit_rtcall*.
This factors out from
FunctionContext
most of the rt-call-related routines and lifts them intoModuleContext
. These have noFunctionContext
dependencies and upcoming users need access without aFunctionContext
.Only
emit_rtcall
remains inFunctionContext
since it relies on.locals
. Clients inModuleContext
, cf course, won't need to use this version ofemit_rtcall*
.