Changeset c15085d for src/ResolvExpr


Ignore:
Timestamp:
Jul 3, 2020, 4:50:21 PM (4 years ago)
Author:
Fangren Yu <f37yu@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
aebf5b0
Parents:
276f105
Message:

tracing memory allocation of resolver passes

Location:
src/ResolvExpr
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/CandidateFinder.cpp

    r276f105 rc15085d  
    596596                const ast::SymbolTable & symtab;
    597597        public:
     598                static size_t traceId;
    598599                CandidateFinder & selfFinder;
    599600                CandidateList & candidates;
     
    15071508        };
    15081509
     1510        size_t Finder::traceId = Stats::Heap::new_stacktrace_id("Finder");
    15091511        /// Prunes a list of candidates down to those that have the minimum conversion cost for a given
    15101512        /// return type. Skips ambiguous candidates.
  • src/ResolvExpr/CommonType.cc

    r276f105 rc15085d  
    666666                const ast::OpenVarSet & open;
    667667        public:
     668                static size_t traceId;
    668669                ast::ptr< ast::Type > result;
    669670
     
    893894        };
    894895
     896        size_t CommonType_new::traceId = Stats::Heap::new_stacktrace_id("CommonType_new");
    895897        namespace {
    896898                ast::ptr< ast::Type > handleReference(
  • src/ResolvExpr/ConversionCost.cc

    r276f105 rc15085d  
    795795        }
    796796}
    797 
     797size_t ConversionCost_new::traceId = Stats::Heap::new_stacktrace_id("ConversionCost");
    798798
    799799} // namespace ResolvExpr
  • src/ResolvExpr/ConversionCost.h

    r276f105 rc15085d  
    8888        CostCalculation costCalc;
    8989public:
     90        static size_t traceId;
    9091        Cost cost;
    9192
  • src/ResolvExpr/Resolver.cc

    r276f105 rc15085d  
    12361236
    12371237        public:
     1238                static size_t traceId;
    12381239                Resolver_new() = default;
    12391240                Resolver_new( const ast::SymbolTable & syms ) { symtab = syms; }
     
    12661267                const ast::ConstructorInit * previsit( const ast::ConstructorInit * );
    12671268        };
     1269        size_t Resolver_new::traceId = Stats::Heap::new_stacktrace_id("Resolver");
    12681270
    12691271        void resolve( std::list< ast::ptr< ast::Decl > >& translationUnit ) {
  • src/ResolvExpr/Unify.cc

    r276f105 rc15085d  
    702702                const ast::SymbolTable & symtab;
    703703        public:
     704                static size_t traceId;
    704705                bool result;
    705706
     
    11351136        };
    11361137
     1138        size_t Unify_new::traceId = Stats::Heap::new_stacktrace_id("Unify_new");
    11371139        bool unify(
    11381140                        const ast::ptr<ast::Type> & type1, const ast::ptr<ast::Type> & type2,
Note: See TracChangeset for help on using the changeset viewer.