Changeset 13354


Ignore:
Timestamp:
2012-10-12T18:42:34+02:00 (12 years ago)
Author:
jfrenkel
Message:
  • use consOnTrue instead of Util.if_(res, e :: inAccum, inAccum)), save memory
  • fix bootstrapping
Location:
trunk/Compiler
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Compiler/BackEnd/BackendDAE.mo

    r13351 r13354  
    203203    Connections.* i.e. Connections.root(...) functions."
    204204    Absyn.Path functionName;
    205     list<DAE.Exp> functionArgs;
    206     DAE.ElementSource source "the origin of the component/equation/algorithm";
     205    list<.DAE.Exp> functionArgs;
     206    .DAE.ElementSource source "the origin of the component/equation/algorithm";
    207207  end NORETCALL;
    208208 
  • trunk/Compiler/Util/List.mo

    r13323 r13354  
    69306930        res = inFunc(e);
    69316931      then
    6932         select_tail(rest, inFunc, Util.if_(res, e :: inAccum, inAccum));
     6932        select_tail(rest, inFunc, consOnTrue(res, e , inAccum));
    69336933  end match;
    69346934end select_tail;
     
    70347034        res = inFunc(e, inArg1);
    70357035      then
    7036         select1_tail(rest, inFunc, inArg1, Util.if_(res, e :: inAccum, inAccum));
     7036        select1_tail(rest, inFunc, inArg1, consOnTrue(res, e ,inAccum));
    70377037  end match;
    70387038end select1_tail;
     
    70807080        res = inFunc(inArg1, e);
    70817081      then
    7082         select1r_tail(rest, inFunc, inArg1, Util.if_(res, e :: inAccum, inAccum));
     7082        select1r_tail(rest, inFunc, inArg1, consOnTrue(res, e, inAccum));
    70837083  end match;
    70847084end select1r_tail;
     
    71337133      then
    71347134        select2_tail(rest, inFunc, inArg1, inArg2,
    7135           Util.if_(res, e :: inAccum, inAccum));
     7135          consOnTrue(res, e, inAccum));
    71367136  end match;
    71377137end select2_tail;
Note: See TracChangeset for help on using the changeset viewer.