# # # The Nim Compiler # (c) Copyright 2020 Andreas Rumpf # # See the file "copying.txt", included in this # distribution, for details about the copyright. # # included from cgen.nim ## Code specialization instead of the old, incredibly slow 'genericReset' ## implementation. proc specializeResetT(p: BProc, accessor: Rope, typ: PType) proc specializeResetN(p: BProc, accessor: Rope, n: PNode; typ: PType) = if n == nil: return case n.kind of nkRecList: for i in 0..