For value cells, it's all very nicely abstracted out in emit-make-value-cell and with a few calls to value-cell-set/ref in compiler/ir2tran.lisp.
For value cells, it's all very nicely abstracted out in emit-make- value-cell and with a few calls to value-cell-set/ref in compiler/ ir2tran. lisp.