Changeset f6f0cca3
- Timestamp:
- May 18, 2018, 10:05:49 AM (7 years ago)
- Branches:
- new-env, with_gc
- Children:
- ff29f08
- Parents:
- 7a37f258
- git-author:
- Aaron Moss <a3moss@…> (05/17/18 15:51:08)
- git-committer:
- Aaron Moss <a3moss@…> (05/18/18 10:05:49)
- Location:
- src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/Alternative.cc
r7a37f258 rf6f0cca3 37 37 Alternative::Alternative( Expression *expr, const TypeEnvironment &env, const Cost& cost, const Cost &cvtCost ) 38 38 : cost( cost ), cvtCost( cvtCost ), expr( expr ), env( env ) {} 39 40 Alternative::Alternative( const Alternative& o ) 41 : cost( o.cost ), cvtCost( o.cvtCost ), expr( maybeClone( o.expr ) ), env( o.env ) {} 42 43 Alternative & Alternative::operator= ( const Alternative& o ) { 44 if ( &o == this ) return *this; 45 cost = o.cost; 46 cvtCost = o.cvtCost; 47 expr = maybeClone( o.expr ); 48 env = o.env; 49 return *this; 50 } 39 51 40 52 void Alternative::print( std::ostream &os, Indenter indent ) const { -
src/ResolvExpr/Alternative.h
r7a37f258 rf6f0cca3 31 31 Alternative( Expression *expr, const TypeEnvironment &env, const Cost &cost ); 32 32 Alternative( Expression *expr, const TypeEnvironment &env, const Cost &cost, const Cost &cvtCost ); 33 Alternative( const Alternative &other ) = default; 34 Alternative &operator=( const Alternative &other ) = default; 33 Alternative( const Alternative &other ); 34 Alternative & operator= ( const Alternative &other ); 35 Alternative( Alternative&& other ) = default; 36 Alternative & operator= ( Alternative&& other ) = default; 35 37 36 38 void print( std::ostream &os, Indenter indent = {} ) const; -
src/SynTree/GcTracer.h
r7a37f258 rf6f0cca3 102 102 void visit( Label& lbl ) { 103 103 acceptAll( lbl.get_attributes(), *visitor ); 104 maybeAccept( lbl.get_statement(), *visitor ); // xxx - not sure this is needed...104 // maybeAccept( lbl.get_statement(), *visitor ); // introduces infinite loop in tracer 105 105 } 106 106
Note: See TracChangeset
for help on using the changeset viewer.