Skip to content
  • Julian Seward's avatar
    [project @ 1999-12-07 11:14:56 by sewardj] · 6478af6d
    Julian Seward authored
    Don't create a new infotable for every constructor application.
    Amazingly, that's what the codegen.c used to do.  It didn't generate
    vast numbers of redundant infotables until recently, when I changed
    translate.c to generate saturated constructor applications in line.
    Prior to that, there was only ever one application of each constructor,
    so the old scheme was ok.
    
    Also, fix the assembler so that info table ptrs are commoned up.
    Eg, for [1,2,3], store only one copy of the address of the (:) itbl,
    rather than 3, in the BCO.
    6478af6d