• mniip's avatar
    Tag pointers in interpreted constructors · a25bf267
    mniip authored
    Instead of stg_interp_constr_entry there are now 7 functions (one for
    each value of the tag bits) that tag the constructor pointer before
    returning. This is consistent with compiled constructors' entry code,
    and expectations that compiled code places on compiled constructors. The
    iserv protocol is extended with an extra field that explains what
    pointer tag the constructor should use.
    Test Plan: Added tests for #12523
    Reviewers: erikd, bgamari, hvr, austin, simonmar
    Reviewed By: simonmar
    Subscribers: osa1, thomie, rwbarton
    Differential Revision: https://phabricator.haskell.org/D2473
    GHC Trac Issues: #12523
MiscClosures.h 15.1 KB